diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-13 16:31:58 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-13 16:31:58 +0530 |
| commit | e0c724f14042bd90b9eb5687a351c9945b74fc9b (patch) | |
| tree | 69a28737123f0db807b4522688e90817a6c555bf /modules/desktop/xremap/keybindings/maim.nix | |
| parent | d0936afa8fea372bc2d3114499ad10d354089c38 (diff) | |
| download | home-manager-config-e0c724f14042bd90b9eb5687a351c9945b74fc9b.tar.gz home-manager-config-e0c724f14042bd90b9eb5687a351c9945b74fc9b.zip | |
Moving to xremap for shortcuts from sxhkd. Added the basic configs
Diffstat (limited to 'modules/desktop/xremap/keybindings/maim.nix')
| -rw-r--r-- | modules/desktop/xremap/keybindings/maim.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/desktop/xremap/keybindings/maim.nix b/modules/desktop/xremap/keybindings/maim.nix new file mode 100644 index 0000000..f587e65 --- /dev/null +++ b/modules/desktop/xremap/keybindings/maim.nix @@ -0,0 +1,19 @@ +{ pkgs }: + +{ + + "super-p" = { + launch = [ + "sh" + "-c" + "${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png" + ]; + }; + "super-shift-p" = { + launch = [ + "sh" + "-c" + "mkdir -p ~/Pictures/Screenshots && ${pkgs.maim}/bin/maim -s ~/Pictures/Screenshots/screenshot-$(date +%Y%m%d-%H%M%S).png" + ]; + }; +} |
