summaryrefslogtreecommitdiffstats
path: root/.local/bin/set_wallpaper
blob: 38dc3c7c0d386e2115f3d9c81f26b0b84df33dda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
pywalfox update
wal-telegram -w
pywal-discord -t biswa