From 3cc45e37fc9c3d43fa077f37fe9d956ffa528df0 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 16 May 2025 19:09:32 +0200 Subject: [PATCH] hyprland: make keybinds descriptions shorter, remove unnecessary stuff --- .config/hypr/hyprland/keybinds.conf | 161 ++++++++++++++-------------- 1 file changed, 80 insertions(+), 81 deletions(-) diff --git a/.config/hypr/hyprland/keybinds.conf b/.config/hypr/hyprland/keybinds.conf index 9208715e..5de446ed 100644 --- a/.config/hypr/hyprland/keybinds.conf +++ b/.config/hypr/hyprland/keybinds.conf @@ -38,12 +38,18 @@ bindld = Super+Shift+Alt,M, Toggle mic, exec, wpctl set-mute @DEFAULT_SOURCE@ to bindd = Ctrl+Super, T, Change wallpaper, exec, ~/.config/quickshell/scripts/switchwall.sh # Change wallpaper bind = Ctrl+Super, R, exec, killall ags agsv1 gjs ydotool qs; qs & # Restart widgets +##! 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 # Sleep +bindd = Ctrl+Shift+Alt+Super, Delete, Shutdown, exec, systemctl poweroff || loginctl poweroff # [hidden] Power off + ##! 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 = 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 +bindd = Super+Shift+Alt, S, Screen snip and annotate, exec, grim -g "$(slurp)" - | swappy -f - # Screen snip and annotate # OCR bindd = Super+Shift, T, Character recognition,exec,grim -g "$(slurp $SLURP_ARGS)" "tmp.png" && tesseract "tmp.png" - | wl-copy && rm "tmp.png" # [hidden] # Color picker @@ -57,83 +63,43 @@ bindd = Ctrl+Alt, R, Record screen (no sound), exec, ~/.config/hypr/hyprland/rec 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 # Sleep -bindd = Ctrl+Shift+Alt+Super, Delete, Shutdown, exec, systemctl poweroff || loginctl poweroff # [hidden] Power off #! -##! Window management +##! Window # Focusing -#/# bind = Super, ←/↑/→/↓,, # Move focus in direction +bindm = Super, mouse:272, movewindow # Move +bindm = Super, mouse:274, movewindow # [hidden] +bindm = Super, mouse:273, resizewindow # Resize +#/# bind = Super, ←/↑/→/↓,, # Focus in direction bind = Super, Left, movefocus, l # [hidden] bind = Super, Right, movefocus, r # [hidden] bind = Super, Up, movefocus, u # [hidden] bind = Super, Down, movefocus, d # [hidden] bind = Super, BracketLeft, movefocus, l # [hidden] bind = Super, BracketRight, movefocus, r # [hidden] -bindm = Super, mouse:272, movewindow -bindm = Super, mouse:274, movewindow -bindm = Super, mouse:273, resizewindow -bind = Super, Q, killactive, -bind = Super+Shift+Alt, Q, exec, hyprctl kill # Pick and kill a window -##! Window arrangement -#/# bind = Super+Shift, ←/↑/→/↓,, # Window: move in direction +#/# bind = Super+Shift, ←/↑/→/↓,, # Move in direction bind = Super+Shift, Left, movewindow, l # [hidden] bind = Super+Shift, Right, movewindow, r # [hidden] bind = Super+Shift, Up, movewindow, u # [hidden] bind = Super+Shift, Down, movewindow, d # [hidden] +bind = Super, Q, killactive, # Close +bind = Super+Shift+Alt, Q, exec, hyprctl kill # Forcefully zap a window + + # Window split ratio -#/# binde = Super, +/-,, # Window: split ratio +/- 0.1 +#/# binde = Super, +/-,, # Adjust split ratio binde = Super, Minus, splitratio, -0.1 # [hidden] binde = Super, Equal, splitratio, +0.1 # [hidden] binde = Super, Semicolon, splitratio, -0.1 # [hidden] binde = Super, Apostrophe, splitratio, +0.1 # [hidden] # Positioning mode -bind = Super+Alt, Space, togglefloating, -bind = Super+Alt, F, fullscreenstate, 0 3 # Toggle fake fullscreen -bind = Super, F, fullscreen, 0 -bind = Super, D, fullscreen, 1 +bind = Super+Alt, Space, togglefloating, # Float/Tile +bind = Super, D, fullscreen, 1 # Maximize +bind = Super, F, fullscreen, 0 # Fullscreen +bind = Super+Alt, F, fullscreenstate, 0 3 # Fullscreen spoof +bind = Super, P, pin # Pin -##! Workspace navigation -# Switching -#/# bind = Super, Hash,, # Focus workspace # (1, 2, 3, 4, ...) -bind = Super, 1, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 1 # [hidden] -bind = Super, 2, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 2 # [hidden] -bind = Super, 3, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 3 # [hidden] -bind = Super, 4, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 4 # [hidden] -bind = Super, 5, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 5 # [hidden] -bind = Super, 6, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 6 # [hidden] -bind = Super, 7, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 7 # [hidden] -bind = Super, 8, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 8 # [hidden] -bind = Super, 9, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 9 # [hidden] -bind = Super, 0, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 10 # [hidden] - -#/# bind = Super, Scroll ↑/↓,, # Workspace: focus left/right -bind = Super, mouse_up, workspace, +1 # [hidden] -bind = Super, mouse_down, workspace, -1 # [hidden] -bind = Ctrl+Super, mouse_up, workspace, r+1 # [hidden] -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 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 -bind = Super, Page_Down, workspace, +1 # [hidden] -bind = Super, Page_Up, workspace, -1 # [hidden] -bind = Ctrl+Super, Page_Down, workspace, r+1 # [hidden] -bind = Ctrl+Super, Page_Up, workspace, r-1 # [hidden] -## Special -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, ...) +#/# bind = Super+Alt, Hash,, # Send to workspace # (1, 2, 3,...) bind = Super+Alt, 1, exec, ~/.config/hypr/hyprland/workspace_action.sh movetoworkspacesilent 1 # [hidden] bind = Super+Alt, 2, exec, ~/.config/hypr/hyprland/workspace_action.sh movetoworkspacesilent 2 # [hidden] bind = Super+Alt, 3, exec, ~/.config/hypr/hyprland/workspace_action.sh movetoworkspacesilent 3 # [hidden] @@ -145,31 +111,65 @@ bind = Super+Alt, 8, exec, ~/.config/hypr/hyprland/workspace_action.sh movetowor bind = Super+Alt, 9, exec, ~/.config/hypr/hyprland/workspace_action.sh movetoworkspacesilent 9 # [hidden] bind = Super+Alt, 0, exec, ~/.config/hypr/hyprland/workspace_action.sh movetoworkspacesilent 10 # [hidden] -bind = Ctrl+Super+Shift, Up, movetoworkspacesilent, special # [hidden] - -bind = Ctrl+Super+Shift, Right, movetoworkspace, r+1 # [hidden] -bind = Ctrl+Super+Shift, Left, movetoworkspace, r-1 # [hidden] -bind = Ctrl+Super, BracketLeft, workspace, -1 # [hidden] -bind = Ctrl+Super, BracketRight, workspace, +1 # [hidden] -bind = Ctrl+Super, Up, workspace, r-5 # [hidden] -bind = Ctrl+Super, Down, workspace, r+5 # [hidden] -#/# bind = Super+Shift, Scroll ↑/↓,, # Window: move to workspace left/right +# #/# bind = Super+Shift, Scroll ↑/↓,, # Send to workspace left/right bind = Super+Shift, mouse_down, movetoworkspace, r-1 # [hidden] bind = Super+Shift, mouse_up, movetoworkspace, r+1 # [hidden] bind = Super+Alt, mouse_down, movetoworkspace, -1 # [hidden] bind = Super+Alt, mouse_up, movetoworkspace, +1 # [hidden] -#/# bind = Super+Shift, Page_↑/↓,, # Window: move to workspace left/right + +#/# bind = Super+Shift, Page_↑/↓,, # Send to workspace left/right bind = Super+Alt, Page_Down, movetoworkspace, +1 # [hidden] bind = Super+Alt, Page_Up, movetoworkspace, -1 # [hidden] bind = Super+Shift, Page_Down, movetoworkspace, r+1 # [hidden] bind = Super+Shift, Page_Up, movetoworkspace, r-1 # [hidden] -bind = Super+Alt, S, movetoworkspacesilent, special -bind = Super, P, pin +bind = Ctrl+Super+Shift, Right, movetoworkspace, r+1 # [hidden] +bind = Ctrl+Super+Shift, Left, movetoworkspace, r-1 # [hidden] + +bind = Super+Alt, S, movetoworkspacesilent, special # Send to scratchpad bind = Ctrl+Super, S, togglespecialworkspace, # [hidden] bind = Alt, Tab, cyclenext # [hidden] sus keybind bind = Alt, Tab, bringactivetotop, # [hidden] bring it to the top +##! Workspace +# Switching +#/# bind = Super, Hash,, # Focus workspace # (1, 2, 3,...) +bind = Super, 1, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 1 # [hidden] +bind = Super, 2, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 2 # [hidden] +bind = Super, 3, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 3 # [hidden] +bind = Super, 4, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 4 # [hidden] +bind = Super, 5, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 5 # [hidden] +bind = Super, 6, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 6 # [hidden] +bind = Super, 7, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 7 # [hidden] +bind = Super, 8, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 8 # [hidden] +bind = Super, 9, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 9 # [hidden] +bind = Super, 0, exec, ~/.config/hypr/hyprland/workspace_action.sh workspace 10 # [hidden] + +#/# bind = Ctrl+Super, ←/→,, # Focus left/right +bind = Ctrl+Super, Right, workspace, r+1 # [hidden] +bind = Ctrl+Super, Left, workspace, r-1 # [hidden] +#/# bind = Ctrl+Super+Alt, ←/→,, # [hidden] 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_↑/↓,, # Focus left/right +bind = Super, Page_Down, workspace, +1 # [hidden] +bind = Super, Page_Up, workspace, -1 # [hidden] +bind = Ctrl+Super, Page_Down, workspace, r+1 # [hidden] +bind = Ctrl+Super, Page_Up, workspace, r-1 # [hidden] +#/# bind = Super, Scroll ↑/↓,, # Focus left/right +bind = Super, mouse_up, workspace, +1 # [hidden] +bind = Super, mouse_down, workspace, -1 # [hidden] +bind = Ctrl+Super, mouse_up, workspace, r+1 # [hidden] +bind = Ctrl+Super, mouse_down, workspace, r-1 # [hidden] +## Special +bind = Super, S, togglespecialworkspace, # Toggle scratchpad +bind = Super, mouse:275, togglespecialworkspace, # [hidden] +bind = Ctrl+Super, BracketLeft, workspace, -1 # [hidden] +bind = Ctrl+Super, BracketRight, workspace, +1 # [hidden] +bind = Ctrl+Super, Up, workspace, r-5 # [hidden] +bind = Ctrl+Super, Down, workspace, r+5 # [hidden] + +#! # 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] @@ -188,19 +188,18 @@ bindl= ,XF86AudioPause, exec, playerctl play-pause # [hidden] ##! Apps 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) +bind = Super, Return, exec, foot # Foot (terminal) +bind = Super, T, exec, foot # [hidden] foot (terminal) (alt) +bind = Super, E, exec, nautilus --new-window # Nautilus (file manager) +bind = Ctrl+Super, W, exec, firefox # Firefox (browser) +bind = Super, C, exec, code # VSCode (editor) bind = Super+Alt, E, exec, thunar # [hidden] bind = Super, W, exec, zen-browser # [hidden] -bind = Ctrl+Super, W, exec, firefox # Launch Firefox (browser) -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+Shift, Escape, exec, gnome-system-monitor # Launch GNOME System monitor +bind = Super+Shift, W, exec, wps # WPS Office +bind = Ctrl+Super, V, exec, pavucontrol # Pavucontrol (volume mixer) +bind = Super, X, exec, gnome-text-editor --new-window # GNOME Text Editor +bind = Super, I, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center # GNOME Settings +bind = Ctrl+Shift, Escape, exec, gnome-system-monitor # GNOME System monitor # Cursed stuff ## Make window not amogus large