Add background script

Triggered when the screen configuration is changed
This commit is contained in:
M1dgard 2018-05-01 16:16:29 +02:00
parent cb88dd4f41
commit fe0217588e
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
3 changed files with 5 additions and 1 deletions

3
i3/background.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
exec feh --bg-fill "$HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg"

View file

@ -253,7 +253,7 @@ exec --no-startup-id "$HOME/Programs/own/battery/monitor.py &>$HOME/.log/my-i3-d
# set background
exec_always --no-startup-id feh --bg-fill $HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg
exec_always --no-startup-id "$HOME/.config/i3/background.sh"
##################

View file

@ -23,6 +23,7 @@ should_exist "$builtin" "$ext1" "$ext2"
trigger_change_and_exit() {
"$scriptdir/../polybar/launch.sh" & disown
"$scriptdir/background.sh"
exit
}