niri: retire flameshot binds, absolute script paths in spawn-sh
Live census 2026-10-14: every flameshot mode on this box captures via xdg-desktop-portal-gnome → niri's single-output API (niri#4313) — full AND screen hang ~15 s and error docked (verified: exit 124, no file). Replace all six flameshot binds with niri-native equivalents: all-monitors script (Print/Ctrl+Shift+1/Mod+Shift+S), screenshot-screen (Alt+Print/Ctrl+Shift+2), interactive screenshot UI (Ctrl+Print/ Ctrl+Shift+3). Absolute script paths everywhere: niri's spawn-sh PATH is system-only, ~/.local/bin absent — the bare screenshot-desk.sh and desk.sh binds were silently dead. bats 27/27.
This commit is contained in:
@@ -22,7 +22,7 @@ binds {
|
||||
Mod+V hotkey-overlay-title="Clipboard History: noctalia panel" { spawn-sh "noctalia msg panel-toggle clipboard"; }
|
||||
Alt+TAB hotkey-overlay-title="Window Switcher: noctalia" { spawn-sh "noctalia msg window-switcher"; }
|
||||
Mod+Shift+Space hotkey-overlay-title="Handy: toggle post-process recording" allow-when-locked=true { spawn-sh "handy --toggle-post-process"; }
|
||||
Mod+Shift+D hotkey-overlay-title="Cycle Desk Profile" { spawn-sh "desk.sh cycle"; }
|
||||
Mod+Shift+D hotkey-overlay-title="Cycle Desk Profile" { spawn-sh "/home/blank/.omp/scripts/desk.sh cycle"; }
|
||||
|
||||
// Please set the text editor of your choice.
|
||||
// Mod+Shift+E hotkey-overlay-title="Open Text Editor: Zed" { spawn "zed"; }
|
||||
@@ -155,17 +155,19 @@ binds {
|
||||
Mod+M { maximize-window-to-edges; }
|
||||
|
||||
// ─── Screenshots ───
|
||||
CTRL+Shift+1 hotkey-overlay-title="Screenshot: flameshot full" { spawn-sh "flameshot full"; }
|
||||
CTRL+Shift+2 hotkey-overlay-title="Screenshot: flameshot screen" { spawn-sh "flameshot screen"; }
|
||||
CTRL+Shift+3 hotkey-overlay-title="Screenshot: flameshot region" { spawn-sh "flameshot gui"; }
|
||||
Print hotkey-overlay-title="Screenshot: flameshot full" { spawn-sh "flameshot full"; }
|
||||
Ctrl+Print hotkey-overlay-title="Screenshot: flameshot region" { spawn-sh "flameshot gui"; }
|
||||
Alt+Print hotkey-overlay-title="Screenshot: flameshot screen" { spawn-sh "flameshot screen"; }
|
||||
// Full-desk capture: one PNG per connected monitor via
|
||||
// scripts/screenshot-desk.sh (symlinked into ~/.local/bin). Works docked
|
||||
// (2+ outputs), where flameshot full is dead and niri's built-in
|
||||
// screenshot UI selects only one output.
|
||||
Mod+Shift+S hotkey-overlay-title="Screenshot: all monitors (per-monitor files)" { spawn-sh "screenshot-desk.sh"; }
|
||||
// flameshot retired 2026-10-14: its Wayland capture goes through
|
||||
// xdg-desktop-portal-gnome → niri's GNOME-screenshot API, which is
|
||||
// single-output only (niri#4313). Verified docked: full AND screen hang
|
||||
// ~15 s, then error bubbles; no file. Niri-native equivalents below;
|
||||
// details in omp-docs/tools/niri/screenshots.md.
|
||||
// Absolute paths: niri's spawn-sh PATH lacks ~/.local/bin.
|
||||
Print hotkey-overlay-title="Screenshot: all monitors (per-monitor files)" { spawn-sh "/home/blank/.omp/scripts/screenshot-desk.sh"; }
|
||||
CTRL+Shift+1 hotkey-overlay-title="Screenshot: all monitors (per-monitor files)" { spawn-sh "/home/blank/.omp/scripts/screenshot-desk.sh"; }
|
||||
Mod+Shift+S hotkey-overlay-title="Screenshot: all monitors (per-monitor files)" { spawn-sh "/home/blank/.omp/scripts/screenshot-desk.sh"; }
|
||||
Alt+Print hotkey-overlay-title="Screenshot: focused monitor to disk" { screenshot-screen; }
|
||||
CTRL+Shift+2 hotkey-overlay-title="Screenshot: focused monitor to disk" { screenshot-screen; }
|
||||
Ctrl+Print hotkey-overlay-title="Screenshot: interactive (region/window/screen)" { screenshot; }
|
||||
CTRL+Shift+3 hotkey-overlay-title="Screenshot: interactive (region/window/screen)" { screenshot; }
|
||||
|
||||
// ─── Emergency Escape Key ───
|
||||
// Use this when a fullscreen app blocks your keybinds.
|
||||
|
||||
Reference in New Issue
Block a user