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


Messages In This Thread
Using sway along phosh - by fdlamotte - 01-23-2021, 02:55 PM
RE: Using sway along phosh - by fdlamotte - 01-24-2021, 02:23 AM
RE: Using sway along phosh - by kabouik - 05-11-2023, 04:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto start application on Phosh login Zebulon Walton 8 3,372 10-14-2023, 06:29 AM
Last Post: alaraajavamma
  Mobian + phosh firefox ublock and other overlays display bugs tuxcall 3 1,791 02-24-2023, 12:11 AM
Last Post: nexion
  [Fixed] Phosh crashes frequently after latest updates arno_nuehm 20 8,825 10-14-2022, 05:38 PM
Last Post: Krafter
Exclamation Impossible to minimize a window with Phosh anonymous 7 3,381 08-18-2022, 01:53 PM
Last Post: dante404
  Phosh 0.20 beta on mobian Anthony1224 1 1,630 06-11-2022, 06:29 AM
Last Post: Zebulon Walton
  Transparent Phosh App Grid? arno_nuehm 1 1,757 03-15-2022, 06:00 AM
Last Post: dante404
  Phosh modem on/off effectiveness? Zebulon Walton 0 983 01-24-2022, 09:21 AM
Last Post: Zebulon Walton
  Updating Phosh from Gitlab ragreenburg 2 2,342 10-07-2021, 08:35 AM
Last Post: ragreenburg
  Seems like Phosh is in downgrade mode... ryo 17 16,220 06-01-2021, 06:22 PM
Last Post: ryo
  Can't update OS Mobian Phosh Gon 5 4,578 05-23-2021, 10:52 PM
Last Post: pajux

Forum Jump:


Users browsing this thread: 1 Guest(s)