Commit graph

690 commits

Author SHA1 Message Date
baroque
9e058e546d added || pkill sway after pkill dwm in "logout"
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:25:53 +02:00
Stacy Harper
f86cc46d03 Add a bemenu control mode to access bemenu control with buttons
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:22:43 +02:00
Maxim Karasev
d430cce8ff
Fix non-eg25 modems in modemmonitortoggle
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:11:10 +02:00
Maxim Karasev
2f6d84a857
Add sudo permissions needed for modemmanagertoggle
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:11:10 +02:00
Sam Bowlby
657fbd85ba
added new appmenu items; tests for wm for some apps
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-30 08:04:20 +02:00
Sam Bowlby
ac34711bc3
fixed appmenu for Foot shortcuts
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 15:06:34 +02:00
Maxim Karasev
2f0eb4ffe6
Drop "BATTERY_DEVICE" property in deviceprofiles
Isn't needed anymore as we now have reliable and universal battery
autodetection.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 13:59:15 +02:00
Maxim Karasev
6c161a11ca
Reliably autodetect battery device in statusbar
Wireless devices have "Wireless" type, so we search for nodes with type
"Battery". We also may handle wireless devices that way, if anyone needs
that.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-29 13:59:15 +02:00
Stacy Harper
df11b22b51
Add no spacing to bemenu 2021-08-28 09:31:19 +02:00
Maxim Karasev
1a1f40cc81
Change shebang to '/usr/bin/env sh' in sxmo_workspace.sh
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-27 22:45:19 +02:00
Stacy Harper
56f5658cc9 Larger bemenu cause keyboard scale correctly on landscape
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-27 11:12:59 +02:00
Martin Vahlensieck
8cb2cd43ec Replace tabs with spaces to line up usage
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-27 11:11:36 +02:00
Maarten van Gompel
d5139e4393
increased default font size for bemenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-27 07:37:41 +02:00
Stacy Harper
390a59c318 Fix sxmo_modemcall recent regressions
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 21:41:54 +02:00
Stacy Harper
103a6612f3 Fix autorotation script
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 20:42:51 +02:00
Stacy Harper
a1a6c3eb43 Set minimum brightness to 5%
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:40:47 +02:00
Stacy Harper
b94c16540f Switch wm without rebooting
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-26 12:39:00 +02:00
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