summaryrefslogtreecommitdiffstats
path: root/.config/bspwm
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-25 18:43:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-25 18:43:47 +0200
commit46488f5b659bc150d8d9fd3568957a54030b52ef (patch)
tree7aa25fc8808edb154b4d18ceeaad1f8f98f76e2c /.config/bspwm
parentAdded returns (diff)
downloaddotfiles-bsd-46488f5b659bc150d8d9fd3568957a54030b52ef.tar.gz
dotfiles-bsd-46488f5b659bc150d8d9fd3568957a54030b52ef.tar.bz2
dotfiles-bsd-46488f5b659bc150d8d9fd3568957a54030b52ef.tar.xz
dotfiles-bsd-46488f5b659bc150d8d9fd3568957a54030b52ef.tar.zst
dotfiles-bsd-46488f5b659bc150d8d9fd3568957a54030b52ef.zip
Changed Emacs to daemon mode, setting editors accordingly
Diffstat (limited to '')
-rw-r--r--.config/bspwm/README.org8
-rwxr-xr-x.config/bspwm/bspwmrc7
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