mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-03 15:40:30 +00:00
better kwm config
This commit is contained in:
parent
6d8d74ac32
commit
0a7ab929e6
46
kwm/binds
Normal file
46
kwm/binds
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
// global hyper shortcut
|
||||||
|
define HYPER ctrl+cmd+alt+shift
|
||||||
|
|
||||||
|
// Activate prefix mode
|
||||||
|
kwmc bindsym HYPER-a mode activate prefix
|
||||||
|
|
||||||
|
// hyper key bindings with prefix mode for less used commands
|
||||||
|
kwmc bindsym prefix-1 window -c type bsp
|
||||||
|
kwmc bindsym prefix-2 window -c type float
|
||||||
|
kwmc bindsym prefix-h window -c reduce 0.02 east
|
||||||
|
kwmc bindsym prefix-l window -c expand 0.02 east
|
||||||
|
kwmc bindsym prefix-j window -c expand 0.02 south
|
||||||
|
kwmc bindsym prefix-k window -c reduce 0.02 south
|
||||||
|
kwmc bindsym prefix-shift-h window -c reduce 0.02 west
|
||||||
|
kwmc bindsym prefix-shift-l window -c expand 0.02 west
|
||||||
|
kwmc bindsym prefix-shift-j window -c expand 0.02 north
|
||||||
|
kwmc bindsym prefix-shift-k window -c reduce 0.02 north
|
||||||
|
kwmc bindsym prefix-p window -z parent
|
||||||
|
kwmc bindsym prefix-f window -t focused
|
||||||
|
kwmc bindsym prefix-s window -c split-mode toggle
|
||||||
|
|
||||||
|
// moving around with cmd+ctrl
|
||||||
|
kwmc bindsym cmd+ctrl-h window -f west
|
||||||
|
kwmc bindsym cmd+ctrl-l window -f east
|
||||||
|
kwmc bindsym cmd+ctrl-j window -f south
|
||||||
|
kwmc bindsym cmd+ctrl-k window -f north
|
||||||
|
kwmc bindsym cmd+ctrl-[ display -f 0
|
||||||
|
kwmc bindsym cmd+ctrl-] display -f 1
|
||||||
|
|
||||||
|
// hyper key bindings for fullscreen, displays etc.
|
||||||
|
kwmc bindsym HYPER-h window -s west
|
||||||
|
kwmc bindsym HYPER-j window -s south
|
||||||
|
kwmc bindsym HYPER-k window -s north
|
||||||
|
kwmc bindsym HYPER-l window -s east
|
||||||
|
kwmc bindsym HYPER-[ window -m display 0
|
||||||
|
kwmc bindsym HYPER-] window -m display 1
|
||||||
|
|
||||||
|
// rotate and fullscreen
|
||||||
|
kwmc bindsym HYPER-f window -z fullscreen
|
||||||
|
kwmc bindsym HYPER-r tree rotate 90
|
||||||
|
|
||||||
|
// tiling modes
|
||||||
|
kwmc bindsym HYPER-1 space -t bsp
|
||||||
|
kwmc bindsym HYPER-2 space -t monocle
|
||||||
|
kwmc bindsym HYPER-3 space -t float
|
||||||
|
|
89
kwm/kwmrc
89
kwm/kwmrc
@ -1,81 +1,42 @@
|
|||||||
// define global vars
|
// define global vars
|
||||||
define PADDING 2
|
define PADDING 6
|
||||||
define HYPER ctrl+cmd+alt+shift
|
|
||||||
|
// default tiling is bsp
|
||||||
|
kwmc config tiling bsp
|
||||||
|
kwmc config spawn right
|
||||||
|
kwmc config split-ratio 0.425
|
||||||
|
|
||||||
// default style
|
// default style
|
||||||
kwmc config padding PADDING PADDING PADDING PADDING
|
kwmc config padding PADDING PADDING PADDING PADDING
|
||||||
kwmc config gap PADDING PADDING
|
kwmc config gap PADDING PADDING
|
||||||
kwmc config tiling bsp
|
kwmc config border focused on
|
||||||
|
kwmc config border focused size 2
|
||||||
|
kwmc config border focused color 0xFF5E8D87
|
||||||
|
kwmc config border focused radius 6
|
||||||
|
|
||||||
kwmc config hotkeys on
|
kwmc config hotkeys on
|
||||||
|
kwmc config cycle-focus on
|
||||||
|
kwmc config focus-follows-mouse on
|
||||||
|
kwmc config mouse-follows-focus on
|
||||||
kwmc config float-non-resizable on
|
kwmc config float-non-resizable on
|
||||||
kwmc config lock-to-container on
|
kwmc config lock-to-container on
|
||||||
kwmc config focus-follows-mouse off
|
|
||||||
kwmc config standby-on-float on
|
kwmc config standby-on-float on
|
||||||
kwmc config mouse-follows-focus on
|
kwmc config mouse-drag on
|
||||||
kwmc config mouse-drag off
|
kwmc config mouse-drag mod shift
|
||||||
kwmc config cycle-focus on
|
|
||||||
kwmc config split-ratio 0.5
|
|
||||||
kwmc config spawn right
|
|
||||||
kwmc config border focused off
|
|
||||||
|
|
||||||
// add rules to apps that dont have tileable state by default
|
// override if there are two displays, smaller one monocle always
|
||||||
// kwmc rule owner="iTerm2" properties={role="AXDialog"}
|
kwmc config display 0 mode bsp
|
||||||
|
kwmc config display 0 float-dim 1200 800
|
||||||
// The following commands create rules that blacklists an application from Kwms tiling
|
kwmc config display 1 mode monocle
|
||||||
kwmc rule owner="Harvest" properties={float="true"}
|
kwmc config display 1 float-dim 1200 800
|
||||||
kwmc rule owner="VOX" properties={float="true"}
|
|
||||||
kwmc rule owner="Finder" properties={float="true"}
|
|
||||||
kwmc rule owner="CleanMyMac 3" properties={float="true"}
|
|
||||||
|
|
||||||
// The following command creates a rule that captures an application to the given screen, if the screen exists.
|
|
||||||
kwmc rule owner="Firefox" properties={display="0"}
|
|
||||||
kwmc rule owner="HYPERTerm" properties={display="0"}
|
|
||||||
kwmc rule owner="Terminal" properties={display="0"}
|
|
||||||
kwmc rule owner="Calendar" properties={display="1"}
|
|
||||||
kwmc rule owner="ForkLift" properties={display="1"}
|
|
||||||
kwmc rule owner="Mail" properties={display="1"}
|
|
||||||
kwmc rule owner="Reminders" properties={display="1"}
|
|
||||||
|
|
||||||
// Enable the prefix mode
|
// Enable the prefix mode
|
||||||
kwmc mode prefix prefix on
|
kwmc mode prefix prefix on
|
||||||
kwmc mode prefix timeout 1
|
kwmc mode prefix timeout 1
|
||||||
kwmc mode prefix restore default
|
kwmc mode prefix restore default
|
||||||
kwmc mode prefix color 0xFF8C9440
|
kwmc mode prefix color 0xFFA54242
|
||||||
|
|
||||||
/* Default Keybinds */
|
|
||||||
// Activate prefix mode
|
|
||||||
kwmc bindsym HYPER-a mode activate prefix
|
|
||||||
|
|
||||||
// hyper key bindings with prefix mode for less used commands
|
|
||||||
kwmc bindsym prefix-1 window -c type bsp
|
|
||||||
kwmc bindsym prefix-2 window -c type float
|
|
||||||
kwmc bindsym prefix-h window -c reduce 0.02 east
|
|
||||||
kwmc bindsym prefix-l window -c expand 0.02 east
|
|
||||||
kwmc bindsym prefix-j window -c expand 0.02 south
|
|
||||||
kwmc bindsym prefix-k window -c reduce 0.02 south
|
|
||||||
kwmc bindsym prefix-shift-h window -c reduce 0.02 west
|
|
||||||
kwmc bindsym prefix-shift-l window -c expand 0.02 west
|
|
||||||
kwmc bindsym prefix-shift-j window -c expand 0.02 north
|
|
||||||
kwmc bindsym prefix-shift-k window -c reduce 0.02 north
|
|
||||||
kwmc bindsym prefix-p window -z parent
|
|
||||||
kwmc bindsym prefix-f window -t focused
|
|
||||||
kwmc bindsym prefix-s window -c split-mode toggle
|
|
||||||
kwmc bindsym prefix-[ window -m display 0
|
|
||||||
kwmc bindsym prefix-] window -m display 1
|
|
||||||
|
|
||||||
// moving around with cmd+ctrl
|
|
||||||
kwmc bindsym cmd+ctrl-h window -f west
|
|
||||||
kwmc bindsym cmd+ctrl-l window -f east
|
|
||||||
kwmc bindsym cmd+ctrl-j window -f south
|
|
||||||
kwmc bindsym cmd+ctrl-k window -f north
|
|
||||||
|
|
||||||
// hyper key bindings for fullscreen, displays etc.
|
|
||||||
kwmc bindsym HYPER-1 display -f 0
|
|
||||||
kwmc bindsym HYPER-2 display -f 1
|
|
||||||
kwmc bindsym HYPER-h window -s west
|
|
||||||
kwmc bindsym HYPER-j window -s south
|
|
||||||
kwmc bindsym HYPER-k window -s north
|
|
||||||
kwmc bindsym HYPER-l window -s east
|
|
||||||
kwmc bindsym HYPER-f window -z fullscreen
|
|
||||||
kwmc bindsym HYPER-r tree rotate 90
|
|
||||||
|
|
||||||
|
// include binds, space and other config + rules
|
||||||
|
include rules
|
||||||
|
include binds
|
||||||
|
20
kwm/rules
Normal file
20
kwm/rules
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// add rules to apps that dont have tileable state by default
|
||||||
|
// kwmc rule owner="iTerm2" properties={role="AXDialog"}
|
||||||
|
|
||||||
|
// The following commands create rules that blacklists an application from Kwms tiling
|
||||||
|
kwmc rule owner="Harvest" properties={float="true"}
|
||||||
|
kwmc rule owner="VOX" properties={float="true"}
|
||||||
|
kwmc rule owner="Finder" properties={float="true"}
|
||||||
|
kwmc rule owner="CleanMyMac 3" properties={float="true"}
|
||||||
|
kwmc rule owner="Reminders" properties={float="true"}
|
||||||
|
kwmc rule owner="System Preferences" properties={float="true"}
|
||||||
|
|
||||||
|
// The following command creates a rule that captures an application to the given screen, if the screen exists.
|
||||||
|
kwmc rule owner="Firefox" properties={display="0"}
|
||||||
|
kwmc rule owner="HYPERTerm" properties={display="0"}
|
||||||
|
kwmc rule owner="Terminal" properties={display="0"}
|
||||||
|
kwmc rule owner="Calendar" properties={display="1"}
|
||||||
|
kwmc rule owner="ForkLift" properties={display="1"}
|
||||||
|
kwmc rule owner="Mail" properties={display="1"}
|
||||||
|
kwmc rule owner="Telegram" properties={display="1"}
|
||||||
|
kwmc rule owner="Messages" properties={display="1"}
|
Loading…
Reference in New Issue
Block a user