Skip to content

Instantly share code, notes, and snippets.

View Nevon's full-sized avatar
:shipit:
Shipping

Tommy Brunn Nevon

:shipit:
Shipping
  • Klarna
  • Stockholm, Sweden
View GitHub Profile

How to automatically enable\disable wireguard connection upon WIFI connection status change

Prerequisits

  • Gnome 40 and above (Tested on Gnome 46)
  • An already configured wireguard VPN connection (via the NetworkManager)

Steps

  • Using root, create a script file in /etc/NetworkManager/dispatcher.d/wireguard.sh and make it executable ug+x
  • Add the following content:
@max-mapper
max-mapper / bibtex.png
Last active November 19, 2025 13:01
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png