Skip to content

Commit

Permalink
Merge pull request #4 from Zayac-The-Engineer/dev
Browse files Browse the repository at this point in the history
addded kill (now for real) and stabilized
  • Loading branch information
FabricatorZayac authored May 1, 2021
2 parents fa20636 + 8d5c68c commit 89f235c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lazywal-cli
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ _help()
echo " -d - Debug"
}

_use_wal()
_kill()
{
pkill xwinwrap
sleep 0.05
}

_use_wal()
{
_kill
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"
Expand All @@ -24,7 +30,6 @@ _use_wal()
else
xwinwrap $xwinwrap_args -- mpv $mpv_args $file_path &> /dev/null &
fi

}

_restore()
Expand All @@ -46,7 +51,7 @@ while getopts "hdrk" option; do
_help
exit;;
k) # kill wallpaper
pkill xwinwrap
_kill
exit;;
d) # debug
debug="true"
Expand Down

0 comments on commit 89f235c

Please sign in to comment.