shift-shell/devices
2026-03-02 20:55:35 -05:00
..
configs devices: add Fairphone 5 2026-03-02 20:55:35 -05:00
CMakeLists.txt panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00
README.md envmanager: Attempt to autodetect device id 2025-12-15 20:58:31 -05:00
spec.conf panels: Add support for defining device specific panel tweaks 2025-11-04 23:08:18 -05:00

This folder is where device-specific information is set.

Usage as a distro

As a distribution, you can ship the device preset with the image by installing a file if the device id isn't autodetected.

In /etc/xdg/plasmamobilerc, write:

[Device]
device=oneplus,enchilada # replace with the device id

This should be a file name that exists in /usr/share/plasma-mobile-device-presets (which are the files in the configs folder).

Auto-detecting device names

Envmanager reads /sys/firmware/devicetree/base/compatible to try to autodetect the device id.

Use this command to determine your device's id:

$ sed -z 's/$/\n/' /sys/firmware/devicetree/base/compatible
oneplus,enchilada
qcom,sdm845

Adding a new device config

See spec.conf for more details on the specification. If a setting is omitted in the file, then the system will use the default value.

Add a new config in configs with the device id.

In order to test your changes, install the file to /usr/share/plasma-mobile-device-presets/your-device-id.conf. Then run envmanager to apply the changes to the running system:

$ plasma-mobile-envmanager --apply-settings
$ plasmashell -p org.kde.plasma.mobileshell --replace