swaydwm.git

swaydwm - dwm behaviour in sway

espurr
Cargo.lock
rw-r--r--
137L
()
Cargo.toml
rw-r--r--
8L
()
LICENCE
rw-r--r--
19L
()
README
rw-r--r--
28L
()
cmd.rs
rw-r--r--
79L
()
evt.rs
rw-r--r--
121L
()
main.rs
rw-r--r--
62L
()
util.rs
rw-r--r--
58L
()
swaydwm - dwm behaviour in sway
===============================
swaydwm is a program which uses swayipc to interact with an instance of the sway
window manager and dynamically rearrange windows to mimic the behaviour of the
dwm window manager.

usage
-----
swaydwm tracks certain commands sent using the swayipc protocol.  the `bindsym'
command in your sway configuration file is used to send these commands, and each
is prefixed with a nop to prevent it from having unwanted side effects.

copy the following into your sway configuration file, replacing the default
bindings with bindings of your choice (the example bindings correspond to the
dwm defaults for each function):

    bindsym $mod+l nop widen
    bindsym $mod+h nop narrow
    bindsym $mod+j nop forward
    bindsym $mod+k nop backward
    bindsym $mod+Return nop master

you can then use these keybindings to replicate the behaviour of the following
dwm functions:

    widen/narrow     -- setmfact   -- widen/narrow master window
    forward/backward -- focusstack -- focus next/last window
    master           -- zoom       -- move focused window to master window