From b3781335ed1b0abcac9ae970f7d384e60ff27fcd Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Sat, 25 Jan 2025 16:05:42 +0800 Subject: [PATCH] add clipboard config for niri --- home/david/configurations/Tytonidae/niri/config.kdl | 3 +++ home/modules/niri.nix | 2 ++ 2 files changed, 5 insertions(+) diff --git a/home/david/configurations/Tytonidae/niri/config.kdl b/home/david/configurations/Tytonidae/niri/config.kdl index 855fe60..7dd2272 100644 --- a/home/david/configurations/Tytonidae/niri/config.kdl +++ b/home/david/configurations/Tytonidae/niri/config.kdl @@ -131,6 +131,7 @@ spawn-at-startup "swaybg" "-i" "/home/david/wallpaper/01.png" spawn-at-startup "fcitx5" "-d" "--replace" spawn-at-startup "xwayland-satellite" ":1" spawn-at-startup "polkit-kde-agent" +spawn-at-startup "wl-paste" "--watch" "cliphist" "store" // Uncomment this line to ask the clients to omit their client-side decorations if possible. // If the client will specifically ask for CSD, the request will be honored. @@ -171,6 +172,8 @@ window-rule { } binds { + Super+V { spawn "bash" "-c" "cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"; } + Mod+Shift+Slash { show-hotkey-overlay; } Mod+T { spawn "ghostty"; } diff --git a/home/modules/niri.nix b/home/modules/niri.nix index c428165..c47cbdd 100644 --- a/home/modules/niri.nix +++ b/home/modules/niri.nix @@ -27,6 +27,8 @@ in xwayland-satellite niri-unstable polkit-kde-agent + wl-clipboard + cliphist ]; youthlic.programs = { fuzzel.enable = true;