1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-28 05:27:06 -05:00
dotfiles/cfg/i3/tools/wallpaper.sh

12 lines
234 B
Bash
Raw Normal View History

2017-07-24 20:58:23 -04:00
#!/bin/bash
2017-12-06 15:38:22 -05:00
killall -q xwinwrap
idx=$(( (RANDOM % 5) + 1))
if [[ $idx -eq 5 ]];
then
xwinwrap -ov -fs -- gifview -w WID -a /home/lain/Pictures/wallpaper.gif 2>/dev/null
else
feh --bg-scale /home/lain/Pictures/wallpaper$idx.jpg
fi