i3: Randomize wallpaper on login
@ -201,7 +201,7 @@ client.background #ffffff
|
||||
exec --no-startup-id xcompmgr -c -f -n
|
||||
|
||||
# wallpaper
|
||||
exec --no-startup-id feh --bg-scale ~/.config/wallpapers/3440x1440/planets.jpg
|
||||
exec --no-startup-id start-wallpaper
|
||||
|
||||
# autostart
|
||||
exec --no-startup-id nextcloud
|
||||
|
||||
BIN
tree/.config/wallpapers/3440x1440/dark_planet.jpg
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
tree/.config/wallpapers/3440x1440/hilly_river.jpg
Normal file
|
After Width: | Height: | Size: 548 KiB |
BIN
tree/.config/wallpapers/3440x1440/hilly_swamp.jpg
Normal file
|
After Width: | Height: | Size: 690 KiB |
BIN
tree/.config/wallpapers/3440x1440/hilly_villiages.jpg
Normal file
|
After Width: | Height: | Size: 3.6 MiB |
BIN
tree/.config/wallpapers/3440x1440/lake_sunset.jpg
Normal file
|
After Width: | Height: | Size: 346 KiB |
BIN
tree/.config/wallpapers/3440x1440/nebula.png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
tree/.config/wallpapers/3440x1440/neon_hills.jpg
Normal file
|
After Width: | Height: | Size: 301 KiB |
BIN
tree/.config/wallpapers/3440x1440/road_to_mountain.jpg
Normal file
|
After Width: | Height: | Size: 636 KiB |
BIN
tree/.config/wallpapers/3440x1440/space_sunrise.webp
Normal file
|
After Width: | Height: | Size: 203 KiB |
BIN
tree/.config/wallpapers/3440x1440/witcher_forest_road.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
tree/.config/wallpapers/3440x1440/witcher_ruins.jpg
Normal file
|
After Width: | Height: | Size: 839 KiB |
BIN
tree/.config/wallpapers/ferris-stamp.png
Normal file
|
After Width: | Height: | Size: 156 KiB |
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
@ -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 %}
|
||||
|
||||