154 lines
5.7 KiB
Plaintext
154 lines
5.7 KiB
Plaintext
# █▄▀ █▀▀ █▄█ █▄▄ █ █▄░█ █▀▄ █ █▄░█ █▀▀ █▀
|
|
# █░█ ██▄ ░█░ █▄█ █ █░▀█ █▄▀ █ █░▀█ █▄█ ▄█
|
|
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
|
|
################################################
|
|
# Main modifier
|
|
################################################
|
|
$mod = SUPER # windows key
|
|
$terminal = kitty
|
|
$filemanager = dolphin
|
|
|
|
|
|
|
|
################################################
|
|
# Main actions
|
|
################################################
|
|
bind = $mod, C, killactive # killactive, kill the window on focus
|
|
bind = $mod CTRL, delete, exit, # kill hyperland session
|
|
bind = $mod, F, togglefloating, # toggle the window on focus to float
|
|
bind = $mod CTRL, L, exec, swaylock # lock screen
|
|
bind = $mod, P, pseudo, # dwindle
|
|
bind = $mod, S, togglesplit, # split screen
|
|
bind = $mod, return, fullscreen, # toggle the window on focus to fullscreen
|
|
bind = $mod, F1, exec, ~/.config/hypr/scripts/keybinds.sh
|
|
|
|
# Application shortcuts
|
|
bind = $mod, grave, exec, $terminal # ~ open terminal
|
|
bind = $mod, E, exec, $filemanager # open file manager
|
|
bind = $mod, V, exec, code # open vscode
|
|
|
|
################################################
|
|
# Control actions
|
|
################################################
|
|
# Rofi is toggled on/off if you repeat the key presses
|
|
bind = $mod, SPACE, exec, pkill rofi || rofi -show drun # launch desktop applications
|
|
bind = $mod, E, exec, pkill rofi || rofi -show filebrowser # browse system files
|
|
bind = $mod, 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, pamixer -t # toggle audio mute
|
|
bind = , XF86AudioMicMute, exec, pamixer --default-source -t # toggle microphone mute
|
|
binde = , XF86AudioLowerVolume, exec, pamixer -d 2# decrease volume
|
|
binde = , XF86AudioRaiseVolume, exec, pamixer -i 2# increase volume
|
|
bind = , XF86AudioPlay, exec, playerctl play-pause
|
|
bind = , XF86AudioPause, exec, playerctl play-pause
|
|
bind = , XF86AudioNext, exec, playerctl next
|
|
bind = , XF86AudioPrev, exec, playerctl previous
|
|
|
|
# Screenshot/screencapture
|
|
bind = , PRINT, exec, hyprshot -z -m window
|
|
bind = ALT, PRINT, exec, hyprshot -z -m region
|
|
|
|
|
|
################################################
|
|
# Exec custom scripts
|
|
################################################
|
|
bind = $mod, G, exec, ~/.config/hypr/scripts/gamemode.sh # disable hypr effects for gamemode
|
|
|
|
|
|
|
|
################################################
|
|
# Window actions
|
|
################################################
|
|
# Move focus with mod + arrow keys
|
|
bind = $mod, left, movefocus, l
|
|
bind = $mod, H, movefocus, l
|
|
bind = $mod, right, movefocus, r
|
|
bind = $mod, L, movefocus, r
|
|
bind = $mod, up, movefocus, u
|
|
bind = $mod, K, movefocus, u
|
|
bind = $mod, down, movefocus, d
|
|
bind = $mod, J, movefocus, d
|
|
|
|
# Resize windows
|
|
binde = $mod CONTROL, right, resizeactive, 10 0
|
|
binde = $mod CONTROL, H, resizeactive, 10 0
|
|
binde = $mod CONTROL, left, resizeactive, -10 0
|
|
binde = $mod CONTROL, L, resizeactive, -10 0
|
|
binde = $mod CONTROL, up, resizeactive, 0 -10
|
|
binde = $mod CONTROL, K, resizeactive, 0 -10
|
|
binde = $mod CONTROL, down, resizeactive, 0 10
|
|
binde = $mod CONTROL, J, resizeactive, 0 10
|
|
|
|
# Move Window with mod + SHIFT + arrow keys
|
|
bind = $mod SHIFT, left, movewindow, l
|
|
bind = $mod SHIFT, H, movewindow, l
|
|
bind = $mod SHIFT, right, movewindow, r
|
|
bind = $mod SHIFT, L, movewindow, r
|
|
bind = $mod SHIFT, up, movewindow, u
|
|
bind = $mod SHIFT, K, movewindow, u
|
|
bind = $mod SHIFT, down, movewindow, d
|
|
bind = $mod SHIFT, J, movewindow, d
|
|
|
|
# Move/resize windows with mod + LMB/RMB and dragging
|
|
bindm = $mod, mouse:272, movewindow
|
|
bindm = $mod, mouse:273, resizewindow
|
|
|
|
|
|
################################################
|
|
# Workspace actions
|
|
################################################
|
|
# Switch workspaces with mod + [0-9]
|
|
bind = $mod, 1, workspace, 1
|
|
bind = $mod, 2, workspace, 2
|
|
bind = $mod, 3, workspace, 3
|
|
bind = $mod, 4, workspace, 4
|
|
bind = $mod, 5, workspace, 5
|
|
bind = $mod, 6, workspace, 6
|
|
bind = $mod, 7, workspace, 7
|
|
bind = $mod, 8, workspace, 8
|
|
bind = $mod, 9, workspace, 9
|
|
bind = $mod, 0, workspace, 10
|
|
|
|
# Move active window to a workspace with mod + SHIFT + [0-9]
|
|
bind = $mod SHIFT, 1, movetoworkspace, 1
|
|
bind = $mod SHIFT, 2, movetoworkspace, 2
|
|
bind = $mod SHIFT, 3, movetoworkspace, 3
|
|
bind = $mod SHIFT, 4, movetoworkspace, 4
|
|
bind = $mod SHIFT, 5, movetoworkspace, 5
|
|
bind = $mod SHIFT, 6, movetoworkspace, 6
|
|
bind = $mod SHIFT, 7, movetoworkspace, 7
|
|
bind = $mod SHIFT, 8, movetoworkspace, 8
|
|
bind = $mod SHIFT, 9, movetoworkspace, 9
|
|
bind = $mod SHIFT, 0, movetoworkspace, 10
|
|
|
|
# Move window to workspace Super + Alt + [0-9]
|
|
bind = $mod ALT, 1, movetoworkspacesilent, 1
|
|
bind = $mod ALT, 2, movetoworkspacesilent, 2
|
|
bind = $mod ALT, 3, movetoworkspacesilent, 3
|
|
bind = $mod ALT, 4, movetoworkspacesilent, 4
|
|
bind = $mod ALT, 5, movetoworkspacesilent, 5
|
|
bind = $mod ALT, 6, movetoworkspacesilent, 6
|
|
bind = $mod ALT, 7, movetoworkspacesilent, 7
|
|
bind = $mod ALT, 8, movetoworkspacesilent, 8
|
|
bind = $mod ALT, 9, movetoworkspacesilent, 9
|
|
bind = $mod ALT, 0, movetoworkspacesilent, 10
|
|
|
|
# Special workspaces (scratchpad)
|
|
bind = $mod ALT, S, movetoworkspacesilent, special
|
|
bind = $mod CONTROL, S, togglespecialworkspace,
|
|
|
|
# Scroll through existing workspaces with mod + scroll
|
|
bind = $mod CTRL, right, workspace, e+1
|
|
|
|
bind = $mod CTRL, left, workspace, e-1
|
|
|
|
bind = $mod, TAB, exec, ~/.config/hypr/scripts/switch.sh
|