add clipboard config for niri

This commit is contained in:
ulic-youthlic 2025-01-25 16:05:42 +08:00
parent fd3397519e
commit b3781335ed
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 5 additions and 0 deletions

View file

@ -131,6 +131,7 @@ spawn-at-startup "swaybg" "-i" "/home/david/wallpaper/01.png"
spawn-at-startup "fcitx5" "-d" "--replace" spawn-at-startup "fcitx5" "-d" "--replace"
spawn-at-startup "xwayland-satellite" ":1" spawn-at-startup "xwayland-satellite" ":1"
spawn-at-startup "polkit-kde-agent" 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. // 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. // If the client will specifically ask for CSD, the request will be honored.
@ -171,6 +172,8 @@ window-rule {
} }
binds { binds {
Super+V { spawn "bash" "-c" "cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"; }
Mod+Shift+Slash { show-hotkey-overlay; } Mod+Shift+Slash { show-hotkey-overlay; }
Mod+T { spawn "ghostty"; } Mod+T { spawn "ghostty"; }

View file

@ -27,6 +27,8 @@ in
xwayland-satellite xwayland-satellite
niri-unstable niri-unstable
polkit-kde-agent polkit-kde-agent
wl-clipboard
cliphist
]; ];
youthlic.programs = { youthlic.programs = {
fuzzel.enable = true; fuzzel.enable = true;