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
#3
I just found your thread while looking for something else, but I am using the same on Droidian with a keyboard-slider phone, made a quick video to demonstrate it: https://youtu.be/WkxzsoP8BvI?t=154

However, have you found a way to make apps open from Sway open in Sway? This only works for a fraction of apps, most of them will still open as new Phosh windows instead of within Sway, or won't open at all. Still really useful for TUI apps, but I would like to be able to show 100% of apps as Sway windows.
  Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)