diff options
Diffstat (limited to '.config/openbox/wallpaper.sh')
-rwxr-xr-x | .config/openbox/wallpaper.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/openbox/wallpaper.sh b/.config/openbox/wallpaper.sh new file mode 100755 index 0000000..b9535c6 --- /dev/null +++ b/.config/openbox/wallpaper.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +echo "<openbox_pipe_menu>" +for i in $HOME/.wallpapers/*; do + BASE="$(basename "$i")" + NAME_ONLY="${BASE%.*}" + echo "<item label=\"$NAME_ONLY\">" + echo "<action name=\"Execute\"><execute>feh --bg-scale $HOME/.wallpapers/$BASE</execute></action>" + echo "</item>" +done +echo "</openbox_pipe_menu>" |