From dcc82e4f2daa496358d2c9f378c7c873ba7d106c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 24 Jan 2024 23:53:59 +0800 Subject: Save wayland clipboard content after programs exit --- bin/autostart | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/autostart') diff --git a/bin/autostart b/bin/autostart index e54c51c..2d75599 100755 --- a/bin/autostart +++ b/bin/autostart @@ -24,6 +24,11 @@ if [ "$XDG_SESSION_TYPE" = wayland ]; then run_if_exists gammastep \ -l $(curl -s "https://location.services.mozilla.com/v1/geolocate?key=geoclue" | awk 'OFS=":" {print $3,$5}' | tr -d ',}') \ -m wayland + + if command -v wl-paste > /dev/null && \ + command -v clipman > /dev/null; then + wl-paste -t text --watch clipman store & + fi fi run_if_exists "$HOME/.local/autostart" -- cgit v1.2.3