aboutsummaryrefslogtreecommitdiff
path: root/home/rices/schrottkatze/niri/kdl/binds.kdl
blob: 611e23168a8339c83323fc89045248b0ee1c8904 (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
binds {
    // spawn terminal
    Mod+Return repeat=false { spawn "kitty"; }
    Mod+D repeat=false { spawn "fuzzel"; }
    Mod+I repeat=false { spawn "bemoji" "-n"; }
    Mod+M repeat=false { spawn "hyprpicker"; }
	Mod+E repeat=false { spawn "kitty" "hx" "~/.config/niri/live.kdl"; }

    Mod+Shift+E { quit; }
    Mod+Shift+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
    Mod+H { focus-column-left; }
    Mod+J { focus-window-down; }
    Mod+K { focus-window-up; }
    Mod+L { focus-column-right; }
    Mod+Ctrl+H { move-column-left; }
    Mod+Ctrl+J { move-window-down; }
    Mod+Ctrl+K { move-window-up; }
    Mod+Ctrl+L { move-column-right; }
    Mod+R { switch-preset-column-width; }

    Mod+G { toggle-overview; }

    Mod+V { toggle-window-floating; }
    Mod+Shift+V { switch-focus-between-floating-and-tiling; }

    // monitor controls
    Mod+Shift+H { focus-monitor-left; }
    Mod+Shift+J { focus-monitor-down; }
    Mod+Shift+K { focus-monitor-up; }
    Mod+Shift+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@" "0.1-"; }
    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@" "0.1+"; }
}