From af99b4960a9bf1043234354d685ed23818c14aaa Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Sat, 29 Aug 2026 23:53:40 -0700 Subject: new laptop --- users/kassouni/palette/screenshot.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'users/kassouni/palette/screenshot.nix') 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 + ''; + } + ]; } -- cgit v1.3.1