Use Wofi instead
This commit is contained in:
parent
bb74c0aaa8
commit
4c86be25f4
2 changed files with 21 additions and 20 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./cliphist
|
||||
./hyprland
|
||||
./waybar
|
||||
./wofi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue