aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2025-10-26 23:35:12 +0100
committerMiran Bastaja <mbastaja@sorre.xyz>2025-10-26 23:37:53 +0100
commitfbfd6a84e205cb751944c888c37b21e0eae5f04f (patch)
tree62c8d7fc220e3d6a4513476fab4e2ea029ddf9d1 /share
parent1964ed010d1937fed390e3c2bf947d1eb41bc051 (diff)
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.
Diffstat (limited to 'share')
-rw-r--r--share/home/niri.nix10
1 files changed, 8 insertions, 2 deletions
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;