Skip to content

Commit

Permalink
fixed indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Zayac authored and Zayac committed Mar 4, 2021
1 parent 6b4d5d2 commit cfdeb95
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lazywal-cli
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ _help()

_use_wal()
{
file_path=$1
xwinwrap_args="-fs -ni -b -nf -un -o 1.0 -ov -debug"
mpv_args="-wid WID --loop --no-audio --no-resume-playback --panscan=1.0"
file_path=$1
xwinwrap_args="-fs -ni -b -nf -un -o 1.0 -ov -debug"
mpv_args="-wid WID --loop --no-audio --no-resume-playback --panscan=1.0"

if [ "$debug" = "true" ];
then
xwinwrap $xwinwrap_args -- mpv $mpv_args $file_path
else
xwinwrap $xwinwrap_args -- mpv $mpv_args $file_path &> /dev/null &
fi
if [ "$debug" = "true" ];
then
xwinwrap $xwinwrap_args -- mpv $mpv_args $file_path
else
xwinwrap $xwinwrap_args -- mpv $mpv_args $file_path &> /dev/null &
fi

}

_restore()
{
file_path=$(cat $HOME/.lazywal)
_use_wal $file_path
_use_wal $file_path
}

if [ $# -lt 1 ]
Expand Down Expand Up @@ -61,6 +61,6 @@ for i in $*; do
then
file_path=$(realpath $i)
echo $file_path > $HOME/.lazywal
_restore
_restore
fi
done

0 comments on commit cfdeb95

Please sign in to comment.