Skip to content

Having an issue creating a custom waybar vpn module. Haven't scripted in 30 years. #3569

Answered by mikedebian
mikedebian asked this question in Q&A
Discussion options

You must be logged in to vote

Solved!

"custom/vpn": {
"interval": 3,
"format": "{}",
"exec": "ip add show | grep -qF tun0 && echo 🔒 Connected || echo 🔓 Disconnected",
"max-length": "100",
"on-click": "nmcli connection up VPNOVPNNAMENOEXTENSION",
"on-click-right": "nmcli connection down VPNOVPNNAMENOEXTENSION"
},

Style accordingly.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mikedebian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant