Add custom clipboard scripts

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-08-15 14:14:28 +02:00
parent 3749c22df5
commit 63cd833778
6 changed files with 57 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
{ lib, pkgs, ... }:
let
copy = lib.meta.getExe (
pkgs.writeShellApplication {
name = "copy";
runtimeInputs = with pkgs; [
cliphist
wl-clipboard
];
text = builtins.readFile ./scripts/copy.sh;
}
);
delete = lib.meta.getExe (
pkgs.writeShellApplication {
name = "delete";
runtimeInputs = with pkgs; [ cliphist ];
text = builtins.readFile ./scripts/delete.sh;
}
);
in
pkgs.writeShellApplication {
name = "cliphist-rofi";
runtimeInputs = with pkgs; [ rofi-wayland ];
text = "rofi -modi \"copy:${copy},delete:${delete}\" -show copy";
}