diff --git a/config/default.nix b/config/default.nix index 22542ca7..3e9b7d6b 100644 --- a/config/default.nix +++ b/config/default.nix @@ -162,6 +162,12 @@ in gtk4.extraConfig = extraGtkConfig; }; + services = { + cliphist = { + enable = true; + }; + }; + systemd.user = { targets.compositor = { Unit = { diff --git a/dots/.config/hypr/wm/bindings.conf b/dots/.config/hypr/wm/bindings.conf index a4d5e592..22f7cd82 100644 --- a/dots/.config/hypr/wm/bindings.conf +++ b/dots/.config/hypr/wm/bindings.conf @@ -57,6 +57,7 @@ bind = ,j,movewindow,d bind = ,escape,submap,reset submap = reset +bind = CTRLSUPER,v,exec,cd "${XDG_CONFIG_HOME}/wofi" && cliphist list | wofi --dmenu --width=1000px --style "cliphist.css" --height=90% -D halign=left | cliphist decode | wl-copy bind = SUPER,RETURN,exec,wezterm bind = SUPERCTRLSHIFT,R,exec,hyprctl reload bind = SUPER,SPACE,exec,wofi --show drun diff --git a/dots/.config/wofi/cliphist.css b/dots/.config/wofi/cliphist.css new file mode 100644 index 00000000..3a894abc --- /dev/null +++ b/dots/.config/wofi/cliphist.css @@ -0,0 +1,22 @@ +@import url("style.css"); + +window { + font-size: 16px; +} + +#entry { + border: none; + border-radius: 16px; + padding: 0px; + min-height: 8px; + background-color: transparent; + font-weight: bold; +} + +#entry:selected { + outline: none; + border: none; + border-radius: none; + background: none; + background-size: none; +}