1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-12-10 21:48:09 -05:00
dotfiles/cfg/i3/tools/wallpaper.sh
2017-12-06 15:38:22 -05:00

12 lines
234 B
Bash
Executable File

#!/bin/bash
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