Files
Hyprland-config/basic/keybinds.conf

270 lines
10 KiB
Plaintext

## KEYBINDINGS ###
###################
$mainMod = SUPER # Sets "Windows" key as main modifier
$ipc = qs -c noctalia-shell ipc call
# 1. Basic Binds
bind = $mainMod, Q, exec, $terminal
bind = ALT, Q, exec, $terminal --class popup-term
bind = $mainMod, W, exec, $terminal --class popup-term
bind = $mainMod, C, killactive,
bind = $mainMod SHIFT CTRL, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
# bind = $mainMod, E, exec, $fileManager
# Workspace movement and tiling rule
bind = $mainMod, P, togglefloating,
bind = $mainMod, P, pin,
bind = $mainMod SHIFT, BACKSLASH, togglefloating, # float
bind = $mainMod, BACKSLASH, layoutmsg, togglesplit # dwindle
bind = $mainMod CTRL, BACKSLASH, pseudo #
# bind = $mainMod, SEMICOLON, exec, hyprctl general:layout master
# bind = $mainMod, APOSTROPHE, exec, hyprctl general:layout dwindle
# Compiler window
bind = $mainMod SHIFT, A, tagwindow, compiler
bind = $mainMod, A, exec, $XDG_CONFIG_HOME/hypr/scripts/compile.sh
# 2. moving focus with vim
bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r
bind = $mainMod, K, movefocus, u
bind = $mainMod, J, movefocus, d
bind = $mainMod SHIFT, H, moveWindow, l
bind = $mainMod SHIFT, L, moveWindow, r
bind = $mainMod SHIFT, K, moveWindow, u
bind = $mainMod SHIFT, J, moveWindow, d
bind = $mainMod, mouse_up, workspace, m-1
bind = $mainMod, mouse_down, workspace, m-1
bind = $mainMod SHIFT , mouse_up, workspace, e-1
bind = $mainMod SHIFT , mouse_down, workspace, e-1
bind = $mainMod CTRL, right, workspace, m+1 # alt-tab switch workspace
bind = $mainMod CTRL, left, workspace, m-1 # alt-tab switch workspace
bind = CTRL, SPACE, focuscurrentorlast
# bind = $mainMod, TAB, focusmonitor, +1
# bind = $mainMod SHIFT, TAB, focusmonitor, -1
# bind = ALT, TAB, hyprexpo:expo, toggle
# bind = ALT, TAB, overview:toggle, all
# 3. resize with arrows
binde = $mainMod, right, resizeActive, 20 0
binde = $mainMod, left, resizeActive, -20 0
binde = $mainMod, up, resizeActive, 0 -20
binde = $mainMod, down, resizeActive, 0 20
# 4. 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
# 5. Move actihe 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
# 6. special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod, B, togglespecialworkspace, magic2
bind = $mainMod SHIFT, B, movetoworkspace, special:book
bind = $mainMod, D, exec, discord
bind = $mainMod, D, togglespecialworkspace, discord
bind = $mainMod, E, exec, $email
bind = $mainMod, E, togglespecialworkspace, email
bind = $mainMod, G, exec, steam -forcedesktopscaling 0.5
bind = $mainMod, G, togglespecialworkspace, gaming
bind = $mainMod, N, togglespecialworkspace, notes
bind = $mainMod, X, togglespecialworkspace, phantom
bind = $mainMod, X, togglespecialworkspace, phantom
# 7. Other Workspace tools
# 8. Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# 9. 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 -e4 -n2 set 5%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
bind = ALT, mouse:274, exec, playerctl play-pause
# 10. Applications and shortcuts
# bindr = SUPER, SUPER_L, exec, $menu
bind = $mainMod, D, exec, vesktop
bind = $mainMod, F, exec, firefox
bind = $mainMod SHIFT, F, exec, qutebrowser
bind = $mainMod SHIFT, Q, exec, qutebrowser
bind = $mainMod, SPACE, exec, playerctl play-pause
# bind = FUNCTION, L, exec, command, qs noctalia-shell ipc call lockScreen lock
bind = ALT_L, C, exec, $ipc plugin:clipper openPanel
bind = ,code:148, exec, kitty --class calc-term -o "confirm_os_window_close 0" /home/venus/.cargo/bin/mathypad
bind = SUPER, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/btop
bind = SUPER SHIFT, escape, exec, kitty --class btop -o "confirm_os_window_close 0" /usr/bin/nvtop
bind = $mainMod, I, exec, /home/venus/.config/scripts/connectPhone.sh
bind = $mainMod, I, exec, scrcpy --no-audio --no-video --keyboard=uhid --mouse=uhid
bind = $mainMod SHIFT, I, exec, /home/venus/.config/scripts/connectPhone.sh
bind = $mainMod SHIFT, I, exec, scrcpy --no-audio --keyboard=uhid --mouse=uhid
bind = CTRL,SHIFT ESCAPE, exec, btop++
bind = $mainMod, T, exec, notify-send "$(/home/venus/.config/hypr/scripts/getIp.sh)"
bind = $mainMod, T, exec, kdeconnect-app
# Change background opacity of terminal window
# bind = $mainMod ALT, k, exec,kitty +kitten @ set-background-opacity -a 1
# 11. hande lid switch
# bindl = , switch:Lid Switch, exec, s$ipc lockScreen lock
#Plugin shortcuts
# This will toggle HyprExpo when SUPER+g is pressed
### GESTURES
gesture = 3, up, dispatcher, hyprexpo:expo
# gesture = 3, pinch, special, magic
gesture = 3, down, special, magic
# gesture = 3, up, dispatcher, overview:toggle
# 12. quick access to controls submap
bind = $mainMod, comma, exec, $ipc controlCenter toggle
bind = $mainMod, period, exec, $ipc settings toggle
bind = , PRINT, exec, hyprshot -m active -m window --output-folder ~/Images/Screenshots
bind = SHIFT, PRINT, exec, hyprshot -m region --output-folder ~/Images/Screenshots
bind = ALT, PRINT, exec, hyprshot -m active -m output --output-folder ~/Images/Screenshots
bind = $mainMod, M, exec, $ipc controlCenter toggle #& hyprctl dispatch submap quick-settings
bind = $mainMod, M, submap, quick-settings
bind = $mainMod, O, submap, open-apps
# 13. Mouse binds
submap = quick-settings, reset
bind = , V, exec, protonvpn-app & hyprctl dispatch submap vpn
bind = , S, exec, $ipc settings toggle
bind = , C, exec, $ipc plugin:clipper togglePanel
bind = , P, exec, $ipc sessionMenu toggle
bind = $mainMod, L, exec, $ipc sessionMenu toggle
bind = , T, exec, $ipc systemMonitor toggle
bind = , M, exec, $ipc controlCenter toggle
bind = , D, exec, $ipc notifications toggleDND
bind = , A, exec, $ipc notifications dismissAll
bind = , N, exec, $ipc notifications toggleHistory & hyprctl dispatch submap notifications-sub
# bind = , L, exec, notify-send "layout switching" & hyprctl dispatch submap layouts
bind = , L, submap, layouts
# To Do bind clear and dnd toggles inside this shell
bind = SHIFT, B, exec, $ipc bar toggle
bind = , P, exec, $ipc wallpaper toggle
bind = , B, exec, $ipc bluetooth togglePanel & hyprctl dispatch submap bt-sub
# To Do add submenu for bt
bind = , W, exec, $ipc network togglePanel & hyprctl dispatch submap wifi-sub
bind = SHIFT, W, exec, $ipc wifi toggle # toggle wifi
bind = $mainMod, B, exec, $ipc battery togglePanel # toggle battery panel
bind = $mainMod, C, exec, $ipc calendar toggle
bind = , E, exec, nvim /home/venus/.config/hypr/basic/keybinds
submap = reset
submap = notifications-sub
bind = , D, exec, $ipc notifications toggleDND
bind = , S, exec, $ipc notifications toggleDND
bind = , Q, exec, $ipc notifications toggleDND
bind = , A, exec, $ipc notifications dismissAll
bind = CTRL, D, exec, $ipc notifications dismissAll
bind = SHIFT, D, exec, $ipc notifications dismissAll
bind = $mainMod, D, exec, $ipc notifications dismissAll
bind = , C, exec, $ipc notifications clear
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call notifications toggleHistory
submap = reset
submap = wifi-sub
$call = exec, $ipc wifi
bind = , T, $call toggle
bind = , S, $call togglePanel
bind = , D, $call disable
bind = , E, $call enable
bind = , R, exec, sudo systemctl restart iwd
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call network togglePanel
submap = reset
submap = bt-subbind = SUPER, Space, exec, rofi -- This launches the menu
$call = exec, $ipc bluetooth
bind = , T, $call toggle
bind = , S, $call togglePanel
bind = , D, $call disable
bind = , E, $call enable
bind = , H, exec, sh -c "bluetoothctl connect 88:92:CC:53:88:7E" && notify-send "connected to headphones"
bind = , J, exec, sh -c "bluetoothctl disconnect 88:92:CC:53:88:7E" && notify-send "disconnected from headphones"
bind = , P, exec, sh -c "bluetoothctl connect 64:9D:38:E0:4D:02" && notify-send "Connected to phone"
bind = , M, exec, sh -c "bluetoothctl disconnect 64:9D:38:E0:4D:02" && notify-send "Disconnected from phone"
# bind = CTRL, H, exec, bluetoothctl connect 88:92:CC:53:88:7E
# bind = , escape, submap, reset
bind = , catchall, exec, hyprctl dispatch submap reset && qs -c noctalia-shell ipc call bluetooth togglePanel
submap = reset
submap = vpn
$call = exec, protonvpn
bind = , O, $call-app
bind = , C, $call connect
bind = , D, $call disconnect
bind = , catchall, submap, reset
submap = reset
submap = open-apps, reset
bind = , S, exec, signal-desktop
bind = , D, exec, vesktop
bind = , F, exec, firefox
bind = , Q, exec, qutebrowser
bind = , M, exec, feishin
bind = , O, exec, obsidian
bind = , T, exec, thunderbird
bind = , R, exec, calibre
bind = , E, exec, darktable
bind = , catchall, submap, reset
submap = reset
submap = layouts, reset
bind = , D, exec, hyprctl general:layout dwindle
bind = , M, exec, hyprctl general:layout master
submap = reset
# 13. Misc tools.
bind = ALT, SPACE, exec, $menu
bind = $mainMod CTRL, L, exec, $ipc lockScreen lock