70 lines
2.0 KiB
Org Mode
70 lines
2.0 KiB
Org Mode
#+TITLE: BSPWM
|
|
:DRAWER:
|
|
#+STARTUP: overview
|
|
|
|
#+LANGUAGE: en
|
|
#+EMAIL: dehaeze.thomas@gmail.com
|
|
#+AUTHOR: Dehaeze Thomas
|
|
|
|
#+HTML_LINK_HOME: ./index.html
|
|
#+HTML_LINK_UP: ./index.html
|
|
|
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/htmlize.css"/>
|
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="./css/readtheorg.css"/>
|
|
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.min.js"></script>
|
|
#+HTML_HEAD: <script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
|
#+HTML_HEAD: <script type="text/javascript" src="./js/jquery.stickytableheaders.min.js"></script>
|
|
#+HTML_HEAD: <script type="text/javascript" src="./js/readtheorg.js"></script>
|
|
|
|
#+PROPERTY: header-args:bash :comments both
|
|
#+PROPERTY: header-args:bash+ :mkdirp yes
|
|
#+PROPERTY: header-args:bash+ :shebang "#!/bin/sh"
|
|
#+PROPERTY: header-args:bash+ :tangle ~/.config/bspwm/bspwmrc
|
|
:END:
|
|
|
|
* List Desktops
|
|
#+begin_src bash
|
|
bspc monitor -d code web mail misc figs
|
|
#+end_src
|
|
|
|
* Basic Config
|
|
#+begin_src bash
|
|
bspc config border_width 1
|
|
bspc config window_gap 8
|
|
bspc config top_padding 27 # top_padding I set equal to polybar's height
|
|
|
|
bspc config split_ratio 0.52
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config focus_follows_pointer true
|
|
#+end_src
|
|
|
|
* Colors
|
|
#+begin_src bash
|
|
bspc config normal_border_color \#32302f
|
|
bspc config focused_border_color \#bdae93
|
|
#+end_src
|
|
|
|
* Rules
|
|
Use =xprop= to obtain information about the window.
|
|
|
|
#+begin_src bash
|
|
# If refreshing bspwm, remove all previous rules to prevent doubling up.
|
|
bspc rule -r "*"
|
|
|
|
bspc rule --add qutebrowser desktop='web' follow=on state=tiled
|
|
bspc rule --add Emacs desktop='code' follow=on state=tiled
|
|
|
|
bspc rule --add Zathura state=tiled
|
|
|
|
bspc rule --add Pavucontrol state=floating
|
|
bspc rule --add Blueman-manager state=floating
|
|
#+end_src
|
|
|
|
* Run Polybar and SXHKD
|
|
#+begin_src bash
|
|
$HOME/.config/polybar/scripts/launch.sh
|
|
sxhkd -m 1 -c ~/.config/sxhkd/sxhkdrc.bspwm &
|
|
#+end_src
|