From 28118489b51899914bf52f503ac561e783a5746d Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 8 Sep 2015 05:55:18 +0200 Subject: [PATCH] Added restoring of wallpaper to monsetup --- scripts/monsetup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/monsetup.sh b/scripts/monsetup.sh index 96f0429..bae61c1 100755 --- a/scripts/monsetup.sh +++ b/scripts/monsetup.sh @@ -18,6 +18,10 @@ bspwm_mv_win() { done } +restore_wallpapers() { + nitrogen --restore +} + bspwm_config_second() { if [ "$1" != "1" ]; then bspwm_mv_win @@ -33,18 +37,21 @@ xrandr_second() { xrandr --output VGA1 --auto --right-of LVDS1 --output LVDS1 - mode_off() { bspwm_config_second 0 xrandr_off + restore_wallpapers } mode_clone() { bspwm_config_second 0 xrandr_off xrandr_clone + restore_wallpapers } mode_second() { xrandr_off xrandr_second bspwm_config_second 1 + restore_wallpapers } case $1 in