commit 8d8985f6f195e371b058e92b1f63f784b10192e8
parent 2322b1dfbe2f2d075787957a119accc28fc92b4b
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 24 Mar 2015 16:50:48 +0100
call wallpaper script with xrandr
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.i3/config b/.i3/config
@@ -116,7 +116,7 @@ bindsym $mod+Shift+s exec --no-startup-id mpc stop && killall -SIGUSR1 i3status
# configura displays
bindsym $mod+Shift+d exec --no-startup-id bash /home/ad/code/dotfiles/bin/xrandr-auto.sh
-bindsym $mod+Shift+a exec --no-startup-id xrandr --auto
+bindsym $mod+Shift+a exec --no-startup-id bash /home/ad/bin/wallpaper.sh && xrandr --auto
# screen lock
bindsym $mod+z exec /home/ad/bin/zzz
diff --git a/bin/wallpaper.sh b/bin/wallpaper.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-hsetroot -fill ~/wallpapers/fall.jpg # single screen
+#hsetroot -fill ~/wallpapers/fall.jpg # single screen
+hsetroot -full ~/wallpapers/hackingtheloop_1920.jpg # single screen
diff --git a/bin/xrandr-auto.sh b/bin/xrandr-auto.sh
@@ -11,7 +11,7 @@ MONITOR=$LAPTOPSCR
function ActivateEXT {
#echo "Switching to EXTSCR"
xrandr --output $EXTSCR --auto --output $LAPTOPSCR --off
- wallpaper.sh
+ ~/bin/wallpaper.sh
MONITOR=$EXTSCR
#notify-send "Activating $EXTSCR"
}
@@ -19,7 +19,7 @@ function DeactivateEXT {
#echo "Switching to $LAPTOPSCR"
#xrandr --output $EXTSCR --off --output $LAPTOPSCR --auto
xrandr --auto
- wallpaper.sh
+ ~/bin/wallpaper.sh
MONITOR=$LAPTOPSCR
#notify-send "Activating $LAPTOPSCR"
}