Merge branch 'vpn_clipboard' into 'kali/master'
copy vpn ip when clicking on its icon in xfce taskbar See merge request kalilinux/packages/kali-themes!10
This commit is contained in:
commit
02f8d6886f
@ -6,8 +6,13 @@ ip="$(ip a s "${interface}" 2>/dev/null \
|
||||
|
||||
if [ "${ip}" != "" ]; then
|
||||
printf "<icon>network-vpn-symbolic</icon>"
|
||||
printf "<iconclick>bash -c 'printf ${ip} | xclip -selection clipboard'</iconclick>"
|
||||
printf "<txt>${ip}</txt>"
|
||||
printf "<tool>VPN IP</tool>"
|
||||
if command -v xclip; then
|
||||
printf "<tool>VPN IP (click icon to copy)</tool>"
|
||||
else
|
||||
printf "<tool>VPN IP (install xclip to copy to clipboard)</tool>"
|
||||
fi
|
||||
else
|
||||
printf "<txt></txt>"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user