Commit graph

673 commits

Author SHA1 Message Date
Stacy Harper
c014c6bb92 Load user .profile after setting up default values
This allow the user .profile to switch case depending on the default
values. It is mandatory by example to setup custom wvkbd or svkbd,
depending on the wm we use.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:38:53 +02:00
Maarten van Gompel
1ca8672473 minor syntax fix, quote var 2021-08-25 23:35:35 +02:00
Stacy Harper
829f8241c7
Add Arch handlers to manager daemons in sxmo_modemmonitortoggle 2021-08-25 21:51:02 +02:00
Stacy Harper
af733083c0
Make sxmo_modemmonitortoggle reset ospotent 2021-08-25 19:29:11 +02:00
Peter John Hartman (wart)
a8693545a4
Dialer menu should be with keyboard (so you can enter number).
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-25 19:29:10 +02:00
Peter John Hartman (wart)
b46a347d85
if the keyboard is open, 7 lines in horizontal and 23 lines in vertical is too much in order to enter data. This especially affects the Dialer and Text menus. I lowered the numbers.
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-25 19:29:10 +02:00
Stacy Harper
9f6af8abcc
Fix appmenu.sh in ssh mode
We had issue in ssh mode and this new bemenu curses mode.

No issue on other sxmo menu that use successive bemnu but this appmenu
loop displaying some ~F char when you select a subentry.

I refactorised a little bit this script and now it works well. I'm not
stil not sure of what was causing this.

By the way I changed some echo for printf. I also added the wrap
argument for bemenu in ssh mode.
2021-08-25 13:29:59 +02:00
Maarten van Gompel
64e7140501 shellcheck fixes 2021-08-25 13:01:24 +02:00
Stacy Harper
f3511b149a Remove now unused screen detection for lisgd
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-25 12:56:11 +02:00
Maarten van Gompel
a9ac024fe9 use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu 2021-08-24 23:11:58 +02:00
Maarten van Gompel
088fd0b593 fixed typo in dmenu option 2021-08-24 22:29:00 +02:00
Stacy Harper
28172aa675 Prevent more multikey hold chains
I enlarge the sleep on overflow by 2. But I make this check only
applicable for holded buttons.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-24 22:20:06 +02:00
Stacy Harper
8d2afc8e14 Simplify bemenu scroll up
The size was perfect to fit between keyboard and the status bar but then
it was hard to trigger page up without triggering lisgd gesture.

Make bemenu a little tinier to simplify this

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-24 22:18:29 +02:00
Stacy Harper
6050db3e38 More complete sxmo_migrate.sh
This add some config file to the check list. It also handle ssh and none
mode to check all files.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-24 22:16:11 +02:00
Stacy Harper
98c7d1f2d4 Add some missing sway keyboard inputs
This is maily for docked mode but those bind are required.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-24 22:12:51 +02:00
Stacy Harper
fbaa9155bc
Display the idle entry menu only in sway 2021-08-24 13:07:12 +02:00
Stacy Harper
fe34795f86
Allow sxmo_idle config menu to disable an kind 2021-08-24 13:07:11 +02:00
Stacy Harper
62e5dd146b
Fix the dmenu autoclosing on ended call.
Oops.
2021-08-23 18:29:12 +02:00
Stacy Harper
1e09c9c452
Use environment variable to handle the screenlock with button
We was not using them for this action.
2021-08-23 14:01:25 +02:00
Sam Bowlby
b65956b136
fix detection of screen dimensions
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-23 13:53:28 +02:00
Stacy Harper
5a769d3fa8
Fix swmo shellcheck issues 2021-08-22 14:17:47 +02:00
Stacy Harper
8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00
Stacy Harper
b1403f983e Allow the inputhandler hook to override locked state inputs actions
The user may want to change completly the buttons actions in normal and
locked mode. This allow this !

Btw, we also provide default inputhandler actions (as example) to help
the user to build their own.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:22:38 +02:00
Stacy Harper
fe519a80b3 Make sxmo tinydm compatible
Install tinydm:

	sudo apk add tinydm tinydm-openrc

To configure SXMO as the used session use :

	sudo tinydm-set-session -f -s /usr/share/xsessions/sxmo.desktop

Also ensure your user id is used in /etc/conf.d/tinydm

	$ whoami | xargs getent passwd
	stacy10000:10000:Linux User,,,:/mnt/sd/home/stacy:/bin/bash

	/etc/conf.d/tinydm
	AUTOLOGIN_UID=10000

Then configure the services:

	sudo rc-update del xdm
	sudo rc-update add tinydm

