diff options
Diffstat (limited to '.config/bspwm')
-rw-r--r-- | .config/bspwm/README.org | 8 | ||||
-rwxr-xr-x | .config/bspwm/bspwmrc | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/.config/bspwm/README.org b/.config/bspwm/README.org index b22d2d8..86cd706 100644 --- a/.config/bspwm/README.org +++ b/.config/bspwm/README.org @@ -21,7 +21,6 @@ You can get ~bspwm~ here: [[https://github.com/baskerville/bspwm][bspwm]]. - * Restart safety ** No-rerun function The following function helps me not restart a specific program in case it is already running, @@ -77,15 +76,15 @@ bspc config single_monocle true * Applications workspaces assignations #+BEGIN_SRC shell if [ $screens -eq 3 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=07 state=floating elif [ $screens -eq 2 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=07 state=floating elif [ $screens -eq 1 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=04 state=floating fi @@ -115,6 +114,7 @@ sleep 2 ** Foreground applications #+BEGIN_SRC shell +bspc desktop -f 01 run emacs & sleep 12 if [ $screens -eq 3 ]; then diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 7875a96..4e38a84 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -33,15 +33,15 @@ bspc config gapless_monocle true bspc config single_monocle true if [ $screens -eq 3 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=07 state=floating elif [ $screens -eq 2 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=07 state=floating elif [ $screens -eq 1 ]; then - bspc rule -a Emacs desktop=01 follow=true + bspc rule -a Emacs state=tiled bspc rule -a Firefox desktop=08 follow=true bspc rule -a Wine desktop=04 state=floating fi @@ -64,6 +64,7 @@ run dunst > /dev/null 2>&1 & run lowbat --say "You're low, partner" >/dev/null 2>&1 & sleep 2 +bspc desktop -f 01 run emacs & sleep 12 if [ $screens -eq 3 ]; then |