blob: 28da7002a966ba7ea49652c2b2a7e9bca73a283d (
plain)
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
|
binds {
// spawn terminal
Mod+Return repeat=false { spawn "kitty"; }
Mod+D repeat=false { spawn "fuzzel"; }
Mod+M repeat=false { spawn "hyprpicker"; }
Mod+I repeat=false { spawn "bemoji" "-n"; }
Mod+N repeat=false { spawn "firefox"; }
Mod+E repeat=false { spawn "kitty" "hx" "~/.config/niri/live.kdl"; }
Mod+Ctrl+Shift+E { quit; }
Mod+Q { close-window; }
Mod+Ctrl+Shift+P { power-off-monitors; }
Mod+Shift+Ctrl+Slash allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
Mod+Shift+Slash { show-hotkey-overlay; }
Mod+Shift+C { set-dynamic-cast-window; }
Mod+Ctrl+C { set-dynamic-cast-monitor; }
Mod+Shift+Ctrl+C { clear-dynamic-cast-target; }
// window/columns controls (focus: vim keys)
Mod+H { focus-column-left; }
Mod+J { focus-window-down; }
Mod+K { focus-window-up; }
Mod+L { focus-column-right; }
// window/columns controls (focus: arrow keys)
Mod+Left { focus-column-left; }
Mod+Down { focus-window-down; }
Mod+Up { focus-window-up; }
Mod+Right { focus-column-right; }
// move windows (vim keys)
Mod+Shift+H { move-column-left; }
Mod+Shift+J { move-window-down; }
Mod+Shift+K { move-window-up; }
Mod+Shift+L { move-column-right; }
// move windows (arrow keys)
Mod+Shift+Left { move-column-left; }
Mod+Shift+Down { move-window-down; }
Mod+Shift+Up { move-window-up; }
Mod+Shift+Right { move-column-right; }
Mod+R { switch-preset-column-width; }
Mod { toggle-overview; }
Mod+V { toggle-window-floating; }
Mod+Shift+V { switch-focus-between-floating-and-tiling; }
// monitor controls
Mod+Ctrl+H { focus-monitor-left; }
Mod+Ctrl+J { focus-monitor-down; }
Mod+Ctrl+K { focus-monitor-up; }
Mod+Ctrl+L { focus-monitor-right; }
Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
Mod+Shift+Ctrl+J { move-column-to-monitor-down; }
Mod+Shift+Ctrl+K { move-column-to-monitor-up; }
Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
// column editing stuffs
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
Mod+C { center-column; }
Mod+Minus { set-column-width "-5%"; }
Mod+Equal { set-column-width "+5%"; }
Mod+Shift+Minus { set-window-height "-10%"; }
Mod+Shift+Equal { set-window-height "+10%"; }
Mod+Shift+W { toggle-column-tabbed-display; }
Mod+F { maximize-column; }
Alt+F { expand-column-to-available-width; }
Mod+Shift+F { maximize-window-to-edges; }
Mod+Ctrl+F { fullscreen-window; }
Mod+Shift+Ctrl+F { toggle-windowed-fullscreen; }
// media keys
XF86AudioLowerVolume \
allow-when-locked=true \
{ spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
XF86AudioMicMute \
allow-when-locked=true \
{ spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
XF86AudioMute \
allow-when-locked=true \
{ spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
XF86AudioRaiseVolume \
allow-when-locked=true \
{ spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
// brightness keys
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; }
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; }
}
|