Resetting desktops on external screen on demand
This commit is contained in:
parent
5d4dd1b565
commit
28f9489d2e
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,9 @@ if [ $# -lt 1 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
bspwm_reset_desktops() {
|
||||
bspc monitor $EXTERN -d 1 2 3 4 5 6 7 8 9
|
||||
}
|
||||
|
||||
bspwm_mv_win() {
|
||||
for wid in $(bspc query -W -m $EXTERN); do
|
||||
|
@ -18,6 +21,8 @@ bspwm_mv_win() {
|
|||
bspwm_config_second() {
|
||||
if [ "$1" != "1" ]; then
|
||||
bspwm_mv_win
|
||||
else
|
||||
bspwm_reset_desktops
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue