Setup Clipboard
This commit is contained in:
parent
fef9f5abbe
commit
c53d93c59c
4 changed files with 74 additions and 2 deletions
6
nixosVista/homeManager/cliphist/default.nix
Normal file
6
nixosVista/homeManager/cliphist/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./option.nix
|
||||||
|
./main.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
51
nixosVista/homeManager/cliphist/main.nix
Normal file
51
nixosVista/homeManager/cliphist/main.nix
Normal 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"
|
||||||
|
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
14
nixosVista/homeManager/cliphist/option.nix
Normal file
14
nixosVista/homeManager/cliphist/option.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
nixosVista,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = nixosVista.hyprland;
|
||||||
|
in {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -16,16 +16,17 @@
|
||||||
ordered = [
|
ordered = [
|
||||||
(get "header")
|
(get "header")
|
||||||
(get "customTop")
|
(get "customTop")
|
||||||
(get "monitors")
|
|
||||||
(get "startup")
|
|
||||||
(get "variables")
|
(get "variables")
|
||||||
(get "environment")
|
(get "environment")
|
||||||
|
(get "monitors")
|
||||||
|
(get "startup")
|
||||||
(get "special")
|
(get "special")
|
||||||
(get "input")
|
(get "input")
|
||||||
(get "style")
|
(get "style")
|
||||||
(get "animation")
|
(get "animation")
|
||||||
(get "keybinds")
|
(get "keybinds")
|
||||||
(get "windowRules")
|
(get "windowRules")
|
||||||
|
(get "internalClipboard")
|
||||||
(get "customBottom")
|
(get "customBottom")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue