User:⬡hexa

From postmarketOS Wiki

Hello! I'm Edward (Jones), a thoughtful, more in-tro-verted vegetarian gentleman.

  • I have been living from 2002.
  • I studied for GCSEs in 2018 and my life changed with MH problems since that time.

TTYEscape HKDM configuration:

sudo mv -T /etc/hkdm/config.d/ttyescape.toml ~/Documents/ttyescape-hkdm.toml
sudo cp -s ~/Documents/ttyescape-hkdm.toml /etc/hkdm/config.d/ttyescape.toml
sudo $EDITOR ~/Documents/ttyescape-hkdm.toml
sudo rc-service hkdm restart

My ttyescape-hkdm.toml:

[[events]]
name = "increment"
event_type = "EV_KEY"
key_state = "released"
keys = ["KEY_VOLUMEDOWN", "KEY_VOLUMEUP"]
command = "/usr/bin/togglevt.sh inc"

[[events]]                                                                                name = "start"
event_type = "EV_KEY"
key_state = "pressed"
keys = ["KEY_VOLUMEUP"]
command = "/usr/bin/togglevt.sh start"
[[events]]
name = "reset"                                                                            event_type = "EV_KEY"
key_state = "released"
keys = ["KEY_VOLUMEUP"]
command = "/usr/bin/togglevt.sh reset"


My tinydm (DM service) "user-session.desktop"

[Desktop Entry]
Name=Sxmo Sway (Wayland) session
Comment=Sxmo session in Sway WM (Wayland UI).
Exec=/usr/bin/sh -c "DISPLAY=:0.0 gtk-launch /usr/share/wayland-sessions/swmo.desktop;"
Keywords=launch;
  1. sudo tinydm-unset-session [default session file]
  2. sudo tinydm-set-session -f -s ~/Documents/user-session.desktop
  3. sudo service tinydm -v restart
  4. rc-status

I have worked out that Wayland uses Super (Windows or Cmd) key [❖] with mouse 🖱🖲 to move an app window.

To have a display:

A display server using the Wayland protocol is called a compositor.

  • Not to use tinyDisplayManager - not official support for Sway, a tiling Wayland compositor.
  • Shell TTY Auto-login to auto-start Sxmo graphical interface, with the Wayland compositor Sway.
  1. gtk-launch /usr/share/wayland-sessions/swmo.desktop

Put Waydroid or Android, on Sway, in postmarketOS system on my FairPhone.

ej-fairphone-4:~$ sudo apk del tinydm                                                     [sudo] password for user: [...]
World updated, but the following packages are not removed due to:
  tinydm: postmarketos-ui-sxmo

After this operation, 0 B of additional disk space will be used.
OK: 3229 MiB in 1283 packages
ej-fairphone-4:~$
ej-fairphone-4:~$ sudo tinydm-unset-session -f -s ~/Documents/user-session.desktop
ej-fairphone-4:~$ sudo tinydm-unset-session /var/lib/tinydm/default-session.desktop
ej-fairphone-4:~$ sudo rc-update del tinydm boot
 * service tinydm deleted from runlevel boot
ej-fairphone-4:~$ 
ej-fairphone-4:~$ sudo $EDITOR ~/Documents/user-autologin

#!/bin/sh
exec login -f user

ej-fairphone-4:~$ sudo chmod +x ~/Documents/user-autologin
ej-fairphone-4:~$ sudo $EDITOR /etc/inittab

(Alpine Linux Wiki > TTY_Autologin > #Editing_/etc/inittab, with custom login /home/ [username] /Documents/user-autologin)

OpenRC services

 sudo rc-update add polkit boot
 sudo rc-update add hkdm boot
 sudo rc-update add tinydm boot

*

Alpine Linux TTY (Virtual Terminal) setup page

Making your own auto-login wrapper script — TTY Autologin - Alpine Linux