feat: add cliphist as clipboard manager

This commit is contained in:
etwas 2025-02-08 21:59:57 +01:00
parent d015e577a8
commit b132a9461e
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0
2 changed files with 8 additions and 2 deletions

View file

@ -51,6 +51,8 @@
pavucontrol pavucontrol
networkmanagerapplet networkmanagerapplet
waybar-mpris waybar-mpris
cliphist
wl-clipboard
# nix-tools # nix-tools
nix-output-monitor nix-output-monitor

View file

@ -109,6 +109,8 @@
rofi = lib.getExe pkgs.rofi-wayland; rofi = lib.getExe pkgs.rofi-wayland;
swaylock = lib.getExe pkgs.swaylock; swaylock = lib.getExe pkgs.swaylock;
nautilus = lib.getExe pkgs.nautilus; nautilus = lib.getExe pkgs.nautilus;
cliphist = lib.getExe pkgs.cliphist;
wl-copy = lib.getExe' pkgs.wl-clipboard "wl-copy";
workspaces = [ workspaces = [
"1" "1"
"2" "2"
@ -134,7 +136,8 @@
"$mod, R, exec, ${rofi} -show drun" "$mod, R, exec, ${rofi} -show drun"
"$mod, D, exec, ${rofi} -show run" "$mod, D, exec, ${rofi} -show run"
"$mod, SPACE, exec, ${rofi} -show drun" "$mod, SPACE, exec, ${rofi} -show drun"
"$mod, PERIOD, exec, rofi -modi emoji -show emoji" "$mod, PERIOD, exec, ${rofi} -modi emoji -show emoji"
"$mod, X, exec, ${cliphist} list | ${rofi} -dmenu | ${cliphist} decode | ${wl-copy}"
"$mod, L, exec, ${swaylock}" "$mod, L, exec, ${swaylock}"
"$mod, left, movefocus, l" "$mod, left, movefocus, l"
@ -208,10 +211,11 @@
exec-once = exec-once =
let let
nm-applet = lib.getExe' pkgs.networkmanagerapplet "nm-applet"; nm-applet = lib.getExe' pkgs.networkmanagerapplet "nm-applet";
hyprsunset = lib.getExe pkgs.hyprsunset; wl-paste = lib.getExe' pkgs.wl-clipboard "wl-paste";
in in
[ [
"${nm-applet} &" "${nm-applet} &"
"${wl-paste} --watch cliphist store"
]; ];
}; };
plugins = with pkgs; [ plugins = with pkgs; [