aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2024-01-24 23:53:59 +0800
committerGuangxiong Lin <[email protected]>2024-01-24 23:53:59 +0800
commitdcc82e4f2daa496358d2c9f378c7c873ba7d106c (patch)
tree7dd39a31e01cc00d9f5cbfafe4dad64313ac6820 /bin
parentabe3d5e7d10ca568164f3708d97b5c6fd39566f7 (diff)
downloaddotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.tar.gz
dotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.tar.bz2
dotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.zip
Save wayland clipboard content after programs exit
Diffstat (limited to 'bin')
-rwxr-xr-xbin/autostart5
1 files changed, 5 insertions, 0 deletions
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"