diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-09-24 12:21:56 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2022-09-24 12:21:56 +0530 |
commit | 86f99da8d08e1f2e290d8ebfd5adb016faff7bac (patch) | |
tree | 8f121a2aaa187d8266e20df23ad36262ab051866 /set_wallpaper | |
download | bin-86f99da8d08e1f2e290d8ebfd5adb016faff7bac.tar.gz bin-86f99da8d08e1f2e290d8ebfd5adb016faff7bac.tar.bz2 bin-86f99da8d08e1f2e290d8ebfd5adb016faff7bac.zip |
script's
Diffstat (limited to 'set_wallpaper')
-rwxr-xr-x | set_wallpaper | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/set_wallpaper b/set_wallpaper new file mode 100755 index 0000000..ccbe75e --- /dev/null +++ b/set_wallpaper @@ -0,0 +1,18 @@ +#!/bin/sh + +# Dependencies: +# convert wal xdotool xwallpaper + +wall_dir=~/pix/wall + +if [ -z "$1" ]; then + wall="$(find "$wall_dir" -type f -name "*.jpg" -o -name "*.png" | shuf -n1)" +else + wall="$1" +fi + +convert "$wall" ~/.local/share/bg.jpg +xwallpaper --zoom ~/.local/share/bg.jpg +wal -c +wal -i ~/.local/share/bg.jpg +xdotool key super+F5 |