fix: make clipboard consistent across applications

This commit is contained in:
Alexandre Cavalheiro 2023-12-30 12:51:19 -03:00
parent 5dec143167
commit fff8f1a743
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -35,3 +35,15 @@ mako &
# #
/nix/store/$(ls -la /nix/store | rg '^d.*polkit-kde-agent.*\d$' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 & /nix/store/$(ls -la /nix/store | rg '^d.*polkit-kde-agent.*\d$' | awk '{print $9}')/libexec/polkit-kde-authentication-agent-1 &
#
# Refresh kdeconnect connections
#
kdeconnect-cli --refresh &
#
# Clipboard manager
#
wl-paste -w cliphist store &
# Need this to be able to paste in xwayland applications.
wl-paste -t text -w sh -c 'v=$(cat); cmp -s <(xclip -selection clipboard -o) <<< "$v" || xclip -selection clipboard <<< "$v"' &