From fbfd6a84e205cb751944c888c37b21e0eae5f04f Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Sun, 26 Oct 2025 23:35:12 +0100 Subject: chore: update flake.lock Also had to swap out screenshot command. Issue still present: because the clipboard is cleared when a program is closed I need to paste the screenshot before closing `satty`. Fix this later by adding a clip manager like clipman. --- share/home/niri.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/home/niri.nix b/share/home/niri.nix index fa5a9c6..458493d 100644 --- a/share/home/niri.nix +++ b/share/home/niri.nix @@ -6,6 +6,11 @@ }: let tomlFormat = pkgs.formats.toml { }; + screenshot = pkgs.writeScript "ib-screenshot" '' + set -xeu pipefail + ${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp -d)" -t ppm - | + ${pkgs.satty}/bin/satty --filename - + ''; in { imports = [ @@ -25,6 +30,8 @@ in pkgs.nautilus pkgs.bemoji + pkgs.grim + pkgs.slurp ]; home.sessionVariables = { BEMOJI_PICKER_CMD = "${pkgs.tofi}/bin/tofi"; @@ -308,8 +315,7 @@ in "Mod+W".action = toggle-column-tabbed-display; - "Print".action = screenshot; - "Alt+Print".action = screenshot-window; + "Print".action = spawn "${screenshot}"; "Mod+Escape" = { allow-inhibiting = false; -- cgit v1.3.1