Add wofi clipman

This commit is contained in:
Hadi
2024-09-04 01:53:36 +02:00
parent 027ef1c398
commit 4135134261
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
let
clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" ''
clipman clear --all
'';
clipboard = pkgs.writeShellScriptBin "clipboard" ''
clipman pick --tool=wofi
'';
in {
wayland.windowManager.hyprland.settings.exec-once =
[ "${clipboard-clear}" "wl-paste -t text --watch clipman store" ];
home.packages = with pkgs; [ clipman clipboard clipboard-clear ];
services.clipman.enable = true;
}