Skip to content

How to make my PC execute a script after it established a connection to the internet?

My particular case is to connect to a ProtonVPN. ProtonVPN ships a commandline tool (protonvpn-cli from the AUR) to do this. At the moment I just start a little script a few seconds after login to KDE. It works fine most of the time, but it is not very elegant nor practical especially on a laptop. I am sure it is explained somewhere in the wiki, but I have not found it so far and I don't know how to search for it. Even a slight hint or a link to the arch wiki would most likely help me out.

1 points0 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
ool0yu

Author

4
posts
45
comments
0
media
View profile
Nobody had commented when we saved it.

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.