i3: Randomize wallpaper on login

This commit is contained in:
2022-06-09 19:48:25 +02:00
parent 263be3ebfc
commit 932e0a0b14
15 changed files with 15 additions and 1 deletions

View File

@ -201,7 +201,7 @@ client.background #ffffff
exec --no-startup-id xcompmgr -c -f -n exec --no-startup-id xcompmgr -c -f -n
# wallpaper # wallpaper
exec --no-startup-id feh --bg-scale ~/.config/wallpapers/3440x1440/planets.jpg exec --no-startup-id start-wallpaper
# autostart # autostart
exec --no-startup-id nextcloud exec --no-startup-id nextcloud

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

3
tree/.local/bin/random-file-of Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
fd -d1 . $@ | sort -R | head -n 1

View 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 %}