Commit graph

346 commits

Author SHA1 Message Date
Maarten van Gompel
00846a1608 don't stumble over single quotes when sending SMS texts and replace double quotes with double single quotes to avoid trouble (a bit patchy)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 21:42:40 +01:00
Reed Wade
f539e45459 Prevent stderr that DRAFT_FILE could not be found.
DRAFT_DIR is also used in the main loop so this prevent logging to sterr
ls: cannot access '/home/foobar/.config/sxmo/modem/draft': No such file or directory

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-06 21:27:54 +01:00
Reed Wade
0ae9825752 Replace the camera script with the Megapixel app
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-02 22:38:44 -05:00
Serge E. Hallyn
cbeaecbef5 sxmo_modemdial.sh: quiet the grep
When I try to dial a call from 'more contacts', I get

Attempting to dial: +19362396134
Starting call with CALLID: 0
error: invalid call string specified: 'More contacts
0'

This is because dialmenu() is getting an extra 'More contacts'
prepended to the callid it returns on stdout.  Make the grep
which is causing that quiet using -q.

I'm not sure why this isn't hitting everyone else.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-02 22:24:37 -05:00
Anjandev Momi
90ddbc3e74 move dwm.log to $XDG_CACHE_HOME 2020-11-02 14:59:54 -05:00
Reed Wade
9b88aeb3d2 reopen file dmenu after handled it
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-11-02 12:29:32 -05:00
Anjandev Momi
6199f54b21 sxmo_modemtext: postpone renamed to draft. Open more contacts on ssh 2020-11-01 17:17:18 -05:00
Maarten van Gompel
178c746d85 shellcheck fix after applying "more contacts" patch 2020-11-01 18:17:33 +01:00
Maarten van Gompel
a537bea76a changed default background colour (to be the same as the one in sxmo-xdm-config)
it's subjective, but the old one was rather ugly imho. Of course people
should customise it in their own custom xinit, but it might be
better if the default is a bit more appealing to the eye as it's the
first thing new users will see.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 18:01:41 +01:00
Reed Wade
65d9d60ff1 Add more contacts choice to contact list
The dialer only included recent callers, but there was no way to access
the full contact list (contacts.tsv). I added a "more contacts" options
that calls sxmo_contacts --all, providing an alphabetically sorted list
of all your contacts. It also works for the texting menu.

This is a cleaned up version of an earlier patch by Maarten van Gompel.

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 17:58:25 +01:00
Maarten van Gompel
0e4406bffa added vlc to app menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 17:35:52 +01:00
Reed Wade
f6e98f2754 Move the send sms logic in a dedicated script
This allow userscripts to send sms using the sxmo way so we now can
create our own sms clients.

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 14:30:20 +01:00
Maarten van Gompel
f0d40f28fc Fix for shellcheck problem and whitespace issue as suggested by Reed Wade (also stripping trailing spaces)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 14:14:57 +01:00
Maarten van Gompel
0f685fa3a4 minor cleanup for "unmute" patch so it passes shellcheck 2020-11-01 13:59:16 +01:00
Reed Wade
56efe6e166 Autocomplete WPA networks with scanned ones
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 13:12:03 +01:00
Dmytro
6aaca4b161 Unmute fix
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 13:04:36 +01:00
Maarten van Gompel
86469c9b60 applied the same logic to the system menu: fix crash on open menu if already open 2020-11-01 13:01:21 +01:00
Sam Bowlby
c1aa407414 fix crash on open menu if already open
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-11-01 12:59:36 +01:00
Anjandev Momi
bfba94b93f handle missing and uncreatable notifdirs more gracefully
Original patch by ~kgp445

