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;
}

View File

@ -85,6 +85,7 @@
"$shiftMod, PRINT, exec, screenshot region" # Screenshot region
"ALT, PRINT, exec, screenshot region swappy" # Screenshot region then edit
"$shiftMod, C, exec, clipboard" # Clipboard picker with wofi
"$shiftMod, E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi
"$mod, F2, exec, night-shift-off" # Turn off night shift
"$mod, F3, exec, night-shift-on" # Turn on night shift

View File

@ -27,6 +27,7 @@
../../home/system/zathura
../../home/system/mime
../../home/system/udiskie
../../home/system/clipman
./secrets # You should probably remove this line
];