You are not logged in.
I made this script to toggle Windscribe VPN:
#!/bin/bash
# detect if Windscribe is connected
# connect if it's disconnected, disconnect if it's connected
if [ "$(windscribe status|grep CONNECTED)" = "DISCONNECTED" ];
then
kdialog --msgbox "Connecting Windscribe VPN"
windscribe connect;
else
kdialog --msgbox "Disonnecting Windscribe VPN"
windscribe disconnect;
fi
# change desktop iconand this .desktop file to launch it (it's just from the KDE new launcher dialogue):
[Desktop Entry]
Comment[en_GB]=
Comment=
Exec=~/windscribe-test.sh
GenericName[en_GB]=Toggle Windscribe VPN
GenericName=Toggle Windscribe VPN
Icon=system-run
MimeType=
Name[en_GB]=Link to Application
Name=Link to Application
Path=~/
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=What I really want to do is make the desktop icon change depending on the status of Windscribe, like the Trash icon does (it has Icon and EmptyIcon). How can I do this?
TIA ![]()
Last edited by throbscottle (2019-07-09 21:41:01)
Offline