From fe0217588eafec8bdb9ef7acd158c69c0345546a Mon Sep 17 00:00:00 2001 From: M1dgard Date: Tue, 1 May 2018 16:16:29 +0200 Subject: [PATCH] Add background script Triggered when the screen configuration is changed --- i3/background.sh | 3 +++ i3/config | 2 +- i3/monitors.sh | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 i3/background.sh diff --git a/i3/background.sh b/i3/background.sh new file mode 100755 index 0000000..11d6d92 --- /dev/null +++ b/i3/background.sh @@ -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" diff --git a/i3/config b/i3/config index a6d67ed..518d21a 100644 --- a/i3/config +++ b/i3/config @@ -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" ################## diff --git a/i3/monitors.sh b/i3/monitors.sh index f0284b1..0797148 100755 --- a/i3/monitors.sh +++ b/i3/monitors.sh @@ -23,6 +23,7 @@ should_exist "$builtin" "$ext1" "$ext2" trigger_change_and_exit() { "$scriptdir/../polybar/launch.sh" & disown + "$scriptdir/background.sh" exit }