i3: Randomize wallpaper on login
This commit is contained in:
3
tree/.local/bin/random-file-of
Executable file
3
tree/.local/bin/random-file-of
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
fd -d1 . $@ | sort -R | head -n 1
|
||||
11
tree/.local/bin/start-wallpaper.tpl
Executable file
11
tree/.local/bin/start-wallpaper.tpl
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
{% if hostname == "sputnik" %}
|
||||
|
||||
feh --bg-scale $(random-file-of ~/.config/wallpapers/3440x1440)
|
||||
|
||||
{% else %}
|
||||
echo "Wallpaper not configured for this system"
|
||||
exit 1
|
||||
{% end %}
|
||||
|
||||
Reference in New Issue
Block a user