Using sway along phosh
As a sway user on desktop, I've been trying to use it on my pinephone. One of the shortcomings is that on mobian, most of the phone related functions are (well) integrated into phosh and I didn't want to loose that. 

Sway use on the pinephone is mostly interesting in docked mode or when a keyboard is plugged in ...

I've identified 3 ways to achieve sway integration 

 1 - run sway on a tty
 2 - run sway inside phosh
 3 - replace phoc with sway as phosh compositor

1 is trivial, you switch to a tty (Ctrl+Alt+F1 on the keyboard), log in and launch sway. It works well but is not really integrated. For instance, when you receive a call you need to switch to phosh terminal, and so I quickly abandoned this solution

3 seems to need some work and might not be feasible due to the way phoc and phosh seems to be tight together through D-Bus things ...

2 has always had my preference, and I didn't know why it never worked when I tried it, since as sway can be used as a wayland client, it should be as easy as typing sway in a terminal. Today I gave it another try and figured out what was wrong. Before launching phoc it restricts WLR_BACKENDS to drm and libinput. And sway was using this variable. So to run sway this way all you have to do is type WLR_BACKENDS=wayland sway ... and it magically works.

Then to use it fullscreen I associated toggle-fullscreen command to Alt+F11

There are still some issues, one is that sway don't get the good keys from the squeekboard that runs in phosh. But this way, you can keep a full desktop in a corner, pop it up when connected to a screen or just to a keyboard, and I find this quite interesting ...

Hope it will be of some help to some of you

phosh can also be run from sway or any wm/compositor ... and its very neat as convergent desktop

Possibly Related Threads…
Thread Author Replies Views Last Post
  Transparent Phosh App Grid? arno_nuehm 2 916 11-01-2022, 10:27 PM
Last Post: Amymunoz
  [Fixed] Phosh crashes frequently after latest updates arno_nuehm 20 2,562 10-14-2022, 05:38 PM
Last Post: Krafter
  Auto start application on Phosh login Zebulon Walton 6 576 09-05-2022, 06:27 PM
Last Post: Zebulon Walton
Exclamation Impossible to minimize a window with Phosh anonymous 7 773 08-18-2022, 01:53 PM
Last Post: dante404
  Phosh 0.20 beta on mobian Anthony1224 1 782 06-11-2022, 06:29 AM
Last Post: Zebulon Walton
  Phosh modem on/off effectiveness? Zebulon Walton 0 530 01-24-2022, 09:21 AM
Last Post: Zebulon Walton
  Updating Phosh from Gitlab ragreenburg 2 1,376 10-07-2021, 08:35 AM
Last Post: ragreenburg
  Seems like Phosh is in downgrade mode... ryo 17 10,546 06-01-2021, 06:22 PM
Last Post: ryo
  Can't update OS Mobian Phosh Gon 5 3,059 05-23-2021, 10:52 PM
Last Post: pajux
  Enabling nighlight in mobian phosh joz_mak 2 3,318 09-18-2020, 06:11 PM
Last Post: joz_mak

Forum Jump:

Users browsing this thread: 1 Guest(s)