Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Forked from CampinCarl/Readme.md
Created January 24, 2020 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aduzsardi/a70101efc46354d8d3e5e22bfcac6272 to your computer and use it in GitHub Desktop.
Save aduzsardi/a70101efc46354d8d3e5e22bfcac6272 to your computer and use it in GitHub Desktop.
OpenVPN-GUI Replace Windows System Tray Icons

OpenVPN-GUI Replace Windows System Tray Icons

As of this writing, the OpenVPN-GUI system tray icon is very similar to the Windows 10 wired network icon, making it difficult to distinguish the two at a glance. This gist provides color swapped versions of the default OpenVPN icon to match the three (3) connection states, i.e., disconnected, connecting, and connected.

Icons

Using a resource editor, the user can modify their copy of the openvpn-gui.exe binary file to use the new icons. This gist includes a sample Resource Hacker script for this purpose, see "replace-tray-icons.txt".

Usage: ResourceHacker.exe -script replace-tray-icons.txt

The sample script assumes the openvpn-gui.exe file is in the same directory. Modify the Open and Save parameters to change this as needed.

[FILENAMES]
Open = openvpn-gui.exe
Save = openvpn-gui-new.exe
Log = replace-tray-icons.log
[COMMANDS]
-modify connected.ico, IconGroup,91,1033
-modify connecting.ico, IconGroup,92,1033
-modify disconnected.ico, IconGroup,93,1033
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment