1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

profile: only start autocutsel if it's not running

This commit is contained in:
Joe Groocock 2018-03-30 10:49:33 +01:00
parent e294810914
commit 423c9a7d01
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -55,7 +55,7 @@ if [ -f "$CONFIG_DIR/secrets" ]; then
fi fi
# Merge system clipboards # Merge system clipboards
if [ -n "$DISPLAY" ] && exists autocutsel; then if [ -n "$DISPLAY" ] && exists autocutsel && ! pidof autocutsel 1>/dev/null; then
autocutsel -fork autocutsel -fork
autocutsel -selection PRIMARY -fork autocutsel -selection PRIMARY -fork
fi fi