diff options
Diffstat (limited to 'share')
| -rw-r--r-- | share/home/niri.nix | 10 |
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; |
