I used KDE activities by task and had such a config for each task. KDE activities can run arbitrary scripts on being started.
Omg absolutely separate from the purpose of this thread, but would you happen to have copies of such scripts or could you recommend some tutorials on KDE activities? I usually prefer lean DEs, but every once in a while KDE makes it so difficult for me to say no to them.
Really thank you for sharing your insight and experience on this.