Bug 393685 - Feature Request: Please add option to stop activity when empty
Summary: Feature Request: Please add option to stop activity when empty
Status: REPORTED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: 5.12.4
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-30 15:47 UTC by Victor
Modified: 2018-04-30 21:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2018-04-30 15:47:59 UTC
Note: This is feature request, but I could not find a whishlist for 'kactivitymanagerd'.

It would be great to be to able to automatically stop an activity when it's empty, or automatically start an activity when you open an application that has been assigned to that activity. I know this can be achieved via shell scripts (which is what I'm using right now), but it would be great to have this as an option for the activities settings. 

Note 2: You guys are doing a superb job!!
Comment 1 David Edmundson 2018-04-30 17:26:43 UTC
By empty you mean no application specific to that activity running?
Comment 2 Victor 2018-04-30 21:43:44 UTC
(In reply to David Edmundson from comment #1)
> By empty you mean no application specific to that activity running?

That's correct. If no windowed app is running on that specific activity, then it gets stopped. And if you open an application that is assigned to an activity that is currently not running, then the activity gets started automatically. 

I put this quick bash script to do just that - https://pastebin.com/1Jwn8Fqs