add the host to the clipboard selection

This commit is contained in:
Solène Rapenne 2023-06-21 19:18:25 +02:00
parent 1b77a7c05e
commit 3bdecb99b9

View File

@ -6,6 +6,7 @@ SOURCE=$(zenity \
--text="Choose a clipboard to copy from" \
--print-column=4 \
--column="From" --column="PID" --column="Kube name" --column="Local X server" --column="Program running" \
TRUE 1 $(hostname) 0.0 Host \
$(awk '{ print "FALSE "$0 }' /tmp/kubes.txt))
if [ -z "$SOURCE" ]
@ -19,6 +20,7 @@ DESTINATION=$(zenity \
--text="Choose a destination clipboard" \
--print-column=4 \
--column="To" --column="PID" --column="Kube name" --column="Local X server" --column="Program running" \
TRUE 1 $(hostname) 0.0 Host \
$(awk -v orig="${SOURCE}" '$3!=orig { print "FALSE "$0 }' /tmp/kubes.txt))
if [ -z "$DESTINATION" ]