Commit graph

21 commits

Author SHA1 Message Date
Miles Alan
747da7863c Fix shellcheck 2020-08-22 16:45:49 -05:00
Miles Alan
17fb103ee3 Create a new notification when there is a missed call 2020-08-22 13:44:05 -05:00
Miles Alan
c5b665ca4f Look for ATTRIB events for notifications updates; remove "Pickup" menu
Picking up call can be done from both dunst notification & notifications menu;
so for more consistency / less bugs the Pickup menu entry has been removed.
2020-08-22 12:21:51 -05:00
Maarten van Gompel
7ec9ca2db1 pass incoming phone number to the ring hook (allows distinctive rings/actions based on caller) and added a similar sms hook 2020-08-18 20:59:22 -05:00
Miles Alan
faf9bfc48d Refactor notifications work to use 1 interface for writing notifs & use dates
Summary of changes:
1. Always use the sxmo_notificationwrite.sh script to write notifications
   rather then sometimes using echo to the DIR
2. Reorder args for notiffile spec to be action as 1st line, watchfile 2nd, and
   rest as msg; this way msg can be multiple lines without propogating bugs
3. Write calls as a standard notification via sxmo_notificationwrite.sh
4. Use datestamps from notification files instead of filename, this way (3)
   works without extra logic
5. Various style fixes
2020-08-05 23:32:39 -05:00
iressa
e6635ba7ef Notification patch v4 2020-08-05 23:32:39 -05:00
Miles Alan
36520d487e Change ring hook location to ~/.config/sxmo/hooks/ring 2020-07-18 10:38:28 -05:00
Dmytro
9378530a1b Ringing sound configurable
Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-18 10:38:28 -05:00
Miles Alan
844ce9ddef Plus prefix strip numbers before storing into modem log 2020-06-29 15:24:34 -05:00
Miles Alan
a032e4923e Remove +1 stripping from numbers in modem scripts
Note prefix stripping was unreliable because any +1XX number would break things.
The advice should be to always dial with +1 / international prefixes and store
contacts in your contacts.tsv with international codes; this way we avoid any
duplicate errors since we can be assured things in mmcli always come back w/
international prefixing automatically.
2020-06-29 11:43:22 -05:00
Miles Alan
a4b2724c4a Clean up modem functionality & don't ever kill dmenu; move call monitoring to call script 2020-06-19 17:57:43 -05:00
Miles Alan
049a93e5d8 Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00
Anjandev Momi
1b78c3cf2f modem: use XDG_CONFIG_HOME to save logs
Signed-off-by: Miles Alan <m@milesalan.com>
2020-06-07 10:05:46 -05:00
Miles Alan
6777dbdebd Fix bug w/ newcall() in sxmo_modemmonitor.sh preventing ringing call from being logged
Resolves sxmo-tickets #26 reported by ~jan_wagemakers
2020-05-25 14:55:26 -05:00
Miles Alan
ba8e8b0b9a Fix typo when modem not found you're -> your 2020-05-22 21:55:56 -05:00
Miles Alan
fa3550c638 Add warnings to modem scripts if the modem is not present 2020-05-20 17:18:02 -05:00
Miles Alan
34b2c57038 Fixes related to cleaning up modem functionality; fix audio; add flash toggle 2020-05-17 18:59:47 -05:00
Miles Alan
8b52988ad2 Remove sudo from mmcli commands in modem scripts 2020-05-11 22:13:15 -05:00
Miles Alan
e5877059ff Lots of bugfixes related to calling/modem and various script fixes 2020-05-11 20:55:47 -05:00
Miles Alan
22d974f22f Cleanup calling - mostly working; misc cleanup scripts; add vibrate program 2020-05-11 20:54:54 -05:00
Miles Alan
ae983ef8c8 Various progess on calling & texting; reorganize scripts dirs by category 2020-04-25 07:55:22 -05:00