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

150 lines
5.7 KiB
Text
Raw Normal View History

2023-10-19 09:57:45 +02:00
# 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,
2024-01-04 10:14:02 +01:00
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod SHIFT, SPACE, togglefloating,
2024-01-11 15:03:09 +01:00
bind = $mainMod SHIFT, E, pin,
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, B, exec, $browser
bind = $mainMod, N, exec, $explorer
2023-11-28 18:27:31 +01:00
bind = $mainMod, M, exec, prismlauncher
bind = $mainMod, O, exec, obsidian
bind = $mainMod, R, exec, anyrun
2023-10-19 13:26:12 +02:00
bind = $mainMod, L, exec, swaylock-hyprland
2023-11-21 13:34:32 +01:00
bind = $mainMod, U, exec, ~/.local/bin/uwu-launcher
2023-10-19 09:57:45 +02:00
# Screenshots
bind = $mainMod, F6, exec, grim -g "$(slurp)" - | wl-copy
2023-11-13 11:01:53 +01:00
# Color picker
bind = $mainMod, DOLLAR, exec, hyprpicker --autocopy
2023-10-19 09:57:45 +02:00
# 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
2023-10-19 09:57:45 +02:00
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
2023-10-19 09:57:45 +02:00
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
2024-01-25 14:39:21 +01:00
bind = ,XF86Launch4, exec, ~/.config/eww/scripts/power_profile next
2023-10-19 09:57:45 +02:00
# 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/waybar/scripts/refresh_rate.sh toggle; pkill -SIGRTMIN+10 waybar
# Toggle screen
bind = WIN, F9, exec, togglescreen
2023-10-19 09:57:45 +02:00
# Waybar
bind = $mainMod, 64, exec, pkill -SIGUSR1 '^waybar$'
# Audio controls
bind = , XF86AudioPlay, exec, playerctl play-pause
2024-01-11 15:01:53 +01:00
bind = , XF86AudioPause, exec, playerctl play-pause
2023-10-19 09:57:45 +02:00
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPrev, exec, playerctl previous
2024-01-04 10:14:02 +01:00
# 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
2023-10-19 09:57:45 +02:00
# Moving windows
2024-01-04 10:14:02 +01:00
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
2023-10-19 09:57:45 +02:00
# 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
2023-10-19 09:57:45 +02:00
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
2024-01-04 10:14:02 +01:00
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
2023-10-19 09:57:45 +02:00
# 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
2024-01-04 10:14:02 +01:00
bindn = , mouse:272, hy3:focustab, mouse
bindn = , mouse_down, hy3:focustab, l, require_hovered
bindn = , mouse_up, hy3:focustab, r, require_hovered
2023-10-19 09:57:45 +02:00
# Fullscreen
bind = $mainMod, F, fullscreen