Krolyxon
Commit 096f55e

Branches

Refs →

aurora.confighyprsourcekeybinds.conf

119 lines · 5.0 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 = ,PRINT, exec, hypr_screenshot.sh
28bind = $mainMod SHIFT, P, exec, hypr_screenshot.sh
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# Scratchpad like DWM
76workspace = special:h, on-created-empty: $terminal
77bind = $mainMod SHIFT, Return, togglespecialworkspace, h
78
79
80# Accessibility: Zoom
81cursor:zoom_disable_aa = true
82# Zoom In
83binded = SUPER, equal, Zoom In, exec, sh -c "hyprctl keyword cursor:zoom_factor \"$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {print $2 * 1.25}')\""
84# Zoom Out
85binded = 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}')\""
86# Reset Zoom
87bindld = SUPER, BACKSPACE, Reset Zoom, exec, hyprctl keyword cursor:zoom_factor 1.0
88
89# Screen Rotate
90bindld = $mainMod CTRL, comma, Rotate Screen Anti-Clockwise, exec, hypr_screen_rotate.sh +90
91bindld = $mainMod CTRL, period, Rotate Screen Clockwise, exec, hypr_screen_rotate.sh -90
92
93# --- Hyprshade (Visual Filters) ---
94bindd = $mainMod CTRL, S, Shader Menu, exec, hypr_shader_menu.sh
95bindld = $mainMod CTRL, X, Disable Shader, exec, hyprshade off
96bindld = $mainMod CTRL, V, Vibrant Shader, exec, hyprshade on vibrance
97
98# Scroll through existing workspaces with mainMod + scroll
99bind = $mainMod, mouse_down, workspace, e+1
100bind = $mainMod, mouse_up, workspace, e-1
101
102# Move/resize windows with mainMod + LMB/RMB and dragging
103bindm = $mainMod, mouse:272, movewindow
104bindm = $mainMod, mouse:273, resizewindow
105
106# Laptop multimedia keys for volume and LCD brightness
107bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
108bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
109bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
110bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
111bindel = , XF86MonBrightnessDown, exec, ~/.local/bin/brictl -
112bindel = , XF86MonBrightnessUp, exec, ~/.local/bin/brictl +
113
114
115# Requires playerctl
116bindl = , XF86AudioNext, exec, playerctl next
117bindl = , XF86AudioPause, exec, playerctl play-pause
118bindl = , XF86AudioPlay, exec, playerctl play-pause
119bindl = , XF86AudioPrev, exec, playerctl previous