diff options
Diffstat (limited to 'users/kassouni/palette/screenshot.nix')
| -rw-r--r-- | users/kassouni/palette/screenshot.nix | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/users/kassouni/palette/screenshot.nix b/users/kassouni/palette/screenshot.nix index 6f2beea..00d11d1 100644 --- a/users/kassouni/palette/screenshot.nix +++ b/users/kassouni/palette/screenshot.nix @@ -1,9 +1,13 @@ -{ writers, maim, xclip }: +{ pkgs, ... }: { - name = "screenshot"; - icon = ""; - exe = writers.writeBash "screenshot" '' - set -eu - ${maim}/bin/maim -s | ${xclip}/bin/xclip -selection clipboard -t image/png - ''; + kassouni.palette.commands = [ + { + name = "screenshot"; + icon = ""; + exe = pkgs.writers.writeBash "screenshot" '' + set -eu + ${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png + ''; + } + ]; } |
