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

View file

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