Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Configuration

gitluin edited this page Mar 19, 2020 · 14 revisions

Configuration for sara is a combination of elements similar to dwm (edit config.h and recompile) and bspwm (edit sxhkdrc):

Editing Rules in config.h

  1. In config.h, define:
    • The class of the rule (the name of the program executable)
    • The instance (not sure under what conditions this wouldn't be NULL, as that seems to do the job)
    • The title (say, from st -t "sometitle")
    • The tags mask (internally, desks) that you want to send the program to. 0 means whatever's currently selected, 1 << 8 sends something to desktop 9, etc. Some bitwise magic.
    • The isfloat value, whether the client spawns floating or not.
    • The isfull value, whether the client spawns fullscreened or not.
    • The monitor that you want the client to appear on. -1 means the currently focused one.
  2. Once you are done, recompile with sudo make install clean.
  3. Restart sara, and your rules should be in effect!

Editing Keybindings in sxhkdrc

  1. Copy examples/sxhkdrc to .config/sxhkd/sxhkdrc or your relevant config directory if you didn't do so during installation.
  2. Below are the default keybindings.Super is the same as Mod4, also known as The Windows Key.
Key Function
Super+{1-9} View desktop {1-9}
Super+Shift+{1-9} Toggle focused client to/from desktop {1-9}
Super+Control+{1-9} Toggle desktop {1-9} to/from view
Super+Shift+Control+{1-9} Put focused client on only desktop {1-9}
Super+0 View all desktops
Super+K Move focus up stack
Super+J Move focus down stack
Super+Shift+K Move focused client up stack
Super+Shift+J Move focused client down stack
Super+Return Move focused client to master
Super+Shift+Space Toggle focused client to floating
Super+Shift+Return Toggle focused client to fullscreen
Super+Comma Move focus to previous monitor
Super+Period Move focus to next monitor
Super+Shift+Comma Move focused client to previous monitor
Super+Shift+Period Move focused client to next monitor
Super+Shift+Q Kill focused client ("force quit")
Super+H Decrease master area
Super+L Increase master area
Super+Control+T Change layout to tiling
Super+Control+M Change layout to monocle
Super+Shift+E Quit sara (shuts down X)
Super+T Spawn st
Super+W Spawn firefox
Super+D Spawn dmenu
  1. sxhkd config file syntax is pretty human readable, so you should be able to easily change what you want. Refer to this page for information on what functions are available to you.
Clone this wiki locally