Files
dotfiles/.config/hypr/bindings.conf
2025-05-07 19:20:06 +02:00

70 lines
4.0 KiB
Plaintext

# https://wiki.hyprland.org/Configuring/Binds/
$terminal = alacritty
$fileManager = dolphin
$menu = rofi -show drun -config "$HOME/.config/rofi/config.rasi"
$browser = librewolf
$code = code
$lock = hyprlock
$mainMod = SUPER
# Programs
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, R, exec, $menu
bind = $mainMod, B, exec, $browser
bind = $mainMod, L, exec, $lock
bind = $mainMod, C, exec, $code
bind = $mainMod, RETURN, exec, $terminal
# Window control
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, E, exit,
bind = $mainMod, W, togglefloating,
bind = $mainMod, F, fullscreen,
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Independent workspaces per monitor
bind = $mainMod, 1, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'01'
bind = $mainMod, 2, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'02'
bind = $mainMod, 3, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'03'
bind = $mainMod, 4, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'04'
bind = $mainMod, 5, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'05'
bind = $mainMod, 6, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'06'
bind = $mainMod, 7, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'07'
bind = $mainMod, 8, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'08'
bind = $mainMod, 9, exec, hyprctl dispatch workspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'09'
# Move apps between workspacer per monitor
bind = $mainMod SHIFT, 1, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'01'
bind = $mainMod SHIFT, 2, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'02'
bind = $mainMod SHIFT, 3, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'03'
bind = $mainMod SHIFT, 4, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'04'
bind = $mainMod SHIFT, 5, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'05'
bind = $mainMod SHIFT, 6, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'06'
bind = $mainMod SHIFT, 7, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'07'
bind = $mainMod SHIFT, 8, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'08'
bind = $mainMod SHIFT, 9, exec, hyprctl dispatch movetoworkspace $((`hyprctl monitors -j | jq -r ".[] | select(.focused==true).id"`))'09'
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous