summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/screenshot.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-08-29 23:53:40 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-08-29 23:53:40 -0700
commitaf99b4960a9bf1043234354d685ed23818c14aaa (patch)
tree9d6bd855c76c2c99e16321e1df4eeaadade28739 /users/kassouni/palette/screenshot.nix
parent8dcf355819cc6cd1e87924218c1adcd900ecda84 (diff)
new laptop
Diffstat (limited to 'users/kassouni/palette/screenshot.nix')
-rw-r--r--users/kassouni/palette/screenshot.nix18
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
+ '';
+ }
+ ];
}