diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-12 22:50:38 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-12 22:50:38 +0530 |
| commit | fb6fae78379276b8d8be97ac6fe7a4771cc61b0d (patch) | |
| tree | 988aace684f155303c211bcbeecbc6128199d65d /modules/desktop/sxhkd/keybindings/maim.nix | |
| parent | 532107493512bb56581df1c60166830e44bd5076 (diff) | |
| download | home-manager-config-fb6fae78379276b8d8be97ac6fe7a4771cc61b0d.tar.gz home-manager-config-fb6fae78379276b8d8be97ac6fe7a4771cc61b0d.zip | |
Added formatter and performed formatting
Diffstat (limited to 'modules/desktop/sxhkd/keybindings/maim.nix')
| -rw-r--r-- | modules/desktop/sxhkd/keybindings/maim.nix | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/modules/desktop/sxhkd/keybindings/maim.nix b/modules/desktop/sxhkd/keybindings/maim.nix index 2092a71..0f0b3d8 100644 --- a/modules/desktop/sxhkd/keybindings/maim.nix +++ b/modules/desktop/sxhkd/keybindings/maim.nix @@ -1,15 +1,18 @@ -{ createKeybinding, pkgs, lib }: +{ + createKeybinding, + pkgs, + lib, +}: let maim = "${pkgs.maim}/bin/maim"; -in lib.mkMerge [ - (createKeybinding - "p" - "Take screenshot of selected area and save to clipboard" - "${maim} -s | xclip -selection clipboard -t image/png") +in +lib.mkMerge [ + (createKeybinding "p" "Take screenshot of selected area and save to clipboard" + "${maim} -s | xclip -selection clipboard -t image/png" + ) - (createKeybinding - "shift + p" - "Take screenshot of selected area and save to ~/Pictures/Screenshots" - "mkdir -p ~/Pictures/Screenshots && ${maim} -s ~/Pictures/Screenshots/screenshot-$(date +%Y%m%d-%H%M%S).png") + (createKeybinding "shift + p" "Take screenshot of selected area and save to ~/Pictures/Screenshots" + "mkdir -p ~/Pictures/Screenshots && ${maim} -s ~/Pictures/Screenshots/screenshot-$(date +%Y%m%d-%H%M%S).png" + ) ] |
