Commit graph

431 commits

Author SHA1 Message Date
Maxim Karasev
f7698e4a25
Move operating system detection to sxmo_common
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-05 10:07:27 +02:00
Maxim Karasev
2e965453c1
Add USB Hotspot
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-09-05 10:04:45 +02:00
Stacy Harper
a5799bf351
Add a check before toggeling wm
Currently on 1.5.1, sway is not installed nor setted up. This WM toggle
entry cause a tty soft lock !

This fix this with a very too simple check but that will prevent this
case.
2021-09-04 10:44:02 +02:00
Stacy Harper
f9976df021 Prevent already existing modifiers to prevent view change
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:57:29 +02:00
Stacy Harper
2e6ce5c810 Fix layout dwm regression
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-01 18:57:22 +02:00
baroque
5b705dc91b
reduce notification spam in volume/brightness
Added a second parameter to notifications (actually a first, "app-name"), so they can be *grouped* when there is more than one, reducing the clutter on the screen, using the mako config parameter " group-by=app-name "

with proper quotes (i hope), case and cute icon ;)

added "group-by = app-name" directive in mako config

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 20:45:42 +02:00
Maxim Karasev
2c4da8fa0b
Make led blink more noticable
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 19:57:37 +02:00
Maxim Karasev
e4cc9a90a2
Use type:touch instead of DEVICE in swayinputevent in sxmo_wm
This fixes handling input with locked screen on non-pinephone devices.

I think really nobody would connect second touchscreen to a phone, so we
can assume there's only one we need.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 19:55:31 +02:00
Maxim Karasev
905b69ebf1
Make inputhandler execute command even if blinkled failed
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:52:30 +02:00
Maxim Karasev
1e20a2223b
Rename sxmo_setpineled.sh to sxmo_setled.sh, add bq-paella support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:52:30 +02:00
Maxim Karasev
85e18743bf
Clean up sway config and add BQ Aquaris X5 support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:42:36 +02:00
baroque
8f900c29f8 moved flashlight to main menu, out of "configuration" (that is crowded already)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:26:13 +02:00
baroque
80c656f3ad added Marble in the apps.
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-30 22:25:58 +02:00
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
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
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
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
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
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
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
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
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
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
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
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
Maarten van Gompel
369f945dd9 wake only on cronjobs that go through sxmo_rtcwake.sh 2021-07-30 18:13:16 +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
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
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
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