Commit graph

390 commits

Author SHA1 Message Date
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
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
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
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
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
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
Maarten van Gompel
462c0e58d5 also use new hold-pressed swipes for brightness and volume controls (top respective left edge) 2021-03-27 23:26:45 +01:00
Maarten van Gompel
a4f2c55af5 increasing gesture sensitivity (smaller distance threshold) 2021-03-27 23:26:45 +01:00
Maarten van Gompel
55f473389c Implemented scroll gesture using new lisgd "pressed" action mode 2021-03-27 23:26:45 +01:00
Stacy Harper
568eac7dd3 Add a dsubmenu to reply/call on SMS windows
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 23:22:40 +01:00
Stacy Harper
18009c8378 Fix status bar icon spaces
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 23:06:46 +01:00
Julian P Samaroo
cf876823fb Add scan/pair to BT menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 18:11:17 +01:00
Stacy Harper
95ac330d0b Add a simple bluetooth menu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 14:38:14 +01:00
Stacy Harper
3bb3fb6094 Use less as sms pager to allow scrollback
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 14:15:21 +01:00
Stacy Harper
cc8dc37015 Add a weechat appmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-27 11:14:37 +01:00
Stacy Harper
811ea5bd5d Add a contact menu to manage them
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-25 22:07:06 +01:00
Stacy Harper
b574ff2f93 Do not close svkbd if it was already open before dmenu
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-24 21:40:02 +01:00
Stacy Harper
a604dab958 fix a bug with busybox pidof
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-24 21:40:02 +01:00
Maxim Karasev
ecacc3ae8a autodetect modem ifname
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-22 21:14:04 +01:00
Maarten van Gompel
c043c50175 failed attempt to fix shellcheck broke script, reverting 2021-03-22 20:06:48 +01:00
Maarten van Gompel
5f45d8117d changed vim quit option to 'quit without saving' 2021-03-22 19:55:07 +01:00
Maarten van Gompel
1145abb014 use 2-finger swipe down to close window, 3 to kill window 2021-03-22 19:49:48 +01:00
Maarten van Gompel
db1c075973 removed hardcoded font 2021-03-22 19:49:48 +01:00
Maarten van Gompel
a6043ad80d use icons in status bar 2021-03-21 17:00:30 +01:00
Maarten van Gompel
010e919d3b fix: path should be absolute 2021-03-18 19:21:41 +01:00
Stacy Harper
cee4917360 Do not truncate stderr file output
Another script would use sxmo_modemsendsms and maybe put its error
somewhere. We should not truncate stderr as it would break those
scripts.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-17 22:32:29 +01:00
Stacy Harper
7cb6dcb64b Add kakoune as vim compatible app menu options
Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-03-17 22:30:57 +01:00