Difference between revisions of "Projects:PinePhone Daily Driver with Sway"
| Line 63: | Line 63: | ||
## shortcut to enter suspend | ## shortcut to enter suspend | ||
##* {{IconInfo}} {{code|1=rtcwake -m mem -s 10}} ... {{IconFail}} does not resume operation after issuing ''s2idle'' | ##* {{IconInfo}} {{code|1=rtcwake -m mem -s 10}} ... {{IconFail}} does not resume operation after issuing ''s2idle'' | ||
| + | # Core UI | ||
| + | #* Display rotation | ||
| + | #** Vertical waybar - hide/show based on output transformation/waybar-window size [https://github.com/Alexays/Waybar/search?q=hidden&unscoped_q=hidden] | ||
# Install and test essential apps & workflows | # Install and test essential apps & workflows | ||
## {{IconDone}} Terminal: [[termite]] | ## {{IconDone}} Terminal: [[termite]] | ||
Revision as of 21:43, 14 June 2020
Implementation of Projects:PinePhone Daily Driver using SwayWM.
Contents
Components
- postmarketOS with postmarketos-ui-sway
- pinephone-toolkit
- System packages: bemenu networkmanager termite termite-terminfo bluez squeekboard
- App packages: vim firefox galculator thunderbird gajim audacious audacious-plugins htop
Setup
Configs are stored in a repository.
TODO: Create a postmarketOS package? [1]
Power Management
- backlight off and CPU sleep when screen is locked via power button
- handled via PinePhone-Toolkit
sudo
Add NOPASSWD for shutdown and reboot to wheel group:
visudo%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff,/sbin/reboot
elogind
Power key needs to be locked from elogind, otherwise it would shutdown the system. This way as long as the UI session is running, power button is ignored by elogind. Once the session ends and we're back in the login screen, the power button is again able to shutdown the system.
/usr/share/wayland-sessions/sway.desktop...
Exec=elogind-inhibit --what=handle-power-key --mode=block dbus-run-session /usr/bin/sway
...
(included in the POC repository)
SwayWM
(config included in the POC repository)
waybar
(config included in the POC repository)
- Pick a theme! Mine is: [2]
- [i] For clock module, don't forget to set the locale and timezone parameters, otherwise nothing will show up.
lisgd
sxmo#lisgd reconfigured through command line parameters in SwayWM config.
(config included in the POC repository)
PinePhone-Toolkit
Used mainly in SwayWM config.
Bluetooth
- Enable the service on boot:
rc-update add bluetooth - Enable the controller by default:
/etc/bluetooth/main.conf[Policy]
AutoEnable=true
TODOs
TODO: Complete these TODOs!
- power saving (so that I can leave the battery in the device when I'm not using it)
- hibernation / suspend command - needs crust support in pmos: issue 550
- shortcut to enter suspend
- [i]
rtcwake -m mem -s 10... ☓ does not resume operation after issuing s2idle
- [i]
- Core UI
- Display rotation
- Vertical waybar - hide/show based on output transformation/waybar-window size [3]
- Display rotation
- Install and test essential apps & workflows
- ☑ Terminal: termite
- ☆ Web browser: Firefox
- Mostly works. Portrait mode doesn't fit perfectly. Clunky UI, some menus overflow.
- ☆ Passwords manager: KeepassXC)
- Doesn't support such a small screen. Modify and submit a PR?
- ☐ Personal Information Manager with WebDAV sync support for calendar, contacts
- ☐ Email client: thunderbird
- Doesn't support such a small screen. Modify and submit a PR?
- ☑ Calculator: galculator
- ☐ Alarm: ?
- ☐ IM clients
- XMPP: ?
- Matrix: ?
- Slack: ?
- ☆ Music player: audacious
- A few problems with the small screen. Otherwise seems to work.
- ☐ Camera & Video recorder: ?
- ☐ VPN client: NetworkManager?
- Support for non-essential apps & workflows
- ☐ RSS client: ?
- ☐ OTP generator: ?
- ☐ Ebook reader: ?
- ☐ Weather forecast: ?
- ☐ Maps, navigation: ?
- ☐ Calls & Texts: ?
- ☐ Samba share mounted from NAS
- CIFS is not supported by the kernel right now
- Tweaking
- non-essential userspace apps
- ...
- cool stuff
- presentation mode [5]
- night mode: flux / nightlight / redshift / ...
Rejected solutions
under Wayland
- libinput-gestures
- twofing
- onboard virtual keyboard