From d71979f2cdf5f26b010b2c514b4b76632289c24f Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 3 May 2025 22:17:26 +0200 Subject: [PATCH] Improve cliphist --- modules/home/cliphist.nix | 7 +++++++ modules/home/default.nix | 1 + modules/home/hyprland/config.nix | 4 +--- modules/home/packages.nix | 1 - 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 modules/home/cliphist.nix diff --git a/modules/home/cliphist.nix b/modules/home/cliphist.nix new file mode 100644 index 0000000..41d8024 --- /dev/null +++ b/modules/home/cliphist.nix @@ -0,0 +1,7 @@ +{...}: { + services.cliphist = { + enable = true; + + allowImages = true; + }; +} diff --git a/modules/home/default.nix b/modules/home/default.nix index 6638cf7..c5a7bdb 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -9,6 +9,7 @@ ++ [(import ./browsers)] # browser configurations ++ [(import ./btop.nix)] # resouces monitor ++ [(import ./cava.nix)] # audio visualizer +++ [(import ./cliphist.nix)] # clipboard ++ [(import ./discord.nix)] # discord with catppuccin theme ++ [(import ./gpg.nix)] # GnuPG and its agent (gpg-agent) ++ [(import ./fuzzel.nix)] # launcher diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 5c76c47..a0d9e4c 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -11,8 +11,6 @@ "poweralertd &" "waybar &" "swaync &" - "wl-paste --type text --watch cliphist store &" #Stores only text data - "wl-paste --type image --watch cliphist store &" #Stores only image data "ckb-next -b &" "element-desktop --hidden &" ]; @@ -213,7 +211,7 @@ "$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-" # clipboard manager - "$mainMod, V, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy" + "$mainMod, V, exec, cliphist list | fuzzel --dmenu --prompt '📋 ' | cliphist decode | wl-copy" ]; # Bindings that work when locked diff --git a/modules/home/packages.nix b/modules/home/packages.nix index 671c7ad..18b076b 100644 --- a/modules/home/packages.nix +++ b/modules/home/packages.nix @@ -85,7 +85,6 @@ pavucontrol # pulseaudio volume controle (GUI) playerctl # controller for media players wl-clipboard # clipboard utils for wayland (wl-copy, wl-paste) - cliphist # clipboard manager poweralertd qalculate-gtk # calculator unzip