diff options
| author | Tslil Clingman <tslil.clingman@gmail.com> | 2016-06-03 18:28:04 +0200 |
|---|---|---|
| committer | Tslil Clingman <tslil.clingman@gmail.com> | 2016-06-03 18:28:04 +0200 |
| commit | 6d1077a28b8d6f64ca72b9aa00f0b2cab97fb594 (patch) | |
| tree | 5677ba1027db3a3a2d66728baa29e355175e4ced | |
| parent | 54e270e93d5824a40a29217786739f8d00e6d4fb (diff) | |
A silly oversight
| -rwxr-xr-x | sc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,7 @@ #!/usr/bin/env sh # Quick hack to manage screen hotplugging + +reset_ratpoison="yes" case "$1" in "d") xrandr --nograb --output VGA1 --off --output LVDS1 --auto;; "r") xrandr --nograb --output VGA1 --auto --primary --output LVDS1 --off;; @@ -8,8 +10,10 @@ case "$1" in "s") xrandr --nograb --output LVDS1 --auto --below VGA1 --output VGA1 --auto;; "e") xrandr --nograb --output LVDS1 --auto --right-of VGA1 --output VGA1 --auto;; "w") xrandr --nograb --output LVDS1 --auto --left-of VGA1 --output VGA1 --auto;; - *) xrandr --nograb ;; + *) xrandr --nograb; reset_ratpoison="" ;; esac; -[ -n "$BACKGROUND_IMAGE" ] && feh --bg-scale "$BACKGROUND_IMAGE" -ratpoison -c restart +if [ -n "$reset_ratpoison" ]; then + [ -n "$BACKGROUND_IMAGE" ] && feh --bg-scale "$BACKGROUND_IMAGE" + ratpoison -c restart +fi; |
