Commit graph

346 commits

Author SHA1 Message Date
Maarten van Gompel
2a07cab638 implemented lookupcontactname() in call/text handler, removes non posix-compliant substitutions 2020-12-09 15:46:21 +01:00
Maarten van Gompel
54f3332dea full contact list (--all) now also includes short/special numbers #104 2020-12-09 15:46:21 +01:00
Maarten van Gompel
4b4bfc851f explicitly delete calls after hangup/termination #134 2020-12-09 15:46:21 +01:00
Maarten van Gompel
06b25c3bc9 Restore audio to original state after finishing a call #133 2020-12-09 15:46:21 +01:00
Maarten van Gompel
4a90d86f56 Sane message when terminating call with unknown number and more verbose output to stderr from modem scripts 2020-12-09 15:46:21 +01:00
Anjandev Momi
fc051045c9 added aerc to app menu 2020-12-09 01:11:04 -05:00
Maarten van Gompel
c421d49503 added calcurse to app menu 2020-12-06 11:59:16 +01:00
Maarten van Gompel
6f2f03517b dino menu entry: case adjustment for consistency 2020-12-06 11:57:41 +01:00
Maarten van Gompel
c554044c41 Revert "sxmo_appmenu: fixed only one userscript appearing in Scripts menu"
This reverts commit 0f9a86dece.
2020-12-06 10:44:56 +01:00
Anjandev Momi
1bf1beae15 add dino (xmpp client) to apps menu 2020-12-05 23:29:09 -05:00
Anjandev Momi
e067fd9ad6 Revert "simplify code to get phone number for incoming calls"
This reverts commit b0bb9ac9fc.

This fixes the issue with modemlog having filled with extra mmcli
output
2020-12-05 23:16:59 -05:00
Maarten van Gompel
995a80c40c Added a shellcheckrc and allowing string replacement in scripts for now (not POSIX compliant) 2020-12-05 12:07:00 +01:00
Daniele Rogora
bcf4f5c249 Workaround for reliable incoming calls waking up from CRUST
Replaced system() call with writefile()

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-05 11:58:31 +01:00
Anjandev Momi
0f9a86dece sxmo_appmenu: fixed only one userscript appearing in Scripts menu
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-12-04 23:49:02 -05:00
Anjandev Momi
abd931d9ce shellcheck fix: use -n instead of ! -z 2020-12-04 23:20:54 -05:00
Maarten van Gompel
031bb9de21 no need for number validation when cancelling dialer 2020-12-04 22:15:58 +01:00
Anjandev Momi
236ab9a343 Do not display text only numbers as options when dialing or composing new texts
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:07:27 +01:00
Anjandev Momi
f149b7e250 updated sxmo_contacts comment with acceptable numbers
Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:00:29 +01:00
Anjandev Momi
741defe781 Fix short phone numbers or phone numbers with text do not appear in scripts
Fixes #106

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:00:29 +01:00
Anjandev Momi
b0bb9ac9fc simplify code to get phone number for incoming calls
This code uses fewer programs and the code now matches the code for
getting phone number of incoming text.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-04 22:00:29 +01:00
Maarten van Gompel
17e3b623bf modemmonitortoggle may take an argument "on" or "off" to force toggling to a desired state
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-12-01 22:47:00 -05:00
Maarten van Gompel
c915de82d8 Force new process group using setgid -f when starting anything that may possibly kill an entire progress group (kill -9 0) #117
This fixes https://todo.sr.ht/~mil/sxmo-tickets/117 and the crashes when
toggling the modem monitor.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-12-01 22:47:00 -05:00
Miles Alan
9aa5c7bf16 Standardize install path for mimeapps.list to use $PREFIX 2020-12-01 17:21:43 -06:00
Reed Wade
fadbe72039 Use mono differencial as default Line Out mode
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-29 12:34:45 +01:00
Anjandev Momi
8b87386006 Fixed user log out when selecting "Close Menu" in dialer
See issue:

https://todo.sr.ht/~mil/sxmo-tickets/117
2020-11-29 02:56:17 -05:00
Anjandev Momi
f2a3ad47cf Added default sxmo applications mimeapps.list 2020-11-28 03:10:51 -05:00
Reed Wade
08b95c6182 sxmo_files now respect user desktop configurations
We use our own implementation of xdg-open that replace the hardcoded
script used in sxmo_files.

