From 2bdae7d96a8ca956807704d7bb5bb9da347ed524 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 16 May 2025 18:23:48 +0200 Subject: [PATCH] hyprland: update keybinds --- .config/hypr/hyprland/keybinds.conf | 72 +++++++++++------------------ 1 file changed, 27 insertions(+), 45 deletions(-) diff --git a/.config/hypr/hyprland/keybinds.conf b/.config/hypr/hyprland/keybinds.conf index 4b8992b6..9208715e 100644 --- a/.config/hypr/hyprland/keybinds.conf +++ b/.config/hypr/hyprland/keybinds.conf @@ -2,26 +2,29 @@ # Lines starting with #! are section headings #! -##! Shell keybinds +##! Shell # These absolutely need to be on top, or they won't work consistently bindid = Super, Super_L, Toggle overview, global, quickshell:overviewToggleRelease # Toggle overview/launcher -binditn = Super, catchall, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:272, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:273, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:274, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:275, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:276, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse:277, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse_up, global, quickshell:overviewToggleReleaseInterrupt -bind = Super, mouse_down,global, quickshell:overviewToggleReleaseInterrupt +bind = Super, Super_L, exec, qs ipc call TEST_ALIVE || pkill fuzzel || fuzzel # [hidden] Launcher fallback +binditn = Super, catchall, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:272, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:273, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:274, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:275, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:276, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse:277, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse_up, global, quickshell:overviewToggleReleaseInterrupt # [hidden] +bind = Super, mouse_down,global, quickshell:overviewToggleReleaseInterrupt # [hidden] -bindit = ,Super_L, global, quickshell:workspaceNumber -bindd = Super, Tab, Toggle overview, global, quickshell:overviewToggle # Toggle overview/launcher +bindit = ,Super_L, global, quickshell:workspaceNumber # [hidden] +bindd = Super, Tab, Toggle overview, global, quickshell:overviewToggle # [hidden] Toggle overview/launcher (alt) bind = Super, B, global, quickshell:sidebarLeftToggle # [hidden] bindd = Super, A, Toggle left sidebar, global, quickshell:sidebarLeftToggle # Toggle left sidebar bind = Super, O, global, quickshell:sidebarLeftToggle # [hidden] bindd = Super, N, Toggle right sidebar, global, quickshell:sidebarRightToggle # Toggle right sidebar +bindd = Super, Slash, Toggle cheatsheet, global, quickshell:cheatsheetToggle # Toggle cheatsheet bindd = Ctrl+Alt, Delete, Toggle session menu, global, quickshell:sessionToggle # Toggle session menu +bind = Ctrl+Alt, Delete, exec, qs ipc call TEST_ALIVE || pkill wlogout || wlogout -p layer-shell # [hidden] bindle=, XF86MonBrightnessUp, exec, qs ipc call brightness increment || agsv1 run-js 'brightness.screen_value += 0.05; indicator.popup(1);' # [hidden] bindle=, XF86MonBrightnessDown, exec, qs ipc call brightness decrement || agsv1 run-js 'brightness.screen_value -= 0.05; indicator.popup(1);' # [hidden] @@ -32,20 +35,14 @@ bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle # [hidden] bindld = Super+Shift,M, Toggle mute, exec, wpctl set-mute @DEFAULT_SINK@ toggle # [hidden] bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden] bindld = Super+Shift+Alt,M, Toggle mic, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden] - -#! -##! Essentials for beginners - -bind = Super, T, exec, foot # Launch foot (terminal) -bindd = Super, Return, Launch foot, exec, foot # [hidden] -bind = , Super, exec, true # Open app launcher bindd = Ctrl+Super, T, Change wallpaper, exec, ~/.config/quickshell/scripts/switchwall.sh # Change wallpaper -##! Actions +bind = Ctrl+Super, R, exec, killall ags agsv1 gjs ydotool qs; qs & # Restart widgets + +##! Utilities # Screenshot, Record, OCR, Color picker, Clipboard history bindd = Super, V, Copy clipboard history entry, exec, pkill fuzzel || cliphist list | fuzzel --match-mode fzf --dmenu | cliphist decode | wl-copy # Clipboard history >> clipboard bindd = Super, Period, Copy an emoji, exec, pkill fuzzel || ~/.local/bin/fuzzel-emoji # Pick emoji >> clipboard -bindd = Ctrl+Shift+Alt, Delete, Fallback power menu, exec, pkill wlogout || wlogout -p layer-shell # [hidden] -bindd = Super+Shift, S, Screen snip, exec, grimblast --freeze copy area # Screen snip +bindd = Super+Shift, S, Screen snip, exec, grimblast --freeze copy area # Screen snip >> clipboard bindd = Super+Shift+Alt, S, Screen snip and annotate, exec, grim -g "$(slurp)" - | swappy -f - # Screen snip >> edit # OCR bindd = Super+Shift, T, Character recognition,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png" # [hidden] @@ -54,17 +51,16 @@ bindd = Super+Shift, C, Color picker, exec, hyprpicker -a # Pick color (Hex) >> # Fullscreen screenshot bindld = ,Print, Screenshot >> clipboard ,exec,grim - | wl-copy # Screenshot >> clipboard bindld = Ctrl,Print, Screenshot >> clipboard & save, exec, mkdir -p ~/Pictures/Screenshots && grimblast copysave screen ~/Pictures/Screenshots/Screenshot_"$(date '+%Y-%m-%d_%H.%M.%S')".png # Screenshot >> clipboard & file -# AI -bindd = Super+Shift+Alt, mouse:273, Generate AI summary for selected text, exec, ~/.config/ags/scripts/ai/primary-buffer-query.sh # Generate AI summary for selected text - # Recording stuff bindd = Super+Alt, R, Record region (no sound), exec, ~/.config/hypr/hyprland/record-script.sh # Record region (no sound) bindd = Ctrl+Alt, R, Record screen (no sound), exec, ~/.config/hypr/hyprland/record-script.sh --fullscreen # [hidden] Record screen (no sound) bindd = Super+Shift+Alt, R, Record screen (with sound), exec, ~/.config/hypr/hyprland/record-script.sh --fullscreen-sound # Record screen (with sound) +# AI +bindd = Super+Shift+Alt, mouse:273, Generate AI summary for selected text, exec, ~/.config/ags/scripts/ai/primary-buffer-query.sh # AI summary for selected text ##! Session bindd = Super, L, Lock, exec, loginctl lock-session # Lock bind = Super+Shift, L, exec, loginctl lock-session # [hidden] -bindld = Super+Shift, L, Suspend system, exec, sleep 0.1 && systemctl suspend || loginctl suspend # Suspend system +bindld = Super+Shift, L, Suspend system, exec, sleep 0.1 && systemctl suspend || loginctl suspend # Sleep bindd = Ctrl+Shift+Alt+Super, Delete, Shutdown, exec, systemctl poweroff || loginctl poweroff # [hidden] Power off #! @@ -100,7 +96,6 @@ bind = Super+Alt, F, fullscreenstate, 0 3 # Toggle fake fullscreen bind = Super, F, fullscreen, 0 bind = Super, D, fullscreen, 1 -#! ##! Workspace navigation # Switching #/# bind = Super, Hash,, # Focus workspace # (1, 2, 3, 4, ...) @@ -123,7 +118,7 @@ bind = Ctrl+Super, mouse_down, workspace, r-1 # [hidden] #/# bind = Ctrl+Super, ←/→,, # Workspace: focus left/right bind = Ctrl+Super, Right, workspace, r+1 # [hidden] bind = Ctrl+Super, Left, workspace, r-1 # [hidden] -#/# bind = Ctrl+Super+Alt, ←/→,, # Workspace: focus non-empty left/right +#/# bind = Ctrl+Super+Alt, ←/→,, # Workspace: focus busy left/right bind = Ctrl+Super+Alt, Right, workspace, m+1 # [hidden] bind = Ctrl+Super+Alt, Left, workspace, m-1 # [hidden] #/# bind = Super, Page_↑/↓,, # Workspace: focus left/right @@ -135,6 +130,7 @@ bind = Ctrl+Super, Page_Up, workspace, r-1 # [hidden] bind = Super, S, togglespecialworkspace, bind = Super, mouse:275, togglespecialworkspace, +#! ##! Workspace management # Move window to workspace Super + Alt + [0-9] #/# bind = Super+Alt, Hash,, # Window: move to workspace # (1, 2, 3, 4, ...) @@ -174,18 +170,6 @@ bind = Ctrl+Super, S, togglespecialworkspace, # [hidden] bind = Alt, Tab, cyclenext # [hidden] sus keybind bind = Alt, Tab, bringactivetotop, # [hidden] bring it to the top -#! -##! Widgets -bindr = Ctrl+Super, R, exec, killall ags agsv1 gjs ydotool qs; qs & # Restart widgets -bind = Ctrl+Alt, Slash, exec, agsv1 run-js 'cycleMode();' # Cycle bar mode (normal, focus) -bind = Super, Slash, exec, for ((i=0; i<$(hyprctl monitors -j | jq length); i++)); do agsv1 -t "cheatsheet""$i"; done # Show cheatsheet -bind = Super, M, exec, agsv1 run-js 'openMusicControls.value = (!mpris.getPlayer() ? false : !openMusicControls.value);' # Toggle music controls -bind = Super, Comma, exec, agsv1 run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);' # View color scheme and options -bind = Super, K, exec, for ((i=0; i<$(hyprctl monitors -j | jq length); i++)); do agsv1 -t "osk""$i"; done # Toggle on-screen keyboard -# bind = Ctrl+Alt, Delete, exec, qs ipc call session toggle || for ((i=0; i<$(hyprctl monitors -j | jq length); i++)); do agsv1 -t "session""$i"; done # Toggle power menu -bind = Ctrl+Super, G, exec, for ((i=0; i<$(hyprctl monitors -j | jq length); i++)); do agsv1 -t "crosshair""$i"; done # Toggle crosshair - - # Testing bind = Super+Alt, f11, exec, bash -c 'RANDOM_IMAGE=$(find ~/Pictures -type f | grep -v -i "nipple" | grep -v -i "pussy" | shuf -n 1); ACTION=$(notify-send "Test notification with body image" "This notification should contain your user account image and Discord icon. Oh and here is a random image in your Pictures folder: \"Testing" -p -h "string:image-path:/var/lib/AccountsService/icons/$USER" -t 6000 -i "discord" -A "openImage=Open profile image" -A "action2=Open the random image" -A "action3=Useless button"); [[ $ACTION == *openImage ]] && xdg-open "/var/lib/AccountsService/icons/$USER"; [[ $ACTION == *action2 ]] && xdg-open \"$RANDOM_IMAGE\"' # [hidden] bind = Super+Alt, f12, exec, bash -c 'ACTION=$(notify-send "Test notification" "This notification should contain your user account image and Discord icon.\nFlick right to dismiss!" -p -h "string:image-path:/var/lib/AccountsService/icons/$USER" -t 6000 -i "discord" -A "openImage=Open profile image" -A "action2=Useless button" -A "action3=Cry more"); [[ $ACTION == *openImage ]] && xdg-open "/var/lib/AccountsService/icons/$USER"; [[ $ACTION == *action2 ]] && xdg-open \"$RANDOM_IMAGE\"' # [hidden] @@ -202,9 +186,10 @@ bindl= Super+Shift, P, exec, playerctl play-pause # Play/pause media bindl= ,XF86AudioPlay, exec, playerctl play-pause # [hidden] bindl= ,XF86AudioPause, exec, playerctl play-pause # [hidden] -#! ##! Apps -bind = Super, T, exec, # Launch foot (terminal) +bind = Super, T, exec, # [hidden] +bindd = Super, Return, Launch foot, exec, foot # Launch foot (terminal) +bindd = Super, T, Launch foot, exec, foot # [hidden] Launch foot (terminal) (alt) bind = Super, E, exec, nautilus --new-window # Launch file manager (Nautilus) bind = Super, Z, exec, Zed # Launch Zed (editor) bind = Super, C, exec, code # Launch VSCode (editor) @@ -215,10 +200,7 @@ bind = Super, X, exec, gnome-text-editor --new-window # Launch GNOME Text Editor bind = Super+Shift, W, exec, wps # Launch WPS Office bind = Super, I, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center # Launch GNOME Settings bind = Ctrl+Super, V, exec, pavucontrol # Launch pavucontrol (volume mixer) -bind = Ctrl+Super+Shift, V, exec, easyeffects # Launch EasyEffects (equalizer & other audio effects) bind = Ctrl+Shift, Escape, exec, gnome-system-monitor # Launch GNOME System monitor -bind = Ctrl+Super, Slash, exec, pkill anyrun || anyrun # Toggle fallback launcher: anyrun -bind = Super+Alt, Slash, exec, pkill fuzzel || fuzzel # Toggle fallback launcher: fuzzel # Cursed stuff ## Make window not amogus large