diff options
author | Guangxiong Lin <[email protected]> | 2024-01-24 23:53:59 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2024-01-24 23:53:59 +0800 |
commit | dcc82e4f2daa496358d2c9f378c7c873ba7d106c (patch) | |
tree | 7dd39a31e01cc00d9f5cbfafe4dad64313ac6820 /bin/autostart | |
parent | abe3d5e7d10ca568164f3708d97b5c6fd39566f7 (diff) | |
download | dotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.tar.gz dotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.tar.bz2 dotfiles-dcc82e4f2daa496358d2c9f378c7c873ba7d106c.zip |
Save wayland clipboard content after programs exit
Diffstat (limited to 'bin/autostart')
-rwxr-xr-x | bin/autostart | 5 |
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" |