summaryrefslogtreecommitdiff
path: root/hm/env/niri/binds.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/env/niri/binds.nix')
-rw-r--r--hm/env/niri/binds.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/hm/env/niri/binds.nix b/hm/env/niri/binds.nix
index 9ede74e..b2031e2 100644
--- a/hm/env/niri/binds.nix
+++ b/hm/env/niri/binds.nix
@@ -69,6 +69,21 @@ in
repeat = false;
};
+ "Mod+S" = {
+ action = spawn "sh" "-c" ''
+ grim -g "$(slurp)" - | tee ${ss}.png | wl-copy
+ '';
+ repeat = false;
+ };
+
+ "Mod+Shift+S" = {
+ action = spawn "sh" "-c" ''
+ grim -g "$(slurp)" ${ss}.png
+ satty --filename "${ss}.png" --output-filename "${ss}-edited.png"
+ '';
+ repeat = false;
+ };
+
"Mod+Shift+D".action = spawn "sh" "-c" ''
cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
'';