summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock6
-rw-r--r--hm/env/niri/binds.nix15
2 files changed, 18 insertions, 3 deletions
diff --git a/flake.lock b/flake.lock
index 11fc6d1..5e1f51c 100644
--- a/flake.lock
+++ b/flake.lock
@@ -398,11 +398,11 @@
]
},
"locked": {
- "lastModified": 1769428751,
- "narHash": "sha256-CywFJ9fcsqtitCQt9VokkxIJNCXzcyGKRoYd3dk1MhE=",
+ "lastModified": 1769432621,
+ "narHash": "sha256-xFzNAiH8YfQ43vEFzJWkMtbrdCRiUMQHU9ZlshVCKvE=",
"owner": "nix-community",
"repo": "NUR",
- "rev": "42c1e2bb76c3952d37ae0e61a5069e8a47983c5e",
+ "rev": "b9b683b70566d7eee65b7d9f46beb8444ef2986e",
"type": "github"
},
"original": {
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
'';