Krolyxon
Commit 2224311

Branches

Refs →

aurora.confighyprsourcekeybinds.conf

118 lines · 4.9 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
19binde = $mainMod, tab, cyclenext, prev
20bind = $mainMod, b, exec, killall waybar || waybar
21bind = $mainMod, grave, exec, fuzzelunicode
22bind = $mainMod, escape, exec, sysact
23
24# Applications
25bind = $mainMod, W, exec, $browser
26bind = ,PRINT, exec, hypr_screenshot.sh
27bind = $mainMod SHIFT, P, exec, hypr_screenshot.sh
28
29# Music Controls
30bind = $mainMod, m, exec, $terminal -e zsh -i -c "ncmpcpp"
31bind = $mainMod, p, exec, mpc toggle
32binde = $mainMod, period, exec, mpc seek +10
33binde = $mainMod, comma, exec, mpc seek -10
34bind = $mainMod SHIFT, period, exec, mpc next
35bind = $mainMod SHIFT, comma, exec, mpc prev
36
37# Swap current focused window with master
38bind = $mainMod, space, layoutmsg, swapwithmaster
39
40# Resize windows with h/j/k/l
41binde = $mainMod, h, resizeactive, -30 0
42binde = $mainMod, l, resizeactive, 30 0
43binde = $mainMod, k, resizeactive, 0 -30
44binde = $mainMod, j, resizeactive, 0 30
45
46# Switch workspaces with mainMod + [0-9]
47bind = $mainMod, 1, split-workspace, 1
48bind = $mainMod, 2, split-workspace, 2
49bind = $mainMod, 3, split-workspace, 3
50bind = $mainMod, 4, split-workspace, 4
51bind = $mainMod, 5, split-workspace, 5
52bind = $mainMod, 6, split-workspace, 6
53bind = $mainMod, 7, split-workspace, 7
54bind = $mainMod, 8, split-workspace, 8
55bind = $mainMod, 9, split-workspace, 9
56bind = $mainMod, 0, split-workspace, 10
57
58# Move active window to a workspace with mainMod + SHIFT + [0-9]
59bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1
60bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2
61bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3
62bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4
63bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5
64bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6
65bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7
66bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8
67bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9
68bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10
69
70# Example special workspace (scratchpad)
71bind = $mainMod, S, togglespecialworkspace, magic
72bind = $mainMod SHIFT, S, movetoworkspace, special:magic
73
74# Scratchpad like DWM
75workspace = special:h, on-created-empty: $terminal
76bind = $mainMod SHIFT, Return, togglespecialworkspace, h
77
78
79# Accessibility: Zoom
80cursor:zoom_disable_aa = true
81# Zoom In
82binded = SUPER, equal, Zoom In, exec, sh -c "hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {print $2 * 1.25}')\""
83# Zoom Out
84binded = SUPER, 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}')\""
85# Reset Zoom
86bindld = SUPER, BACKSPACE, Reset Zoom, exec, hyprctl keyword cursor:zoom_factor 1.0
87
88# Screen Rotate
89bindld = $mainMod CTRL, comma, Rotate Screen Anti-Clockwise, exec, hypr_screen_rotate.sh +90
90bindld = $mainMod CTRL, period, Rotate Screen Clockwise, exec, hypr_screen_rotate.sh -90
91
92# --- Hyprshade (Visual Filters) ---
93bindd = $mainMod CTRL, S, Shader Menu, exec, hypr_shader_menu.sh
94bindld = $mainMod CTRL, X, Disable Shader, exec, hyprshade off
95bindld = $mainMod CTRL, V, Vibrant Shader, exec, hyprshade on vibrance
96
97# Scroll through existing workspaces with mainMod + scroll
98bind = $mainMod, mouse_down, workspace, e+1
99bind = $mainMod, mouse_up, workspace, e-1
100
101# Move/resize windows with mainMod + LMB/RMB and dragging
102bindm = $mainMod, mouse:272, movewindow
103bindm = $mainMod, mouse:273, resizewindow
104
105# Laptop multimedia keys for volume and LCD brightness
106bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
107bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
108bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
109bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
110bindel = , XF86MonBrightnessDown, exec, ~/.local/bin/brictl -
111bindel = , XF86MonBrightnessUp, exec, ~/.local/bin/brictl +
112
113
114# Requires playerctl
115bindl = , XF86AudioNext, exec, playerctl next
116bindl = , XF86AudioPause, exec, playerctl play-pause
117bindl = , XF86AudioPlay, exec, playerctl play-pause
118bindl = , XF86AudioPrev, exec, playerctl previous