From e0c724f14042bd90b9eb5687a351c9945b74fc9b Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 13 Mar 2026 16:31:58 +0530 Subject: Moving to xremap for shortcuts from sxhkd. Added the basic configs --- modules/desktop/xremap/keybindings/maim.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/desktop/xremap/keybindings/maim.nix (limited to 'modules/desktop/xremap/keybindings/maim.nix') 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" + ]; + }; +} -- cgit v1.2.3