-
Notifications
You must be signed in to change notification settings - Fork 0
/
kwmrc
158 lines (119 loc) · 4.29 KB
/
kwmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
This is a sample config for Kwm
The following statements can be used to set Kwms internal directory structure.
This is the root folder for Kwms files, the only thing this actually
specifies is the location of the 'init' script which Kwm runs upon startup.
Defaults to $HOME/.kwm
kwm_home /path/to/.kwm
This is the root folder in which all files included using 'include' must reside.
Defaults to $HOME/.kwm
kwm_include /path/to/.kwm/include
This is the folder in which all bsp-layouts managed by 'tree load' and 'tree save'
is loaded from / saved to. Defaults to $HOME/.kwm/layouts
kwm_layouts /path/to/.kwm/layouts
Commands prefixed with 'kwmc' will call
local functions corresponding to the
kwmc syntax.
To run an external program or command,
use the prefix 'exec' followed by command.
e.g 'exec mvim' would open macvim
Read file and execute commands as
if they were written inside kwmrc.
include filename
e.g: window-rules in a separate file called 'rules'
include rules
*/
# Set default values for screen padding
kwmc config padding 10 10 10 10
# Set default values for container gaps
kwmc config gap 5 5
# Default tiling mode for Kwm (bsp | monocle | float)
kwmc config tiling bsp
# Automatically float windows that fail to resize
kwmc config float-non-resizable on
# Automatically resize the window to its container
kwmc config lock-to-container on
# Set focus-follows-mouse-mode to autoraise
kwmc config focus-follows-mouse on
# Rewrite the default optimal split ratio
kwmc config optimal-ratio 1.61
/*
Focus-follows-mouse is temporarily disabled when
a floating window has focus
*/
kwmc config standby-on-float on
# Center window when made floating
kwmc config center-on-float on
/*
The mouse will automatically move to the center
of the focused window
*/
kwmc config mouse-follows-focus on
/*
Allows a window to be moved by dragging,
when a modifier key and left-click is held down.
Allows a window to be resized by dragging
when a modifier key and right-click is held down.
*/
kwmc config mouse-drag on
# The modifier keys to be held down to initiate mouse-drag
kwmc config mouse-drag mod shift+ctrl
# Allow window focus to wrap-around
kwmc config cycle-focus on
/*
Override default settings for space 1 on screen 0
kwmc config space 0 1 mode monocle
kwmc config space 0 1 padding 100 100 100 100
kwmc config space 0 1 gap 40 40
*/
/*
Override default settings for screen 1
kwmc config display 1 mode bsp
kwmc config display 1 padding 100 100 100 100
kwmc config display 1 gap 40 40
*/
# Set default container split-ratio
kwmc config split-ratio 0.5
# New splits become the left leaf-node
kwmc config spawn left
/*
Add custom tiling rules for applications that
does not get tiled by Kwm by default.
This is because some applications do not have the
AXWindowRole and AXStandardWindowSubRole
*/
kwmc rule owner="iTerm2" properties={role="AXDialog"}
/*
The following commands create rules that
blacklists an application from Kwms tiling
kwmc rule owner="Steam" properties={float="true"}
kwmc rule owner="Photoshop" properties={float="true"}
*/
kwmc rule owner="GIMP" properties={float="true"}
/*kwmc rule owner="MacDown" properties={float="true"}*/
kwmc rule owner="Photo Booth" properties={float="true"}
kwmc rule owner="PyCharm" properties={float="true"}
kwmc rule owner="WebStorm" properties={float="true"}
/*kwmc rule owner="Pixelmator" properties={float="true"}*/
kwmc rule owner="Twitter" properties={float="true"}
kwmc rule owner="Time Machine" properties={float="true"}
/*kwmc rule owner="Sublime Text" properties={float="true"}*/
/*
The following command creates a rule that
captures an application to the given screen,
if the screen exists.
kwmc rule owner="iTunes" properties={display="1"}
*/
kwmc rule owner="Sublime Text" properties={display="1"}
kwmc rule owner="Telegram" properties={display="1"}
kwmc rule owner="Slack" properties={display="1"}
# Enable border for focused window
kwmc config border focused off
kwmc config border focused size 2
kwmc config border focused color 0xFFCC5577
kwmc config border focused radius 5
# Enable border for marked window
kwmc config border marked off
kwmc config border marked size 2
kwmc config border marked color 0xFFCC5577
kwmc config border marked radius 6