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,
|
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
|
|
||||||
];
|
|
||||||
|
|
||||||
services.cliphist.enable = true;
|
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"-max-dedupe-search"
|
||||||
|
"10"
|
||||||
|
"-max-items"
|
||||||
|
"500"
|
||||||
|
];
|
||||||
|
allowImages = 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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./cliphist
|
||||||
./hyprland
|
./hyprland
|
||||||
./waybar
|
./waybar
|
||||||
./wofi
|
./wofi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue