summaryrefslogtreecommitdiffstats
path: root/.config/hypr/conf/keybinds.conf
blob: e1d96956147b1962a9a4ddcffff2363c382e80a6 (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
# Key bindings

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER
$terminal = kitty
$fileManager = thunar
$menu = tofi-drun | xargs hyprctl dispatch exec --

# Applications
bind = $mainMod+SHIFT, code:41, exec, $fileManager # f
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, code:71, exec, $HOME/.local/bin/mailsync # f5
bind = ,code:118, exec, copyq menu # ins
bind = $mainMod, 0, exec, swaync-client --hide-latest
bind = $mainMod+SHIFT, 0, exec, swaync-client -t
bindr = SUPER+SHIFT, escape, exec, wlogout
bindr = $mainMod, code:42, exec, $HOME/.local/bin/done # g
bindr = $mainMod, code:30, exec, $HOME/.local/bin/bukuadd_c # u
bindr = $mainMod, code:35, exec, $HOME/.local/bin/td # ]

bind = $mainMod+SHIFT, code:24, killactive, # q
bind = $mainMod, code:55, togglefloating, # v
bind = $mainMod, code:40, exec, $menu # d
bind = $mainMod, code:27, pseudo, # p, dwindle
bind = $mainMod, code:26, togglesplit, # e, dwindle
bind = $mainMod, code:41, fullscreen, 2 # f

bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPrev, exec, playerctl previous

# Screenshots:
# Super+P: Current window
# Super+Shift+p: Select area
# Super+Alt+p Current output
# Super+Ctrl+p All outputs

# Optionally, customize slurp's appearance
env = SLURP_ARGS, -d -B F050F022 -b 10101022 -c ff00ff

bind = ,Print, exec, ~/.local/bin/screenshot.sh
bind = SHIFT, Print, exec, grimblast copy area

# Move focus
bind = $mainMod, code:43, movefocus, l
bind = $mainMod, code:44, movefocus, d
bind = $mainMod, code:45, movefocus, u
bind = $mainMod, code:46, movefocus, r

# Move window
bind = $mainMod+SHIFT, code:43, movewindow, l
bind = $mainMod+SHIFT, code:44, movewindow, d
bind = $mainMod+SHIFT, code:45, movewindow, u
bind = $mainMod+SHIFT, code:46, movewindow, r

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, code:21, workspace, name:browser
bind = $mainMod, code:49, workspace, name:zotero
bind = $mainMod, code:60, workspace, name:desktop
bind = $mainMod, code:59, workspace, name:console
bind = $mainMod, code:58, workspace, name:music

# Example special workspace (scratchpad)
bind = $mainMod, code:20, togglespecialworkspace, magic # -
bind = $mainMod SHIFT, code:20, movetoworkspace, special:magic

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, code:21, movetoworkspace, name:browser
bind = $mainMod SHIFT, code:49, movetoworkspace, name:zotero
bind = $mainMod SHIFT, code:60, movetoworkspace, name:desktop
bind = $mainMod SHIFT, code:59, movetoworkspace, name:console
bind = $mainMod SHIFT, code:58, movetoworkspace, name:music

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow