From af3b12a13184538cdaa7dea8a22ace68ad31cff7 Mon Sep 17 00:00:00 2001 From: aibrash Date: Fri, 30 Oct 2026 14:13:41 +0500 Subject: [PATCH] Restore the binds that the resize change removed by mistake d6d8aa0 cut the whole range between the resize submap and the screenshots section, which also deleted the "sysadmin toolbox" binds: Mod+S (SSH menu), Mod+T/B/K, Mod+Shift+B/T, Mod+F1 (cheatsheet), Mod+[ ], Mod+, and Mod+. Put them back; the resize change itself is unchanged. Co-Authored-By: Claude Sonnet 5.5 --- hypr/hyprland.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index 98064c1..c449d08 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -205,6 +205,22 @@ for key, d in pairs(rs) do b(mod .. " + CTRL + " .. key, hl.dsp.window.resize({ x = d[1], y = d[2], relative = true }), { repeating = true }) end +-- sysadmin toolbox +b(mod .. " + S", hl.dsp.exec_cmd("kitty --class ssh-menu -o font_size=12 -o env=SSH_MENU=1 --title 'ssh menu' ~/.config/hypr/scripts/ssh-menu.sh")) -- SSH hub (fzf) +local raise = "~/.config/hypr/scripts/raise.sh " +b(mod .. " + T", hl.dsp.exec_cmd(raise .. "'^org.telegram.desktop$' flatpak run org.telegram.desktop")) -- focus if open, else launch +b(mod .. " + B", hl.dsp.exec_cmd(raise .. "'^google-chrome$' flatpak run com.google.Chrome")) -- again = next Chrome window +b(mod .. " + SHIFT + B", hl.dsp.exec_cmd("flatpak run com.google.Chrome --new-window")) -- always a new window +b(mod .. " + F1", hl.dsp.exec_cmd("~/.config/hypr/scripts/cheatsheet.sh")) -- hotkey reference +b(mod .. " + K", hl.dsp.exec_cmd(raise .. "'^org.keepassxc.KeePassXC$' keepassxc")) +b(mod .. " + SHIFT + T", hl.dsp.window.pin()) -- keep a floating window on top +b(mod .. " + bracketright", hl.dsp.group.next()) +b(mod .. " + bracketleft", hl.dsp.group.prev()) + +-- two monitors: laptop <-> external (focus only) +b(mod .. " + comma", hl.dsp.focus({ monitor = "-1" })) +b(mod .. " + period", hl.dsp.focus({ monitor = "+1" })) + -- screenshots (grim + slurp; saved to ~/Pictures/Screenshots and copied) local shot = "mkdir -p ~/Pictures/Screenshots; f=~/Pictures/Screenshots/$(date +%F_%H-%M-%S).png; " b("Print", hl.dsp.exec_cmd(shot .. "grim -g \"$(slurp)\" - | tee $f | wl-copy"))