Use Wofi instead

This commit is contained in:
Peritia 2026-03-03 09:25:33 +01:00
parent bb74c0aaa8
commit 4c86be25f4
2 changed files with 21 additions and 20 deletions

View file

@ -4,37 +4,37 @@
pkgs,
nixosVista,
...
}:
{
}: {
config = lib.mkIf nixosVista.enable {
environment.systemPackages = with pkgs; [
home.packages = with pkgs; [
wl-clipboard
cliphist
rofi
wofi
];
##########################################################
# XDG Portal (IMPORTANT for Firefox / Flatpak)
##########################################################
services.cliphist = {
enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-hyprland
];
services.cliphist.enable = true;
# A Wayland session
systemdTargets = ["graphical-session.target"];
extraOptions = [
"-max-dedupe-search"
"10"
"-max-items"
"500"
];
allowImages = true;
};
nixosVista.hyprland.fragments.internalClipboard = ''
############################################################
# Clipboard
############################################################
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
bind = $mainMod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
# "services.cliphist.enable = true;" does this
#exec-once = wl-paste --type text --watch cliphist store
#exec-once = wl-paste --type image --watch cliphist store
bind = $mainMod, V, exec, cliphist list | wofi --dmenu --prompt "Clipboard" | cliphist decode | wl-copy
'';
};
}
}

View file

@ -5,6 +5,7 @@
...
}: {
imports = [
./cliphist
./hyprland
./waybar
./wofi