Added restoring of wallpaper to monsetup
This commit is contained in:
parent
f199047073
commit
28118489b5
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,10 @@ bspwm_mv_win() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restore_wallpapers() {
|
||||||
|
nitrogen --restore
|
||||||
|
}
|
||||||
|
|
||||||
bspwm_config_second() {
|
bspwm_config_second() {
|
||||||
if [ "$1" != "1" ]; then
|
if [ "$1" != "1" ]; then
|
||||||
bspwm_mv_win
|
bspwm_mv_win
|
||||||
|
@ -33,18 +37,21 @@ xrandr_second() { xrandr --output VGA1 --auto --right-of LVDS1 --output LVDS1 -
|
||||||
mode_off() {
|
mode_off() {
|
||||||
bspwm_config_second 0
|
bspwm_config_second 0
|
||||||
xrandr_off
|
xrandr_off
|
||||||
|
restore_wallpapers
|
||||||
}
|
}
|
||||||
|
|
||||||
mode_clone() {
|
mode_clone() {
|
||||||
bspwm_config_second 0
|
bspwm_config_second 0
|
||||||
xrandr_off
|
xrandr_off
|
||||||
xrandr_clone
|
xrandr_clone
|
||||||
|
restore_wallpapers
|
||||||
}
|
}
|
||||||
|
|
||||||
mode_second() {
|
mode_second() {
|
||||||
xrandr_off
|
xrandr_off
|
||||||
xrandr_second
|
xrandr_second
|
||||||
bspwm_config_second 1
|
bspwm_config_second 1
|
||||||
|
restore_wallpapers
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
|
|
Loading…
Reference in a new issue