niri: sync clipboard with x11
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
00d24af03e
commit
4b4d3c4425
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,8 @@ with lib; let
|
|||
rm = "${pkgs.coreutils}/bin/rm";
|
||||
sway-audio-idle-inhibit = "${pkgs.sway-audio-idle-inhibit}/bin/sway-audio-idle-inhibit";
|
||||
wallpaper = "${config.home-manager.users.${config.custom.username}.home.file.".local/bin/wallpaper".source}";
|
||||
wl-paste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||
xclip = "${pkgs.xclip}/bin/xclip";
|
||||
in {
|
||||
options.custom.desktops.niri.misc = {
|
||||
enable = mkOption {default = false;};
|
||||
|
@ -59,6 +61,9 @@ in {
|
|||
]
|
||||
++ optionals config.custom.wallpaper [
|
||||
{command = [wallpaper];}
|
||||
]
|
||||
++ optionals config.custom.desktops.niri.xwayland [
|
||||
{command = [wl-paste "--watch" xclip "-selection" "clipboard"];} # Sync (X)wayland clipboard
|
||||
];
|
||||
|
||||
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingsswitch-eventslid-close
|
||||
|
|
Loading…
Add table
Reference in a new issue