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"; 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"; hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
}; };

View file

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

View file

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