-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ron
205 lines (203 loc) · 11.2 KB
/
config.ron
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// _ ___ ___ _
// | | / __)_ / __|_)
// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____
// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \
// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | |
// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_|
// A WindowManager for Adventurers (____/
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki
#![enable(implicit_some)]
(
modkey: "Mod4",
mousekey: "Mod4",
tags: [
"",
"",
"",
"",
"",
"",
"",
"",
"",
],
max_window_width: None,
layouts: [
"", // Grid
"", // Even Vertical
"", // Even Horizontal
"", // Monocle
"", // MainAndHorizontalStack
"", // MainAndVertStack
"", // RightMainAndVertStack
"", // Fibonacci
"", // Dwindle
"", // MainAndDeck
"", // CenterMain
"", // CenterMainBalanced
"", // CenterMainFluid
],
layout_definitions: [
// Grid
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: None,
stack: (flip: None, rotate: North, split: Grid),
second_stack: None)),
// Even Vertical
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: None,
stack: (flip: None, rotate: North, split: Vertical),
second_stack: None)),
// Even Horizontal
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: None,
stack: (flip: None, rotate: North, split: Horizontal),
second_stack: None)),
// Monocle
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: None,
stack: (flip: None, rotate: North, split: None),
second_stack: None)),
// MainAndHorizontalStack
(name: "",
flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.8, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Horizontal),
second_stack: None)),
// MainAndVertStack
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Vertical),
second_stack: None)),
// RightMainAndVertStack
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: South,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Horizontal),
second_stack: None)),
// Fibonacci
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Fibonacci),
second_stack: None)),
// Dwindle
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Dwindle),
second_stack: None)),
// MainAndDeck
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.8, flip: None, rotate: North, split: None),
stack: (flip: None, rotate: North, split: None),
second_stack: None)),
// CenterMain
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: None),
second_stack: (flip: None, rotate: North, split: Horizontal))),
// CenterMainBalanced
(name: "", flip: None, rotate: North, reserve: None,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: Dwindle),
second_stack: (flip: None, rotate: North, split: Dwindle))),
// CenterMainFluid
(name: "", flip: None, rotate: North, reserve: Reserve,
columns: (flip: None, rotate: North,
main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical),
stack: (flip: None, rotate: North, split: None),
second_stack: (flip: None, rotate: North, split: Horizontal))),
],
layout_mode: Tag,
insert_behavior: Bottom,
// Waiting on arguments feature: https://github.com/leftwm/leftwm/pull/1225
scratchpad: [
(name: "alsamixer", value: "urxvtcd -e alsamixer", x: 250, y: 150, height: 800, width: 1400),
(name: "mc", value: "urxvtcd -e mc", x: 250, y: 150, height: 800, width: 1400),
(name: "ncmpcpp", value: "urxvtcd -e ncmpcpp", x: 250, y: 150, height: 800, width: 1400),
],
window_rules: [
(window_class: "emacs", spawn_on_tag: 2),
(window_class: "librewolf", spawn_on_tag: 3),
(window_class: "raindrop.io", spawn_on_tag: 4),
(window_class: "discord", spawn_on_tag: 5),
],
disable_current_tag_swap: false,
disable_tile_drag: true,
focus_behaviour: Sloppy,
focus_new_windows: true,
keybind: [
(command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
(command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "c"),
(command: CloseWindow, value: "", modifier: ["modkey"], key: "q"),
(command: ToggleScratchPad, value: "alsamixer", modifier: ["modkey"], key: "a"),
(command: ToggleScratchPad, value: "mc", modifier: ["modkey"], key: "m"),
(command: ToggleScratchPad, value: "ncmpcpp", modifier: ["modkey"], key: "n"),
(command: ToggleSticky, modifier: ["modkey"], key: "v"),
(command: Execute, value: "rofi -show drun", modifier: ["modkey"], key: "r"),
(command: Execute, value: "yegonesh", modifier: ["modkey"], key: "p"),
(command: Execute, value: "urxvtcd", modifier: ["modkey", "Shift"], key: "Return"),
(command: Execute, value: "emacs", modifier: ["modkey"], key: "e"),
(command: Execute, value: "librewolf", modifier: ["modkey"], key: "g"),
(command: Execute, value: "GTK_THEME=Materia-dark thunar", modifier: ["modkey"], key: "t"),
(command: Execute, value: "scrot ~/Screenshots/%Y-%m-%d_%H:%M:%S.png", key: "Print"),
(command: Execute, value: "sleep 0.2; scrot -s ~/Screenshots/%Y-%m-%d_%H:%M:%S.png", modifier: ["modkey"], key: "Print"),
(command: Execute, value: "touch ~/.pomodoro_session", modifier: ["modkey", "Shift"], key: "p"),
(command: Execute, value: "[ -f ~/.pomodoro_session ] && rm ~/.pomodoro_session", modifier: ["modkey", "Control"], key: "p"),
(command: Execute, value: "xscreensaver-command --lock", modifier: ["modkey", "Shift"], key: "s"),
(command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
(command: Execute, value: "mpc toggle", modifier: ["modkey"], key: "Delete"),
(command: ToggleFullScreen, modifier: ["modkey"], key: "f"),
(command: IncreaseMainSize, value: "5", modifier: ["modkey"], key: "h"),
(command: DecreaseMainSize, value: "5", modifier: ["modkey"], key: "l"),
(command: FloatingToTile, modifier: ["modkey", "Shift"], key: "t"),
(command: TileToFloating, modifier: ["modkey", "Shift"], key: "f"),
(command: ToggleFloating, modifier: ["modkey", "Control"], key: "f"),
(command: NextLayout, value: "", modifier: ["modkey"], key: "space"),
(command: PreviousLayout, value: "", modifier: ["modkey", "Shift"], key: "space"),
(command: SwapTags, value: "", modifier: ["modkey"], key: "w"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"),
(command: MoveWindowTop, value: "", modifier: ["modkey"], key: "Return"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"),
(command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"),
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "o"),
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "i"),
(command: GotoTag, value: "1", modifier: ["modkey"], key: "1"),
(command: GotoTag, value: "2", modifier: ["modkey"], key: "2"),
(command: GotoTag, value: "3", modifier: ["modkey"], key: "3"),
(command: GotoTag, value: "4", modifier: ["modkey"], key: "4"),
(command: GotoTag, value: "5", modifier: ["modkey"], key: "5"),
(command: GotoTag, value: "6", modifier: ["modkey"], key: "6"),
(command: GotoTag, value: "7", modifier: ["modkey"], key: "7"),
(command: GotoTag, value: "8", modifier: ["modkey"], key: "8"),
(command: GotoTag, value: "9", modifier: ["modkey"], key: "9"),
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "1"),
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "2"),
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "3"),
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "4"),
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "5"),
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "6"),
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "7"),
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "8"),
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "9"),
// Waiting on: https://github.com/leftwm/leftwm/issues/343#issuecomment-1937174314
(command: SetMarginMultiplier, value: "2", modifier: ["modkey", "Control"], key: "m"),
],
workspaces: [],
)