Using sway along phosh
#1
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

Regards,
--
FdL
  Reply
#2
phosh can also be run from sway or any wm/compositor ... and its very neat as convergent desktop
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Seems like Phosh is in downgrade mode... ryo 17 4,825 06-01-2021, 06:22 PM
Last Post: ryo
  Can't update OS Mobian Phosh Gon 5 958 05-23-2021, 10:52 PM
Last Post: pajux
  Enabling nighlight in mobian phosh joz_mak 2 1,887 09-18-2020, 06:11 PM
Last Post: joz_mak
  debian+phosh running on PinePhone a-wai 539 221,523 09-03-2020, 08:27 AM
Last Post: thisishuey
  Xwayland on Phosh works? paju1986 1 1,207 08-03-2020, 08:06 AM
Last Post: wibble
  Camera test on Phosh Luke 4 4,119 05-26-2020, 02:44 AM
Last Post: a-wai

Forum Jump:


Users browsing this thread: 1 Guest(s)