XFCE: genmon script tweaks
This commit is contained in:
parent
02f8d6886f
commit
f83051cf12
@ -6,12 +6,13 @@ ip="$(ip a s "${interface}" 2>/dev/null \
|
|||||||
|
|
||||||
if [ "${ip}" != "" ]; then
|
if [ "${ip}" != "" ]; then
|
||||||
printf "<icon>network-vpn-symbolic</icon>"
|
printf "<icon>network-vpn-symbolic</icon>"
|
||||||
printf "<iconclick>bash -c 'printf ${ip} | xclip -selection clipboard'</iconclick>"
|
|
||||||
printf "<txt>${ip}</txt>"
|
printf "<txt>${ip}</txt>"
|
||||||
if command -v xclip; then
|
if command -v xclip; then
|
||||||
printf "<tool>VPN IP (click icon to copy)</tool>"
|
printf "<iconclick>sh -c 'printf ${ip} | xclip -selection clipboard'</iconclick>"
|
||||||
|
printf "<txtclick>sh -c 'printf ${ip} | xclip -selection clipboard'</txtclick>"
|
||||||
|
printf "<tool>VPN IP (click to copy)</tool>"
|
||||||
else
|
else
|
||||||
printf "<tool>VPN IP (install xclip to copy to clipboard)</tool>"
|
printf "<tool>VPN IP (install xclip to copy to clipboard)</tool>"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printf "<txt></txt>"
|
printf "<txt></txt>"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user