screenshots: clipboard-only, camera glyph instead of thumbnail

This commit is contained in:
rope 2026-08-21 17:13:12 +01:00
parent c3e8691c2c
commit 6bf3c3909e
3 changed files with 43 additions and 17 deletions

View file

@ -263,8 +263,6 @@ in
hl.env("QT_QPA_PLATFORM", "wayland;xcb")
hl.env("SDL_VIDEODRIVER", "wayland")
hl.env("_JAVA_AWT_WM_NONREPARENTING", "1")
-- hyprshot save dir; it mkdir -p's this itself. `update` wipes it.
hl.env("HYPRSHOT_DIR", "/home/fred/Pictures/Screenshots")
${lib.optionalString isGaming ''
-- GPU pinning Navi 22 is card1 on the dual-GPU gaming box.
hl.env("AQ_DRM_DEVICES", "/dev/dri/card1")
@ -524,8 +522,11 @@ in
-- Screenshots Shift+Super+S matches GNOME binding
-- Pin/unpin quickshell's focus grab around the region select so an
-- open menu survives slurp's input grab (no-ops if qs isn't up).
hl.bind(mod .. " + SHIFT + S", hl.dsp.exec_cmd("sh -c 'qs ipc call screenshot pin; hyprshot -m region; qs ipc call screenshot unpin'"))
hl.bind("Print", hl.dsp.exec_cmd("hyprshot -m output"))
-- --clipboard-only: nothing hits the disk, so there is no folder to
-- fill and no file for the notification to thumbnail. The bar draws
-- a camera glyph instead of holding a decoded screen-sized texture.
hl.bind(mod .. " + SHIFT + S", hl.dsp.exec_cmd("sh -c 'qs ipc call screenshot pin; hyprshot -m region --clipboard-only; qs ipc call screenshot unpin'"))
hl.bind("Print", hl.dsp.exec_cmd("hyprshot -m output --clipboard-only"))
-- Settings shortcut Super+I matches GNOME binding
hl.bind(mod .. " + I", hl.dsp.exec_cmd("pavucontrol"))