I am glad you like my contributions. I am motivated to contribute something to make a compact device use case with a touchscreen mature in Linux. This was one of the things that I wanted to do with the Framework Laptop 12.
There are the following 2 fun challenges in the Framework Laptop 12’s tablet mode with Sway, as far as I know.
Screen lock with virtual keyboard
This topic is discussed at the What Desktop Environment are you using with your FW12? - #14 by junaruga. Maybe it is possible by using the gtklock, gtklock-virtkb-module, or sway-lock-mobile mentioned on the linked thread. However, we may need some contributions to the swaylock or gtklock project to make the use case of the virtual keyboard for screen lock more useful and consumable.
Gestures on touchscreen
Sway has the bindgesture syntax. However, it only supports a touchpad, and it doesn’t support a touchscreen for now. There are the following issue tickets for that.
- Touch screen gestures · Issue #7847 · swaywm/sway · GitHub
- Touch bindings · Issue #1904 · swaywm/sway · GitHub
For example, the following sway config to enable 3-finger swipe up/down to show/hide the virtual keyboard wvkbd only works for touchpad gestures. For the ~/script/control_wvkbd.sh, you can check my framework-laptop-config repository.
# Gesture to show/hide the virtual keyboard wvkvd.
# This setting is only for touchpad. The touchscreen is not supported.
# https://github.com/swaywm/sway/issues/1904
bindgesture swipe:3:up exec ~/script/control_wvkbd.sh SIGUSR2
bindgesture swipe:3:down exec ~/script/control_wvkbd.sh SIGUSR1
Someone reported the gesture app lisgd worked for the touchscreen. So, I plan to try the app.
I updated the following wiki page, adding the above topics.