pointfichiers/de/hypr/hyprland.conf.d/bindings.conf

149 lines
5.7 KiB
Text

# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Variables
$terminal = alacritty
$browser = firefox
$explorer = kitty --class=explorer yazi
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod SHIFT, SPACE, togglefloating,
bind = $mainMod SHIFT, E, pin,
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, B, exec, $browser
bind = $mainMod, N, exec, $explorer
bind = $mainMod, M, exec, prismlauncher
bind = $mainMod, O, exec, obsidian
bind = $mainMod, R, exec, anyrun
bind = $mainMod, L, exec, swaylock-hyprland
bind = $mainMod, U, exec, ~/.local/bin/uwu-launcher
# Screenshots
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy
# Color picker
bind = $mainMod, DOLLAR, exec, hyprpicker --autocopy
# ROG G15 Strix (2021) Specific binds
# bind = ,156, exec, rog-control-center # ASUS Armory crate key
bind = ,XF86AudioMute, exec, swayosd-client --output-volume mute-toggle # Speaker Mute FN+F1
binde = ,XF86AudioLowerVolume, exec, swayosd-client --output-volume lower # Volume lower key
binde = ,XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise # Volume Higher key
bind = ,XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle # Mic mute key
binde = ,XF86MonBrightnessDown, exec, swayosd-client --brightness lower # Screen brightness down FN+F7
binde = ,XF86MonBrightnessUp, exec, swayosd-client --brightness raise # Screen brightness up FN+F8
bind = ,237, exec, brightnessctl -d asus::kbd_backlight set 33%- # Keyboard brightness down FN+F2
bind = ,238, exec, brightnessctl -d asus::kbd_backlight set 33%+ # Keyboard brightnes up FN+F3
bind = ,XF86TouchpadToggle, exec, ~/.local/bin/wtoggle-touchpad
bind = ,XF86Sleep, exec, sudo zzz
# Power profile
bind = ,XF86Launch4, exec, ~/.config/eww/scripts/power_profile next
# Led profile
bind = ,XF86Launch3, exec, asusctl led-mode -n
# Wayland gamemode
bind = WIN, F5, exec, ~/.config/hypr/gamemode.sh
# Panel overdrive
bind = $mainMod+SHIFT, o, exec, ~/.config/eww/scripts/refresh_rate toggle
# Toggle screen
bind = WIN, F9, exec, togglescreen
# Waybar
bind = $mainMod, 64, exec, pkill -SIGUSR1 '^waybar$'
# Audio controls
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = , XF86AudioPause, exec, playerctl play-pause
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPrev, exec, playerctl previous
# Hy3 controls
bind = $mainMod, d, hy3:makegroup, h, ephemeral
bind = $mainMod+SHIFT, d, hy3:makegroup, v, ephemeral
bind = $mainMod, z, hy3:makegroup, tab, ephemeral
bind = $mainMod, a, hy3:changefocus, raise
bind = $mainMod+SHIFT, a, hy3:changefocus, lower
bind = $mainMod, s, hy3:changegroup, toggletab
bind = $mainMod, e, hy3:changegroup, opposite
# Moving focus
bind = $mainMod, left, hy3:movefocus, l
bind = $mainMod, right, hy3:movefocus, r
bind = $mainMod, up, hy3:movefocus, u
bind = $mainMod, down, hy3:movefocus, d
# Moving focus visible
bind = $mainMod+CONTROL, left, hy3:movefocus, l, visible
bind = $mainMod+CONTROL, down, hy3:movefocus, d, visible
bind = $mainMod+CONTROL, up, hy3:movefocus, u, visible
bind = $mainMod+CONTROL, right, hy3:movefocus, r, visible
# Moving windows
bind = $mainMod SHIFT, left, hy3:movewindow, l, once
bind = $mainMod SHIFT, right, hy3:movewindow, r, once
bind = $mainMod SHIFT, up, hy3:movewindow, u, once
bind = $mainMod SHIFT, down, hy3:movewindow, d, once
# Moving windows visible
bind = $mainMod+CONTROL+SHIFT, left, hy3:movewindow, l, once, visible
bind = $mainMod+CONTROL+SHIFT, down, hy3:movewindow, d, once, visible
bind = $mainMod+CONTROL+SHIFT, up, hy3:movewindow, u, once, visible
bind = $mainMod+CONTROL+SHIFT, right, hy3:movewindow, r, once, visible
# Resizing windows
binde = $mainMod+ALT, right, resizeactive, 30 0
binde = $mainMod+ALT, left, resizeactive, -30 0
binde = $mainMod+ALT, up, resizeactive, 0 -30
binde = $mainMod+ALT, down, resizeactive, 0 30
bind = $mainMod, 10, workspace, 1
bind = $mainMod, 11, workspace, 2
bind = $mainMod, 12, workspace, 3
bind = $mainMod, 13, workspace, 4
bind = $mainMod, 14, workspace, 5
bind = $mainMod, 15, workspace, 6
bind = $mainMod, 16, workspace, 7
bind = $mainMod, 17, workspace, 8
bind = $mainMod, 18, workspace, 9
bind = $mainMod, 19, workspace, 10
# Moving to workspaces
bind = $mainMod SHIFT, 10, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 11, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 12, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 13, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 14, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 15, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 16, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 17, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 18, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 19, movetoworkspacesilent, 10
bind = $mainMod+CONTROL, 10, hy3:focustab, index, 01
bind = $mainMod+CONTROL, 11, hy3:focustab, index, 02
bind = $mainMod+CONTROL, 12, hy3:focustab, index, 03
bind = $mainMod+CONTROL, 13, hy3:focustab, index, 04
bind = $mainMod+CONTROL, 14, hy3:focustab, index, 05
bind = $mainMod+CONTROL, 15, hy3:focustab, index, 06
bind = $mainMod+CONTROL, 16, hy3:focustab, index, 07
bind = $mainMod+CONTROL, 17, hy3:focustab, index, 08
bind = $mainMod+CONTROL, 18, hy3:focustab, index, 09
bind = $mainMod+CONTROL, 19, hy3:focustab, index, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bindn = , mouse:272, hy3:focustab, mouse
bindn = , mouse_down, hy3:focustab, l, require_hovered
bindn = , mouse_up, hy3:focustab, r, require_hovered
# Fullscreen
bind = $mainMod, F, fullscreen