Krolyxon
Commit 9e1bc68

Branches

Refs →

aurora.confighyprsourcekeybinds.conf

117 lines · 4.8 KB · nginx

1###################
2### KEYBINDINGS ###
3###################
4
5# See https://wiki.hypr.land/Configuring/Keywords/
6$mainMod = SUPER # Sets "Windows" key as main modifier
7
8# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
9bind = $mainMod, Return, exec, $terminal
10bind = $mainMod SHIFT, X, killactive,
11bind = $mainMod SHIFT, Q, exit,
12bind = $mainMod, F, Fullscreen
13bind = $mainMod SHIFT, F, Fullscreen, 1
14# bind = $mainMod SHIFT, R, togglefloating,
15# Smart Float: Toggle float -> Resize to 90% -> Center
16bind = $mainMod SHIFT, R, exec, if hyprctl -j activewindow | jq -e '.floating | not'; then hyprctl --batch "dispatch togglefloating; dispatch resizeactive exact 90% 90%; dispatch centerwindow"; else hyprctl dispatch togglefloating; fi
17bind = $mainMod, R, exec, $menu
18bind = $mainMod SHIFT, P, pseudo, # dwindle
19bind = $mainMod, J, togglesplit, # dwindle
20binde = $mainMod, tab, cyclenext, prev
21bind = $mainMod, b, exec, killall waybar || waybar
22bind = $mainMod, grave, exec, fuzzelunicode
23bind = $mainMod, escape, exec, sysact
24
25# Applications
26bind = $mainMod, W, exec, $browser
27bind = $mainMod SHIFT, p, exec, $passwordmanager -C
28bind = ,PRINT, exec, screenshot
29
30# Music Controls
31bind = $mainMod, m, exec, $terminal -e zsh -i -c "ncmpcpp"
32bind = $mainMod, p, exec, mpc toggle
33binde = $mainMod, period, exec, mpc seek +10
34binde = $mainMod, comma, exec, mpc seek -10
35bind = $mainMod SHIFT, period, exec, mpc next
36bind = $mainMod SHIFT, comma, exec, mpc prev
37
38# Swap current focused window with master
39bind = $mainMod, space, layoutmsg, swapwithmaster
40
41# Resize windows with h/j/k/l
42binde = $mainMod, h, resizeactive, -30 0
43binde = $mainMod, l, resizeactive, 30 0
44binde = $mainMod, k, resizeactive, 0 -30
45binde = $mainMod, j, resizeactive, 0 30
46
47# Switch workspaces with mainMod + [0-9]
48bind = $mainMod, 1, split-workspace, 1
49bind = $mainMod, 2, split-workspace, 2
50bind = $mainMod, 3, split-workspace, 3
51bind = $mainMod, 4, split-workspace, 4
52bind = $mainMod, 5, split-workspace, 5
53bind = $mainMod, 6, split-workspace, 6
54bind = $mainMod, 7, split-workspace, 7
55bind = $mainMod, 8, split-workspace, 8
56bind = $mainMod, 9, split-workspace, 9
57bind = $mainMod, 0, split-workspace, 10
58
59# Move active window to a workspace with mainMod + SHIFT + [0-9]
60bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
61bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
62bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
63bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
64bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
65bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
66bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
67bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
68bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
69bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10
70
71# Example special workspace (scratchpad)
72bind = $mainMod, S, togglespecialworkspace, magic
73bind = $mainMod SHIFT, S, movetoworkspace, special:magic
74
75# Have scratchpad like DWM
76workspace = special:h, on-created-empty: $terminal
77bind = $mainMod SHIFT, Return, togglespecialworkspace, h
78
79# --- Screen Rotate ---
80bindld = CTRL ALT, R, Rotate Screen Clockwise, exec, hypr_screen_rotate.sh -90
81bindld = CTRL ALT SHIFT, R, Rotate Screen Anti-Clockwise, exec, hypr_screen_rotate.sh +90
82
83# --- Accessibility: Zoom ---
84cursor:zoom_disable_aa = true
85
86# Zoom In
87binded = SUPER SHIFT, equal, Zoom In, exec, sh -c "hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {print $2 * 1.25}')\""
88
89# Zoom Out
90binded = SUPER SHIFT, minus, Zoom Out, exec, sh -c "hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {val = $2 / 1.25; if (val < 1.0) val = 1.0; print val}')\""
91
92# Reset Zoom
93bindld = SUPER SHIFT, BACKSPACE, Reset Zoom, exec, hyprctl keyword cursor:zoom_factor 1.0
94
95# Scroll through existing workspaces with mainMod + scroll
96bind = $mainMod, mouse_down, workspace, e+1
97bind = $mainMod, mouse_up, workspace, e-1
98
99# Move/resize windows with mainMod + LMB/RMB and dragging
100bindm = $mainMod, mouse:272, movewindow
101bindm = $mainMod, mouse:273, resizewindow
102
103# Laptop multimedia keys for volume and LCD brightness
104bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
105bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
106bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
107bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
108bindel = , XF86MonBrightnessDown, exec, ~/.local/bin/brictl -
109bindel = , XF86MonBrightnessUp, exec, ~/.local/bin/brictl +
110
111
112# Requires playerctl
113bindl = , XF86AudioNext, exec, playerctl next
114bindl = , XF86AudioPause, exec, playerctl play-pause
115bindl = , XF86AudioPlay, exec, playerctl play-pause
116bindl = , XF86AudioPrev, exec, playerctl previous
117