Setup Clipboard

This commit is contained in:
Peritia 2026-03-03 09:13:33 +01:00
parent fef9f5abbe
commit c53d93c59c
4 changed files with 74 additions and 2 deletions

View file

@ -0,0 +1,6 @@
{
imports = [
./option.nix
./main.nix
];
}

View file

@ -0,0 +1,51 @@
{
config,
lib,
nixosVista,
...
}:
{
config = lib.mkIf nixosVista.enable {
environment.systemPackages = with pkgs; [
wl-clipboard
cliphist
rofi
];
##########################################################
# XDG Portal (IMPORTANT for Firefox / Flatpak)
##########################################################
xdg.portal.enable = true;
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-hyprland
];
services.cliphist.enable = true;
nixosVista.hyprland.fragments.internalClipboard = ''
############################################################
# This is configuration for the 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"
'';
};
}

View file

@ -0,0 +1,14 @@
{
config,
lib,
nixosVista,
...
}: let
cfg = nixosVista.hyprland;
in {
}

View file

@ -16,16 +16,17 @@
ordered = [
(get "header")
(get "customTop")
(get "monitors")
(get "startup")
(get "variables")
(get "environment")
(get "monitors")
(get "startup")
(get "special")
(get "input")
(get "style")
(get "animation")
(get "keybinds")
(get "windowRules")
(get "internalClipboard")
(get "customBottom")
];