shift-shell/components/mobileshellstate
Devin Lin 839d5e2bff panels: Add support for defining device specific panel tweaks
This adds support for specifying options needed to deal with phone
display panel pecularities (ex. screen curves, notches, punch holes)

This is implemented as settings in ~/.config/plasmamobilerc, which can
set panel heights, paddings, and center spacings to duck display
cutouts. The pixel values are scaling independent, and so are not
affected when the display scaling is changed.

This is then exposed over DBus, so that components from outside of
plasmashell (ex. KWin) can access it easily without needing to connect to
kscreen themselves. Each screen is exposed as a single object.

Currently support is only added in the status bar and the navigation
panel.

Currently all screens have the settings applied. In the future, we may
want to limit this just to the internal screen (?)

---

This also adds a "devices" folder (in `devices/configs`) where per-device configs can be set.

This is installed to `/usr/share/plasma-mobile-device-configs`.
In `plasmamobilerc` (installed to `/etc/xdg/plasmamobilerc`, or
`~/.config/plasmamobilerc`), envmanager will read:

```toml
[Device]
device=oneplus-enchilada
```

for the device config to use and write its settings to
`~/.config/plasma-mobile/plasmamobilerc`.
2025-11-04 23:08:18 -05:00
..
CMakeLists.txt panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
lockscreendbusclient.cpp lockscreenstate: Make lock screen call async 2025-10-31 09:25:54 -04:00
lockscreendbusclient.h homescreens/folio: Add options to turn off and lock the phone after a double tap on screen 2025-06-25 16:39:36 -04:00
panelsettingsdbusclient.cpp panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
panelsettingsdbusclient.h panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
panelsettingsdbusobjectmanager.cpp panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
panelsettingsdbusobjectmanager.h panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
shelldbusclient.cpp mobileshellstate: Fix memory leak 2025-08-19 18:42:23 +02:00
shelldbusclient.h panel: Overlay over lockscreen 2025-07-02 10:27:33 -04:00
shelldbusobject.cpp panel: Overlay over lockscreen 2025-07-02 10:27:33 -04:00
shelldbusobject.h panel: Overlay over lockscreen 2025-07-02 10:27:33 -04:00
startupfeedbackmodel.cpp startupfeedback: Fix multi-screen behaviour 2024-07-15 20:53:42 +00:00
startupfeedbackmodel.h startupfeedback: Fix multi-screen behaviour 2024-07-15 20:53:42 +00:00
volumeosdlistener.cpp volumeosd: Listen to osd service for opening the popup 2025-09-13 08:54:11 -04:00
volumeosdlistener.h volumeosd: Listen to osd service for opening the popup 2025-09-13 08:54:11 -04:00
windowlistener.cpp startupfeedback: Change to be window based and controlled by a model 2024-07-13 16:30:07 +00:00
windowlistener.h startupfeedback: Change to be window based and controlled by a model 2024-07-13 16:30:07 +00:00