We add and will maintain some desktop entries to offer a suckless
experience by default.

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-28 02:39:25 -05:00
Maarten van Gompel
a90f565c12 minor quote fix to satisfy shellcheck 2020-11-20 18:17:57 +01:00
Maarten van Gompel
10f813b1eb editorcheck update: restrict to shell scripts and C programs for now, and removing the maximum line length check for now. 2020-11-20 18:13:31 +01:00
Maarten van Gompel
7fb7cd70f3 various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01:00
ivoulis
24380603a4 Do not start lisgd if it is not running (e.g. lockscreen) 2020-11-20 17:35:43 +01:00
Miles Alan
96931ce22c Add back saftey hook for incoming calls to delete notifications if none incoming 2020-11-20 17:30:06 +01:00
Miles Alan
f2fc6a406e Missed call rework: Use dbus to check for missed calls & properly delete pickup
Use dbus to monitor for missed calls. Missed calls used to work but had a
regression due to the work to make text/calls used dbus. This adds the proper
dbus hook for missed calls as well and also changes the incoming call
notification to allow for multiple incoming calls (theoretically).

Tested for a single caller and transitioning the pickup notification
into a missed call notification and all is working good.
2020-11-20 17:27:37 +01:00
Miles Alan
8abe870012 Make suspendtimeout for screenlock cutomizable via SXMO_SUSPENDTIMEOUTS
This way if someone wants a longer or shorter timeout that possible
by setting the env var SXMO_SUSPENDTIMEOUTS.

Also change the default to be 35s. This is roughly the duration of
ringing for an incoming phone call.
2020-11-20 17:27:37 +01:00
Serge E. Hallyn
16d77bcd86 sxmo_weather: add wind direction
It's important for me to see wind direction in addition to speed.  I
understand most people probably don't care, so we should probably show
this only if xinit sets WEATHER_WIND_DIR=1?  But we can bikeshed that
later, for now here's what I'm using on my phone right now.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2020-11-20 17:23:21 +01:00
Anjandev Momi
7d4b729b85 fix builds button to only show sxmo-utils tests 2020-11-08 22:08:43 -05:00
Anjandev Momi
0a90d03154 changed line length to 80 2020-11-08 21:57:07 -05:00
Anjandev Momi
e11cf9e523 move sxmo data to XDG_DATA_HOME
Breaking change. Make sure you send an email to the mailing list
telling users to move their
$XDG_CONFIG_HOME/{modem,notifications} files/folders to
$XDG_DATA_HOME

Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-08 19:45:39 -05:00
Anjandev Momi
65f18565f1 add editorconfig and editorconfig check 2020-11-08 19:20:53 -05:00
Anjandev Momi
ab3bb9bcdd kill the keyboard on rotation 2020-11-08 19:20:53 -05:00
Reed Wade
cd7762d92a The ring hook was blocking the notification writing.
The hook must be run asynchronously. This allow ringtones to be played
using mpv by exemple.

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-08 14:33:26 +01:00
Reed Wade
6f94bb8159 Add a new pickup hook that trigger on accept incoming calls
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-08 14:33:26 +01:00
Reed Wade
7066b54897 Give notification file to the notification hook
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-08 12:21:56 +01:00
Maarten van Gompel
be05c10163 quote fix as suggested by shellcheck 2020-11-08 12:17:14 +01:00
Anjandev Momi
b56cd2b6cb sxmo_youtube: move history file to XDG_CACHE_HOME 2020-11-08 00:22:44 -05:00
Anjandev Momi
a0c6e4c2e2 enable bluetooth and modem drivers during crust suspend
With the megi 5.9 kernel and other suspend-related merge requests in
postmarketos, disabling these drivers is no longer needed. All of this
should result in a more reliable suspending system.

Source: https://gitlab.com/postmarketOS/pmaports/-/merge_requests/1651
Signed-off-by: Miles Alan <m@milesalan.com>
2020-11-07 08:28:27 -06:00
Miles Alan
acf21efba8 Fix wakeup from CRUST for incoming call for 5.9 kernel 2020-11-07 08:05:50 -06:00
Maarten van Gompel
ce188e2f26 Use $SHELL, fix after patch: Start terminal with a login shell if run from dmenu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-07 00:00:43 +01:00
Andre Ramnitz
8fc92c55d5 Start terminal with a login shell if run from dmenu
Fixes sourcing of /etc/profile etc.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 23:59:58 +01:00
Andre Ramnitz
a59aa85ee4 Don't touch $TERM
This name already exists and is usually set
by the terminal or a multiplexer.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 23:59:29 +01:00