![]() |
|
Plasma Mobile configuration - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PineTab (https://forum.pine64.org/forumdisplay.php?fid=140) +--- Forum: PineTab Software (https://forum.pine64.org/forumdisplay.php?fid=142) +--- Thread: Plasma Mobile configuration (/showthread.php?tid=18457) |
Plasma Mobile configuration - Surehand53 - 07-05-2023 Plasma Mobile configuration The examples in this text are for the factory danctnix distro of Archlinux for the Pinetab 2. In the guide to install plasma mobile on the Pinetab 2 here we have the issue that the package plasma-mobile-settings cannot be installed doe to some file conflicts. Plasma Mobile also works ok without that package, but what is it that is configured there and what is useful for the Pinetab 2? The plasma-mobile-settings package There are different variations of this package.
Here is the content of the folder that failed to install previously. Code: Filename Description
90-plasma-flashlight.rules pkg: plasma: plasma-mobile-settings: various improvements
91_plasma-mobile.gschema.override pkg: plasma: plasma-mobile-settings: new pkgbuild
PKGBUILD pkg: plasma: plasma-mobile-settings: remove window decorations
applications-blacklistrc pkg: plasma: plasma-mobile-settings: blacklist vlc from home screen
kde-tweaks.sh pkg: plasma: plasma-mobile-settings: various improvements
kdeglobals pkg: plasma: plasma-mobile-settings: update settings
kdewallet.kwl pkg: plasma: plasma-mobile-settings: add blank kwallet
kdewallet.salt pkg: plasma: plasma-mobile-settings: add blank kwallet
kscreenlockerrc pkg: plasma: plasma-mobile-settings: start session locked
kwinrc pkg: plasma: plasma-mobile-settings: remove window decorations
plasma-mobile-settings.install pkg: plasma: plasma-mobile-settings: disable ofonoctl
plasmamobile.json pkg: plasma: plasma-mobile-settings: new pkgbuild
powerdevil.hook pkg: plasma: plasma-mobile-settings: alarm wakeup and flashlight
settings.ini pkg: plasma: plasma-mobile-settings: new pkgbuild
startkderc pkg: plasma: plasma-mobile-settings: switch to mm & enable sysdboot90-plasma-flashlight.rules Folder: /usr/lib/udev/rules.d/ The Pinetab2 doesn't have a flashlight. I skip this file. Code: SUBSYSTEM=="leds", ACTION=="add", KERNEL=="white:flash", \
RUN+="/bin/chmod 666 /sys/class/leds/%k/brightness"91_plasma-mobile.gschema.override Folder: /usr/share/glib-2.0/schemas I guess this impacts GDK. Code: [org.maliit.keyboard.maliit]
device='plasmamobile'
theme='Breeze'PKGBUILD This is the script that installs the package. Very useful to see how and in which folder which file gets installed. Example: Code: ...
package() {
xdg=$pkgdir/etc/xdg
install -Dm644 applications-blacklistrc $xdg/applications-blacklistrc
install -Dm644 kdeglobals $xdg/kdeglobals
install -Dm644 kwinrc $xdg/kwinrc
install -Dm644 kscreenlockerrc $xdg/kscreenlockerrc
install -Dm644 startkderc $xdg/startkderc
install -Dm644 "${srcdir}/91_plasma-mobile.gschema.override" -t "${pkgdir}/usr/share/glib-2.0/schemas"
install -Dm644 "${srcdir}/plasmamobile.json" -t "${pkgdir}/usr/share/maliit/keyboard2/devices/"
install -Dm644 "${srcdir}/settings.ini" -t "${pkgdir}/etc/skel/.config/gtk-3.0/"
...application-blacklist Folder: /etc/xdg Lists applications that are not shown in the Application view. e.g.: Code: blacklist=cuttlefish,org.kde.plasma.themeexplorer,org.k ...kde-tweaks.sh Folder: /etc/profile.d/ Code: # This makes Kirigami apps go smoother such as Angelfish.
export KIRIGAMI_LOWPOWER_HARDWARE=1
# Most pure GTK3/Qt apps use wayland by default, but some,
# like Firefox, need the backend to be explicitely selected.
export MOZ_ENABLE_WAYLAND=1kdeglobals Folder: /etc/xdg/ Code: [General]
BrowserApplication[$e]=!angelfish
[KDE]
LookAndFeelPackage=org.kde.plasma.phonekdewallet.kwl and kdewallet.alt No idea what these package do. For now I skip these. Kwallet seems to work anyway. kscreenlockerrc Folder: /etc/xdg/ I have not installed this yet. Code: [Daemon]
LockOnStart=truekwinrc Folder: /etc/xdg/ Here is a mix of the KDE Plasma Mobile and Danctnix settings: Code: [Plugins]
# Blur is far too slow for many mobile devices, don't have it enabled by default
blurEnabled=false
[Wayland]
InputMethod[$e]=/usr/share/applications/com.github.maliit.keyboard.desktop
VirtualKeyboardEnabled=true
# This is here for legacy purposes since look-and-feel packages don't have an upgrade path
# If the device came installed with Plasma 5.26 or newer, then this is not needed
# Edit: Commented out as not needed for the PineTab2 (starts with Plasma 5.27)
#[org.kde.kdecoration2]
#NoPlugin=trueplasma-mobile-settings.install Not quite sure what this does. Activate the settings after the install ? plasmamobile.json In /usr/share/maliit/keyboard2/devices/ With this file you can change the look of the Maliit virtual keyboard that is used as standard in Plasma-mobile. There can be several, quite similar files here. plasmamobile.json is the one that is used. I am not sure where it is configured to use plasmamobile.json. These parameters set the height of the virtual keyboard for portrait and landscape mode. For me these values work: Code: "keyboardHeightPortrait": 0.22,
"keyboardHeightLandscape": 0.35,powerdevil.hook Folder: /usr/share/libalpm/hooks/ Code: [Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/lib/org_kde_powerdevil
[Action]
Description = Enhance Powerdevil privileges for mobile usage ...
When = PostTransaction
NeedsTargets
Exec = /bin/sh -c 'setcap cap_wake_alarm+ep /usr/lib/org_kde_powerdevil'settings.ini Folder: ]/etc/skel/.config/gtk-3.0/ Some GTK settings Code: [Settings]
gtk-application-prefer-dark-theme=false
gtk-button-images=1
gtk-cursor-theme-name=breeze_cursors
gtk-fallback-icon-theme=Adwaita
gtk-font-name=Noto Sans Regular 10
gtk-icon-theme-name=breeze
gtk-menu-images=1
gtk-primary-button-warps-slider=0
gtk-theme-name=Breeze
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZstartkderc Folder: /etc/xdg/ Code: [General]
systemdBoot=trueIf you find more config files or setting, please let me know. |