Configuration of X11 i3wm tty
This commit is contained in:
15
i3wm/wallpapers.sh
Executable file
15
i3wm/wallpapers.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
_LINES=$(ps -eo pid,cmd | grep wallpaper | \
|
||||
grep -v grep | grep -v $$ | awk '{print $1}' | tr '\n' ' ')
|
||||
|
||||
for i in $_LINES
|
||||
do
|
||||
kill $i
|
||||
done
|
||||
|
||||
while (( $(pgrep i3) ))
|
||||
do
|
||||
feh --randomize --bg-max /usr/local/share/wallpapers
|
||||
sleep 10
|
||||
done
|
||||
Reference in New Issue
Block a user