Commit graph

585 commits

Author SHA1 Message Date
Stacy Harper
df73a9af1c Simplify and prevent killing existing mpv instances
Instead of the trigger file and killing mpv, we loop the ring
indefinitely until killed. Maybe we should still got a guardrail but I
still never needed it (modemmonitor would trigger missed_call late or
later ?)

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-09 23:25:27 +02:00
Stacy Harper
65270eaea8 Prevent starting multiple modemmonitor on logout/login
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-09 23:22:21 +02:00
Stacy Harper
de0697a83c Fix sxmo rotate left
lisgd doesnt care about negative rotations. Rotating left is 3 rotation
rights.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-09 22:56:20 +02:00
Sam Bowlby
bf212e1b7b add Profanity to app menu; add System Menu to Network menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 20:47:27 +02:00
Maarten van Gompel
e220a30e15 added some more apps to the app menu 2021-04-05 17:18:52 +02:00
Maarten van Gompel
2d1180389f fixed whitespace problem after last patch 2021-04-05 16:43:23 +02:00
Sam Bowlby
bcde43d369 add VPN/Wireguard symbol to statusbar
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 16:41:54 +02:00
Sam Bowlby
83d27eec2d add VPN/Wireguard symbol to statusbar
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 16:39:33 +02:00
Stacy Harper
c6764c2a0d Fix an issue when number was composed by multiple words
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 12:39:39 +02:00
Maarten van Gompel
6dc18e22a3 fixed minor shellcheck issues 2021-04-05 12:08:22 +02:00
Stacy Harper
f9b96d2d28 Update modem status state on errors
If modemmonitor crash for some reason, status bar is not updated. The
reason is that statusbar check if modemmonitor is running, which it is
when trying to shutdown itself.

We change the way modemmonitor is detected using a single modem state
file. If the file is not present, then the monitor is considered not
running.

This single file permit to add more state in the future, without adding
any more files.

We also add a sleep 1, look like it is required to have instand status
bar update.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 12:04:34 +02:00
Maarten van Gompel
d2d06ef65a Revert "Workaround for reliable incoming calls waking up from CRUST", no longer needed with eg25-manager and caused ModemManager restart issues
This reverts commit bcf4f5c249.
2021-04-05 12:01:32 +02:00
Stacy Harper
262418637f Rework of the sxmo_modemtext with benefit
* Draft files are assigned to each number:

Stored here ".local/share/modem/+33666666666/draft.txt"
We automatically edit this single file, making crash or unexpected
edition issue to leave intact saved draft.

* Simplification of some logics

Having a known draft file instead of using a TEXT var simplify lots
of things

* EDITOR is not run in a subshell

Some editors as kakoune got issues with that. Futhermore, it will be
usefull for some other development as making all menu ssh mode
compatible

* Remove modem check

As we now got draft, why do we care if modem is up or down ?

* Display the contact name instead of it number in the conversation

Or use "Unknown Number (+337798676)"