Then reboot.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-08-15 15:53:45 -07:00
Nihal Jere
ce3f2ea319
replace setpineled C program with a shell script
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-11 22:27:28 +02:00
noneofyourbusiness
5ccfeacfac
Update conky and the status bar on wake ups.
Add USR2 signal to unlock hook, remove useless STOP and CONTINUE
Update the bar in the same time.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-04 18:36:31 +02:00
Miles Alan
69fe290dfa xinit_template: Don't set SXMO_LOCK_SCREEN_OFF=1 by default
This should be a better default as users of the previous C screenlock
may expect this funcionality to work ootb / this retains prior defaults.
2021-07-30 23:50:32 -04:00
Maarten van Gompel
369f945dd9 wake only on cronjobs that go through sxmo_rtcwake.sh 2021-07-30 18:13:16 +02:00
Maarten van Gompel
994f4dc1e1 increase retry interval a bit so modem doesn't reset too soon 2021-07-29 23:45:36 +02:00
Miles Alan
9870940de4 sxmo_inputhandler.sh: Switch voldown_two to trigger Super+x (inplacerotate)
Fixes regression where not all clients rotated on doubletapping
voldown key.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-29 22:02:08 +02:00
Maarten van Gompel
b3bbf23e90 kill mpv playback in default presuspend hook
This is an attempt to fix prevent audio stuttering problems when
entering/leaving crust

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-29 21:58:50 +02:00
Stacy Harper
61a138a153 Fix remaining issue with states cause of dangling event files
We also have to remove them on outgoing call. We use find instead of rm
with a wildcard cause wildcard look not expanded here.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-29 21:54:06 +02:00
Stacy Harper
25913ebaf1 Add basic st scroll gesture inputs
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Miles Alan <m@milesalan.com>
2021-07-29 08:13:04 -04:00
Stacy Harper
d4fd25e3e9 Prevent some error states cause of dangling event files
Some event file stay present in some case (ex: .initiated) and this can
lead to issues in futures calls.

We remove dedicated cleanup and now we remove all event file related to
the finish call in once. We do it in incoming call cause sometime
modemnager fail to detect terminated calls.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-25 18:23:49 +02:00
Maarten van Gompel
0d528ff878
fallback to no rtcwake in case of missing mnc rather than having a broken crust
Though we'll ship and install mnc by default, we already someone run
into this, so best make the script a bit more robust.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 18:13:57 +02:00
Maarten van Gompel
09fcfa9894
let sxmo_rtcwake.sh set $DISPLAY if unset so the burden isn't on the user
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 17:54:33 +02:00
Maarten van Gompel
edc48a01d2
ModemMonitor: Periodically check whether the modem is still alive, reset it if not
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 17:28:54 +02:00
Maarten van Gompel
13b29f7139
Added a wifi toggle #290
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 17:03:58 +02:00
Maarten van Gompel
f057593692
write xinit stderr output to xinit.log
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:58:14 +02:00
Maarten van Gompel
2a89aaa4db
make default discard and mute_ring hooks forward to missed_call using sxmo_hooks.sh
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:55:18 +02:00
Maarten van Gompel
47950deece
Makefile cleanup
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:53:13 +02:00
Maarten van Gompel
66174219bf
screenlock: Moved lock / unlock / screenoff hooks after the existing logic and set empty defaults
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:48:12 +02:00
Maarten van Gompel
2b5f2b97e7
if multiple sxmo_rtcwake processes are running, return to crust only when the last one exits
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:48:12 +02:00
Maarten van Gompel
4798717d9d
implemented a --strict mode for sxmo_rtcwake in which it only runs when coming from crust
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:45:21 +02:00
Maarten van Gompel
9a7ca6e369
increased verbosity in postwake and rtcwake + changed blinking from police lights (red+blue) to subtler red+purple
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 16:45:20 +02:00
Stacy Harper
bdccd244c4 Fix sxmo_migrate.sh colorisation
busybox less cannot display colors. As we use the -F arg to stop less if
the page fit in one screen, we can just use more without arguments.

Both behave the same but more god color capabilities.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-25 13:18:52 +02:00
Stacy Harper
6dce18e579 Refactorise a little bit sxmo_migrate.sh
Some code could be deduplicated.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-07-25 13:18:38 +02:00
Stacy Harper
cfa15765e2
Fix some shellchecks issues 2021-07-25 09:55:46 +02:00
Maarten van Gompel
3ff244a3e5
check custom hooks against defaults in sxmo_migrate.sh and allow user to open editor immediately
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 09:13:54 +02:00
Maarten van Gompel
41e66a0164
Restrict dimensions of gtk3 file chooser on phone screens
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-07-25 09:06:49 +02:00