feat: add Hyprland region screenshot shortcut

This commit is contained in:
hhhh hgfh 2026-10-05 00:37:52 +03:00
parent 9e6e1bf7ac
commit a95cf01724
2 changed files with 3 additions and 1 deletions

View file

@ -272,6 +272,7 @@ end
-- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more -- Example binds, see https://wiki.hypr.land/Configuring/Basics/Binds/ for more
hl.bind(mainMod .. " + T", hl.dsp.exec_cmd(terminal)) hl.bind(mainMod .. " + T", hl.dsp.exec_cmd(terminal))
hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(appsmenu)) hl.bind(mainMod .. " + R", hl.dsp.exec_cmd(appsmenu))
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.exec_cmd("hyprshot -m region --clipboard-only"))
local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close()) local closeWindowBind = hl.bind(mainMod .. " + C", hl.dsp.window.close())
-- closeWindowBind:set_enabled(false) -- closeWindowBind:set_enabled(false)
hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'")) hl.bind(mainMod .. " + M", hl.dsp.exec_cmd("command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch 'hl.dsp.exit()'"))
@ -299,7 +300,7 @@ end
-- Example special workspace (scratchpad) -- Example special workspace (scratchpad)
hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic")) hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" })) hl.bind(mainMod .. " + SHIFT + ALT + S", hl.dsp.window.move({ workspace = "special:magic" }))
-- Scroll through existing workspaces with mainMod + scroll -- Scroll through existing workspaces with mainMod + scroll
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" })) hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))

View file

@ -14,6 +14,7 @@
firefox firefox
grim grim
hyprpaper hyprpaper
hyprshot
kitty kitty
mako mako
slurp slurp