chore(hyprland): add clipboard-sync to sync xwayland and wayland clipboards

This commit is contained in:
Alexandre Cavalheiro 2024-10-17 20:31:04 -03:00
parent 194f04fda5
commit 8334109245
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 12 additions and 1 deletions

View file

@ -14,6 +14,11 @@
inputs.nixpkgs.follows = "nixpkgs";
};
clipboard-sync = {
url = "github:dnut/clipboard-sync";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
};

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, clipboard-sync, ... }:
{
imports = [
@ -69,6 +69,7 @@
lazygit
## Desktop environment
clipboard-sync.packages.${pkgs.stdenv.hostPlatform.system}.default
cliphist
grim
libsForQt5.ark

View file

@ -56,4 +56,9 @@ pkgs.writeShellScriptBin "start_services" ''
# Clipboard manager
#
${pkgs.wl-clipboard}/bin/wl-paste --watch cliphist store &
#
# Service that syncs X11 and Wayland clipboards
#
clipboard-sync
''