Skip to content

Commit

Permalink
feat(walle): add apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Diaoul committed Dec 6, 2023
1 parent 7deb032 commit 12f500a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .local/bin/walle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ switch $argv[1]
feh --bg-fill $base/current
end
echo Wallpaper set to $file
case 'apply'
if test $XDG_SESSION_TYPE = "wayland"
swww img $base/current
else if test $XDG_SESSION_TYPE = "x11"
feh --bg-fill $base/current
end
echo Applied current wallpaper
case '*'
echo "Unknown command '$argv[1]'"
echo ' Possible values: (unsplash|save|random)'
echo ' Possible values: (unsplash|save|random|apply)'
end

0 comments on commit 12f500a

Please sign in to comment.