Files
hyprland/config/hypr/UserConfigs/UserKeybinds.conf
T
sankalp 6e042ab814 feat(config/hypr/UserConfigs): add special workspace handling and streamline keybindings
New Features:
- Introduced ALT + Q and SHIFT + ALT + Q bindings to toggle and control a `special` workspace submap.
- Merged ESC and ENTER actions into single `hyprctl dispatch` commands that also reset the submap, ensuring atomic behavior.

Enhancements:
- Removed the obsolete `bindd` entry and cleaned up dead layoutmsg directives.
- Simplified submap reset logic to avoid stale states and reduce keybinding clutter.

Bug Fixes: —  (no bug fixes in this change)
2026-04-02 21:48:50 +05:45

58 lines
2.3 KiB
Plaintext

# See https://wiki.hyprland.org/Configuring/Keywords/ for more settings and variables
# See also Laptops.conf for laptops keybinds
# SUPER KEY
$mainMod = SUPER
$terminal = kitty
$filemanager = thunar
$telegram = materialgram
$browser = zen-browser
# Testing
bind = Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'terminal' -A "Test1=I got it!" -A "Test2=Another action"
bind = Alt, Equal, exec, notify-send 'hmm' ${SLURP_ARGS}
$Message = notify-send "Hello" "FIRE IN THE HOLE‼️🗣️🔥🕳️" -i "/home/sankalp/.face.icon" -A "🗣️" -A "🔥" -A "🕳️" -a "Source Code"
bind = SUPER ALT, N, exec, $Message # Message
# Applications
bind = ALT SHIFT,Return, exec, $terminal --title float_kitty --single-instance
bind = $mainMod, Return, exec,$terminal
# bind = ALT SHIFT,Return, exec, [float] uwsm app -- $terminal -1
bind = ALT, E, exec, uwsm app -- $filemanager
bind = $mainMod, B, exec, uwsm app -- $browser
bind = ALT, T, exec, uwsm app -- $telegram
bind = $mainMod SHIFT, y, exec, grimblast save active ~/Pictures/Screenshots/
# Actions
bind = $mainMod CTRL, L, exec, pidof hyprlock || hyprlock -q
bind = $mainMod CTRL, P, exec, systemctl poweroff
bind = $mainMod CTRL, R, exec, systemctl reboot
# special workspace
# Send window to special workspace
bind = ALT, Q, movetoworkspacesilent, special
# Show special workspace + enter control mode
bind = SHIFT ALT, Q, exec, hyprctl dispatch togglespecialworkspace
bind = SHIFT ALT, Q, submap, special
submap = special
bind = , ESCAPE, exec, hyprctl dispatch togglespecialworkspace && hyprctl dispatch submap reset
bind = , RETURN, exec, hyprctl dispatch movetoworkspacesilent e+0 && hyprctl dispatch togglespecialworkspace && hyprctl dispatch submap reset
submap = reset
# scrolling
bind = ALT, D, layoutmsg, move +col
bind = ALT, A, layoutmsg, move -col
bind = $mainMod SHIFT, period, layoutmsg, movewindowto r
bind = $mainMod SHIFT, comma, layoutmsg, movewindowto l
bind = $mainMod SHIFT, up, layoutmsg, movewindowto u
bind = $mainMod SHIFT, down, layoutmsg, movewindowto d
bindd = $mainMod SHIFT, comma, swap columns, layoutmsg, swapcol l