Dynamic wallpaper script

This commit is contained in:
2018-03-17 16:52:21 +00:00
parent b068ce48db
commit 624f93cad0
3 changed files with 10 additions and 2 deletions

8
bin/wallpaper Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
wallpapers=~/wallpapers
ls $wallpapers | sort -R | tail -1 | while read file; do
/usr/bin/feh --bg-fill $wallpapers/$file
done
exit 0

View File

@@ -180,7 +180,7 @@ bindsym $mod+c mode "cmus"
exec xrandr --output DVI-0 --primary --mode 1920x1200 --pos 1200x390 --output DVI-1 --mode 1920x1200 --rotate left --pos 0x0
exec --no-startup-id feh --bg-fill ~/wallpapers/Forest.png
exec --no-startup-id ~/.dotfiles/bin/wallpaper
exec --no-startup-id compton
exec_always --no-startup-id ~/.dotfiles/polybar/launch.sh

View File

@@ -178,7 +178,7 @@ mode "cmus" {
bindsym $mod+c mode "cmus"
exec --no-startup-id feh --bg-fill ~/wallpapers/Forest.png
exec --no-startup-id ~/.dotfiles/bin/wallpaper
exec --no-startup-id compton
exec_always --no-startup-id ~/.dotfiles/polybar/launch_magnum.sh