146 lines
6.1 KiB
Plaintext
146 lines
6.1 KiB
Plaintext
# █▄▀ █▀▀ █▄█ █▄▄ █ █▄░█ █▀▄ █ █▄░█ █▀▀ █▀
|
|
# █░█ ██▄ ░█░ █▄█ █ █░▀█ █▄▀ █ █░▀█ █▄█ ▄█
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
|
|
################################################
|
|
# Main modifier
|
|
################################################
|
|
$mainMod = SUPER # windows key
|
|
$terminal = kitty
|
|
$filemanager = dolphin
|
|
|
|
|
|
|
|
################################################
|
|
# Main actions
|
|
################################################
|
|
bind = $mainMod, Q, exec, ~/.config/hypr/scripts/dontkillsteam.sh # killactive, # kill the window on focus
|
|
bind = $mainMod CTRL, delete, exit, # kill hyperland session
|
|
bind = $mainMod, F, togglefloating, # toggle the window on focus to float
|
|
bind = $mainMod, L, exec, swaylock # lock screen
|
|
bind = $mainMod, P, pseudo, # dwindle
|
|
bind = $mainMod, S, togglesplit, # split screen
|
|
bind = $mainMod, return, fullscreen, # toggle the window on focus to fullscreen
|
|
|
|
# Application shortcuts
|
|
bind = $mainMod, grave, exec, $terminal # ~ open terminal
|
|
bind = $mainMod, E, exec, $filemanager # open file manager
|
|
bind = $mainMod, V, exec, code # open vscode
|
|
|
|
################################################
|
|
# Control actions
|
|
################################################
|
|
# Rofi is toggled on/off if you repeat the key presses
|
|
bind = $mainMod, SPACE, exec, pkill rofi || rofi -show drun # launch desktop applications
|
|
bind = $mainMod, tab, exec, pkill rofi || rofi -show window # switch between desktop applications
|
|
bind = $mainMod, D, exec, pkill rofi || rofi -show filebrowser # browse system files
|
|
bind = $mainMod, R, exec, pkill rofi || rofi -show run # run a command
|
|
|
|
# Audio control
|
|
# bind = , F10, exec, ~/.config/hypr/scripts/volumecontrol.sh -o m # toggle audio mute
|
|
# binde = , F11, exec, ~/.config/hypr/scripts/volumecontrol.sh -o d # decrease volume
|
|
# binde = , F12, exec, ~/.config/hypr/scripts/volumecontrol.sh -o i # increase volume
|
|
bind = , XF86AudioMute, exec, ~/.config/hypr/scripts/volumecontrol.sh -o m # toggle audio mute
|
|
bind = , XF86AudioMicMute, exec, ~/.config/hypr/scripts/volumecontrol.sh -i m # toggle microphone mute
|
|
binde = , XF86AudioLowerVolume, exec, ~/.config/hypr/scripts/volumecontrol.sh -o d # decrease volume
|
|
binde = , XF86AudioRaiseVolume, exec, ~/.config/hypr/scripts/volumecontrol.sh -o i # increase volume
|
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
|
bind = , XF86AudioPause, exec, playerctl play-pause
|
|
bind = , XF86AudioNext, exec, playerctl next
|
|
bind = , XF86AudioPrev, exec, playerctl previous
|
|
|
|
# Brightness control
|
|
binde = , XF86MonBrightnessUp, exec, ~/.config/hypr/scripts/brightnesscontrol.sh i # increase brightness
|
|
binde = , XF86MonBrightnessDown, exec, ~/.config/hypr/scripts/brightnesscontrol.sh d # decrease brightness
|
|
|
|
# Screenshot/screencapture
|
|
bind = , PRINT, exec, hyprshot -m window # logout menu
|
|
bind = ALT, PRINT, exec, hyprshot -m region # logout menu
|
|
bind = $CONTROL SHIFT, P, pass, ^(com\.obsproject\.Studio)$ # start/stop obs screen recording
|
|
|
|
|
|
################################################
|
|
# Exec custom scripts
|
|
################################################
|
|
bind = $mainMod, G, exec, ~/.config/hypr/scripts/gamemode.sh # disable hypr effects for gamemode
|
|
|
|
|
|
|
|
################################################
|
|
# Window actions
|
|
################################################
|
|
# 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
|
|
bind = ALT, Tab, movefocus, d
|
|
|
|
# Resize windows
|
|
binde = $mainMod CONTROL, right, resizeactive, 10 0
|
|
binde = $mainMod CONTROL, left, resizeactive, -10 0
|
|
binde = $mainMod CONTROL, up, resizeactive, 0 -10
|
|
binde = $mainMod CONTROL, down, resizeactive, 0 10
|
|
|
|
# Move Window with mainMod + SHIFT + arrow keys
|
|
bind = $mainMod SHIFT, left, movewindow, l
|
|
bind = $mainMod SHIFT, right, movewindow, r
|
|
bind = $mainMod SHIFT, up, movewindow, u
|
|
bind = $mainMod SHIFT, down, movewindow, d
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
|
|
################################################
|
|
# Workspace actions
|
|
################################################
|
|
# Switch workspaces with mainMod + [0-9]
|
|
bind = $mainMod, 1, workspace, 1
|
|
bind = $mainMod, 2, workspace, 2
|
|
bind = $mainMod, 3, workspace, 3
|
|
bind = $mainMod, 4, workspace, 4
|
|
bind = $mainMod, 5, workspace, 5
|
|
bind = $mainMod, 6, workspace, 6
|
|
bind = $mainMod, 7, workspace, 7
|
|
bind = $mainMod, 8, workspace, 8
|
|
bind = $mainMod, 9, workspace, 9
|
|
bind = $mainMod, 0, workspace, 10
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
|
|
# Move window to workspace Super + Alt + [0-9]
|
|
bind = $mainMod ALT, 1, movetoworkspacesilent, 1
|
|
bind = $mainMod ALT, 2, movetoworkspacesilent, 2
|
|
bind = $mainMod ALT, 3, movetoworkspacesilent, 3
|
|
bind = $mainMod ALT, 4, movetoworkspacesilent, 4
|
|
bind = $mainMod ALT, 5, movetoworkspacesilent, 5
|
|
bind = $mainMod ALT, 6, movetoworkspacesilent, 6
|
|
bind = $mainMod ALT, 7, movetoworkspacesilent, 7
|
|
bind = $mainMod ALT, 8, movetoworkspacesilent, 8
|
|
bind = $mainMod ALT, 9, movetoworkspacesilent, 9
|
|
bind = $mainMod ALT, 0, movetoworkspacesilent, 10
|
|
|
|
# Special workspaces (scratchpad)
|
|
bind = $mainMod ALT, S, movetoworkspacesilent, special
|
|
bind = $mainMod CONTROL, S, togglespecialworkspace,
|
|
|
|
# Scroll through existing workspaces with mainMod + scroll
|
|
bind = $mainMod CTRL, right, workspace, e+1
|
|
bind = $mainMod, mouse_up, workspace, e+1
|
|
bind = $mainMod CTRL, left, workspace, e-1
|
|
bind = $mainMod, mouse_down, workspace, e-1 |