Bug 323647

Summary: Add possibility to run user defined scripts after switching displaysettings
Product: [Plasma] KScreen Reporter: Jan Sommer <summerspam>
Component: commonAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: bugreporter11, dvratil, igor.s.krivenko, miguel.angel.lopez.vicente, nate, pfyu817, sergio.callegari, summerspam
Priority: NOR    
Version: 1.0   
Target Milestone: 1.1   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Switching to/from hdmi audio

Description Jan Sommer 2013-08-17 17:46:51 UTC
KScreen remembers the display settings based on the connected device.
Please add the option to run a custom script after new display settings are automatically applied. This is especially useful for people with Notebooks which regularly connect to a display at work/home. This way stardard tasks like the following would be applied automatically upon connecting a certain display:
- Switch the pulseaudio settings from/to HDMI-output
- Switch to a certain Activity setting
- (In Future) switch between plasma-active and plasma-desktop
- Trigger any changes which are related to a certain workplace

I think at first it would be enough to add an option in a config-file to run a command or script, later it could be integrated into the settings dialog of KScreen.

Reproducible: Always
Comment 1 Sergio 2013-08-30 09:44:27 UTC
As a user, I support this enhancement request.
Comment 2 davidgilmoreheppy@hotmail.com 2013-11-11 11:00:25 UTC
Created attachment 83488 [details]
Switching to/from hdmi audio

I wish to add my  vote from a feature to switch the audio to/from hdmi on plugin just like the video performs.
Comment 3 Igor Krivenko 2016-02-08 14:05:01 UTC
I would appreciate this feature very much.
It would make a perfect combination with Synergy keyboard/mouse sharing service.
Comment 4 bugreporter11 2018-07-13 23:39:10 UTC
I also support this idea. However, my vote is to add an option to a kscreen config file to pass all or specific actions to custom scripts. For example, I would like to have kscreen do nothing and to use arandr (or xrandr) to apply my desired screen layouts.
Comment 5 Nate Graham 2022-11-08 21:17:57 UTC
*** Bug 404727 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2022-11-08 21:18:45 UTC
I don't think this is a feature we want to support, sorry. These things should be supported automatically, without the user having to cobble together a script to do it.