gui(niri): Use cliphist's builtin selector for niri binds

This commit is contained in:
ulic-youthlic 2025-06-10 15:54:54 +08:00
parent dcbba5b66e
commit 9110727e03
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -39,8 +39,8 @@
swaybg = getExe pkgs.swaybg; swaybg = getExe pkgs.swaybg;
ghostty = getExe config.programs.ghostty.package; ghostty = getExe config.programs.ghostty.package;
wl-paste = getExe' pkgs.wl-clipboard "wl-paste"; wl-paste = getExe' pkgs.wl-clipboard "wl-paste";
wl-copy = getExe' pkgs.wl-clipboard "wl-copy";
cliphist = getExe' pkgs.cliphist "cliphist"; cliphist = getExe' pkgs.cliphist "cliphist";
cliphist-fuzzel-img = getExe' pkgs.cliphist "cliphist-fuzzel-img";
in in
( (
let let
@ -48,7 +48,7 @@ in
in [ in [
(plain "binds" [ (plain "binds" [
(plain "Mod+V" [ (plain "Mod+V" [
(spawn [sh "-c" "${cliphist} list | ${fuzzel} --dmenu | ${cliphist} decode | ${wl-copy}"]) (spawn [cliphist-fuzzel-img])
]) ])
(plain "Mod+Shift+P" [ (plain "Mod+Shift+P" [
(spawn [swaylock "--screenshots" "--clock" "--indicator" "--indicator-radius" "100" "--indicator-thickness" "7" "--effect-blur" "7x5" "--effect-vignette" "0.5:0.5" "--grace" "2" "--fade-in" "0.5"]) (spawn [swaylock "--screenshots" "--clock" "--indicator" "--indicator-radius" "100" "--indicator-thickness" "7" "--effect-blur" "7x5" "--effect-vignette" "0.5:0.5" "--grace" "2" "--fade-in" "0.5"])