Bug 451261

Summary: Disable panel(s)/dock(s) when a different monitor becomes primary
Product: [Unmaintained] lattedock Reporter: yamiyukisenpai
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.10.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description yamiyukisenpai 2022-03-07 22:51:24 UTC
SUMMARY
When I connect my laptop to my monitor, I sometimes prefer to have the external monitor become the primary (and shutting the laptop's screen).  Problem is that doing so forces the dock I already set for external monitors to still remain.  I'd like for Latte to be able to disable the secondary dock(s), and preferably, switch with the primary if the laptop screen becomes secondary.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-30-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION
This is primarily useful for laptops setups.
By extension, I'd like the ability for docks that aren't being used in primary monitors to be automatically applied to all secondary/external monitors when plugged in. Or even the default setup being to copy the current docks and panels to secondary if there isn't any.
Comment 1 Michail Vourlakos 2022-03-07 23:10:21 UTC
nope, it was working like this in the past and was creating plenty of issues.
Comment 2 Michail Vourlakos 2022-03-07 23:11:46 UTC
You can always use Activities and Different layouts on different activities in order to provide something workable for you.
Comment 3 yamiyukisenpai 2022-03-08 21:36:15 UTC
(In reply to Michail Vourlakos from comment #1)
> nope, it was working like this in the past and was creating plenty of issues.

That's a shame.  My quick tests shows me that Plasma panels supports that, so I think I'm gonna have to go back to using Panels on my laptop.
Comment 4 Michail Vourlakos 2022-03-09 06:04:11 UTC
(In reply to techxgames from comment #3)
> (In reply to Michail Vourlakos from comment #1)
> > nope, it was working like this in the past and was creating plenty of issues.
> 
> That's a shame.  My quick tests shows me that Plasma panels supports that,
> so I think I'm gonna have to go back to using Panels on my laptop.

Of course use whatever you want but plasma panels do not support it as you say. What plasma panels and latte panels support is that panels that belong to primary screen always follow the current primary screen. Panels that are set in explicit screens are always shown if their screen is active.