![]() Registered Member ![]()
|
How can I run specific scripts whenever I switch to an activity or away from it.
Suppose I have the following activities:
My goal is to be able to accomplish something like the following: * On switch to workplace 1 activity - run ScriptA, which tells plasma-nm to connect to workplace 1 VPN connection and opens konsole with several tabs that contain ssh connections that are available only over vpn * On switch away from workplace 1 activity - run ScriptB, which closes any konsole windows in this activity and tells plasma-nm to close connection to workplace 1 VPN I have "ScriptA" done, and I tried to get the workflow above working based on the information at https://www.reddit.com/r/kde/comments/81p77h/activity_for_memory_cpu_saving/dv5or9g Reproduced below:
First, the information is a bit unclear since I do not know if "started" should be a folder or the name of the script file that will be executed. In either case, however, I am unable to get my script to run either when switching to the relevant activity or starting and stopping it. Any help or guidance on this will be greatly appreciated. |
![]() Registered Member ![]()
|
Did you find a solution? I am interested in this topic, to make stuff like what you tried to achieve work.
|
![]() Registered Member ![]()
|
I also came across similar requirement and found that there are multiple methods
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]