https://todo.sr.ht/~mil/sxmo-tickets/94
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-10-31 18:30:25 -04:00
Maarten van Gompel
8dc0b9ca45 Implemented suggested fix for Notifications menu fails with special characters (#78) 2020-10-31 23:01:23 +01:00
Reed Wade
1edb932f44 fix a bug on picked notification file determination
If a notification body include a double whitespace, the PICKEDNOTIFFILE
computation fail to match cause we striped them when building the dmenu
choices.

To give an example, try to write this notification as

$ sxmo_notificationwrite.sh "random" \
"st -e tail -n9999 -f \"$HOME/.config/sxmo/xinit\"" \
"$HOME/.config/sxmo/xinit" \
"this body  is broken"

This patch fix this bug.

(Maintainer note: I changed the awk invocation to use tr, as suggested
by anjan)

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 22:55:50 +01:00
Maarten van Gompel
e11d3aaea3 some minor cleanup of issues detected by shellcheck after applying the patch: 'modemmonitor: use dbus-monitor' 2020-10-31 22:37:21 +01:00
Reed Wade
1e00b72d90 fix a notification bug when sms come from whitespace content number
We quote the sms path on notificationwrite to prevent buggy commands.

mn: This patch fixes texts from numbers like "CREDIT AGRICOLE"

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-10-31 13:35:52 -04:00
Maarten van Gompel
e8e4c77a51 swapped the two move-window-to-next-desktop gestures, the direction of the swipe is now the direction of movement (makes more sense imho)
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:54:49 +01:00
Maarten van Gompel
6448587eb8 complete revision of gestures, using new edge system
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:53:46 +01:00
Julian P Samaroo
72cc974f20 Added option to postpone and resend text messages
Text messages which fail to send will now automatically postpone

(maintainer note: I incorporated a minor shellcheck fix)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:35:00 +01:00
Maarten van Gompel
19efcf927e Sep 8: call checkformissedcalls at first run, and then also any time that checkforincomingcalls did not actually find a call (i.e. ... missed it)
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:09:35 +01:00
Serge E. Hallyn
99099a359f modemmonitor: use dbus-monitor
Instead of looping over mmcli commands to check for incoming
calls and texts every 3s, use dbus-monitor to tell us when
something is coming in.  This should save some battery life
as well as reduce the delay in new call/msg notification.

I was running on the latest released scripts, so have not
strictly tested this with git master.  Note that I dropped
the call to checkmissedcalls.  Perhaps we should still run
that at firststart?

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:06:28 +01:00
Maarten van Gompel
1b45e7743d added SXMO_LOCK_SCREEN_OFF and SXMO_LOCK_SUSPEND environment variables to set a target stage from the environment
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 12:16:06 +01:00
Maarten van Gompel
642bf1cc27 Implementing optional rtc wakeup at regular intervals, added presuspend, rtcwake and postwake scripts (with hooks)
(includes missing return 0 statement caught by Serge Hallyn)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 12:13:22 +01:00
Anjandev Momi
5f5cc6e675 Added button for build status 2020-10-30 13:01:15 -04:00
Reed Wade
8d5eda8af7 Add automatic shellchecks with CI
Signed-off-by: Reed Wade <reedwade@misterbanal.net>
2020-10-30 12:56:04 -04:00
Anjandev Momi
55887d9afe update megiaudioroute.c for 5.9 kernel
When combined with Sam's audio patch, this fixes audio calls on 5.9
kernel.

Source: https://xnux.eu/devices/feature/audio-pp.html
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-10-28 23:57:33 -04:00
Sam Bowlby
c8ca9e850b fixed renamed alsa controls
Signed-off-by: Anjandev Momi <anjan@momi.ca>
2020-10-28 23:57:02 -04:00
Miles Alan
b78a3ca674 Add sxmo_networks.sh script to manage nmcli connections 2020-09-19 17:15:32 -05:00
Miles Alan
deb83c0967 Don't source /etc/profile & $HOME/.profile if nonexistant in xinit 2020-09-19 17:15:32 -05:00
Miles Alan
f16b3f9762 Add sxmo_vibratepine to programs list for Makefile 2020-09-15 19:37:33 -05:00
Maarten van Gompel
7830d95209 also source ~/.profile when looking for envvars
I have the impression that setting environment variables in the custom
xinit script doesn't always work properly (no idea why). Putting them in
~/.profile seems to be more robust. Sourcing it is a good idea anyhow,
hence this patch:
2020-09-15 19:29:17 -05:00
Serge E. Hallyn
41f2adf18a Makefile: be a little more conventional
The all target will build the programs, and each program has its
source as build dep.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-09-15 19:29:01 -05:00
Serge E. Hallyn
5a4ce877df screenlock: set max field width for sprintf
Stop a compiler warning about overwriting the 100 char buffer with larger
string.

programs/sxmo_screenlock.c:61:3: note: ‘sprintf’ output between 39 and 294 bytes into a destination of size 100
2020-09-15 19:28:47 -05:00
Serge E. Hallyn
2cec0fc3be Enable irq wakeups
This is needed for crust to wake us up on an incoming call.

Thanks to smaeul in #crust for the tip.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2020-09-15 19:28:14 -05:00
Anjandev Momi
c94e58f6d2 modemmonitor: fixed no contact name displayed in notifications and new folders without + 2020-09-15 19:27:56 -05:00
Miles Alan
4c24155a62 Don't delete leading + from incoming calls in sxmo_modemmonitor.sh 2020-09-13 09:14:08 -05:00
Miles Alan
a48be9cbcf Fix shellcheck errors in sxmo_{camera,rotateautotoggle.sh} 2020-09-12 22:58:17 -05:00
Julian P Samaroo
1253dcd5f1 Added Clear Notifications option to menu 2020-09-12 22:51:43 -05:00
Miles Alan
67a5a25163 Omit empty lines from youtube history file 2020-09-12 22:26:10 -05:00
Anjandev Momi
64cef4d0c4 camera: update constants for new alpine update 2020-09-12 22:26:10 -05:00
Andre Ramnitz
1221e853cb Proper xresources for xcalc 2020-09-12 22:26:10 -05:00
Miles Alan
a60641cebc Retain position in RSS script when selecting items 2020-09-12 22:26:08 -05:00
Miles Alan
47eda92e03 Allow multiple word queries for youtube script 2020-09-10 19:07:43 -05:00