* Unify display message notif adding possibilities to bypass the
main menu

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-05 12:00:49 +02:00
Stacy Harper
016363dd57 Move no before yes to confirm
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:54 +02:00
Stacy Harper
7c7496c06f Add icons to the contactmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:24 +02:00
Stacy Harper
82301e6954 Add shortcut to sms or call a contact from the contactmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-04-04 20:56:13 +02:00
Maarten van Gompel
8959fa50ac fixed top right hotcorner #229 2021-04-02 17:45:52 +02:00
Maarten van Gompel
b37a1fb8b5 Fixed anbox start command #230 2021-04-02 17:38:03 +02:00
Anjandev Momi
47ef03f48c
change dino to scale=1 because of global dpi scaling
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2021-04-01 15:41:01 -04:00
Maarten van Gompel
da3dba4bfb minor fixes to satisfy shellcheck 2021-03-31 20:14:53 +02:00
Maarten van Gompel
ae3e1edd9c kill existing dmenu prior to asking SIM PIN 2021-03-31 17:05:42 +02:00
Stacy Harper
ceaea60141 Add some gemini apps
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-31 13:39:09 +02:00
Stacy Harper
fac35e8b6c Add some scroll shortcuts to weechat
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-31 13:37:39 +02:00
Maarten van Gompel
81385c228d we expect people to upgrade with apk upgrade -a (quoting ollieparanoid from pmos) 2021-03-31 11:48:32 +02:00
Maarten van Gompel
cdadb27884 implemented simple unlock sim script using dmenu 2021-03-31 11:42:21 +02:00
Maarten van Gompel
c5c8f3d514 Modem monitor now tracks the modem for state changes and shows the state in the status bar 2021-03-31 11:42:21 +02:00
Maarten van Gompel
6951639886 automatically turn modemmanager on in xinit template 2021-03-31 11:37:49 +02:00
Maarten van Gompel
943199aef8 set SXMO_LOCK_SCREEN_OFF=1 in xinit template 2021-03-31 11:37:39 +02:00
Maarten van Gompel
c19de15d98 increased volume 2021-03-31 11:37:32 +02:00
Maarten van Gompel
4dfee1cc8c default hook updatE: vibrate the phone on ringing (once) 2021-03-30 22:55:55 +02:00
Stacy Harper
dbc3b1ab50 Allow the sendnewtextmenu to be used with a number as arg
This allow the "Reply" appmenu shortcut to open a new compose message
directly.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-30 21:14:30 +02:00
Maarten van Gompel
856ba23cde ensure clickclack and svkbd are killed prior to suspending (may fix a sound stuttering problem) 2021-03-30 21:02:42 +02:00
Maarten van Gompel
bec7106317 Implement default hooks for ringing and incoming texts, playing audio 2021-03-30 21:02:42 +02:00
Maarten van Gompel
2188ed15ea forward parameters to lisgdstart hook (as suggeested by ~dinkocar in #222) 2021-03-30 20:36:02 +02:00
Maarten van Gompel
95683bdc0c make notifications not cover the status bar (suggested by ~dinkocar in #220) 2021-03-30 19:11:09 +02:00
Stacy Harper
18361bd681 Revert "Use less as sms pager to allow scrollback"
This reverts commit 3bb3fb6094.

We cannot use this special less argument as it is not busybox less
compatible.

I add busybox aliases to not reproduce the error in the future.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-30 19:08:17 +02:00
Maarten van Gompel
cddec4205d removed the startup tune in the xinit template 2021-03-30 19:05:18 +02:00
Maarten van Gompel
34cf0fd0fc fixed clickclack vibration flag in xinit template 2021-03-30 19:04:07 +02:00
Stacy Harper
4bf92406d0 Try to make bluetooth menu connection more reliable
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-29 20:29:22 +02:00
Maarten van Gompel
fa0d9b6e2d fixed 24h conky 2021-03-29 20:21:27 +02:00
Maarten van Gompel
12d7ae0fbb minor fix in xinit template 2021-03-29 19:52:41 +02:00
Maarten van Gompel
c324aed044 fix for firefox as default browser in template 2021-03-29 16:27:54 +02:00
Maarten van Gompel
086c103eb2 added an edit configuration option to the menu to edit the user's xinit 2021-03-29 14:29:23 +02:00
Maarten van Gompel
5f82699014 Added a more detailed xinit_template and added some default media resources (wallpaper,startup tune,keypress sound) that are preconfigured in the template 2021-03-29 14:00:09 +02:00
Stacy Harper
7bbb56723f Move conky in an auto configured user xinit
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-29 11:41:51 +02:00
Maarten van Gompel
e0cff05b0c compatibility with megapixels 0.16: power button takes a picture instead of toggling the keyboard, only when megapixels is active 2021-03-28 22:15:25 +02:00
Maarten van Gompel
c4caf932ff fixing the powerbutton script 2021-03-28 21:28:42 +02:00
Maarten van Gompel
36535ebfe3 added another layer between the power button press and the keyboard script, with option to override using a hook 2021-03-28 21:25:43 +02:00
Stacy Harper
325fdf76ec Do not run SHELL in login mode
As this mode is used on console and SSH login

(this reverts 8fc92c55d5)

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-28 20:53:34 +02:00
Maarten van Gompel
20a8236c28 Implemented environment variables to set the lisgd threshold (requires latest lisgd) 2021-03-28 20:52:22 +02:00