Commit graph

25 commits

Author SHA1 Message Date
Maxim Karasev
1e20a2223b
Rename sxmo_setpineled.sh to sxmo_setled.sh, add bq-paella support
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-31 16:52:30 +02:00
Stacy Harper
8a27933c47 SWMO - SXMO over Wayland
This is a huge patch for Swmo, Sxmo over Sway.

It is Dwm backward compatible so dwm users should not expect regressions.

If you install all dependencies, you then can toggle between Sway and Dwm using a new config entry. It will reboot the phone.

This commit also contains:
    * Make the modemmonitor bullet proof
    * various other smaller fixes

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-08-22 13:23:22 +02:00
Nihal Jere
ce3f2ea319
replace setpineled C program with a shell script
Signed-off-by: Stacy Harper <contact@stacyharper.net>
2021-08-11 22:27:28 +02:00
Stacy Harper
e6ea657634 Cleanup hooks
This add a script to use either the user hook or the default one.

Sometime we checked the user hook or a default code. We move this
default code in a defaut hook.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-29 22:43:16 +02:00
Stacy Harper
ae784d0ab0 Fix the notification menu usage when notification are doubled
For some reason, some notifications get doubled (probably cause of
a modemmonitor issue). Those doubled notifications cant be used with the
current notificationsmenu cause the two entry matches the picked text.

This make the first one to be picked.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-06-22 15:01:32 +02:00
Maarten van Gompel
f4ba3978c9 Call common script, moved icons to common script, removed unnecessary aliases from common (let's add them only when there are conflicts), made sure plays along with shellcheck 2021-02-01 18:32:32 +01:00
Maarten van Gompel
7669fa341e adding icons to menus 2021-02-01 18:32:32 +01:00
Maarten van Gompel
24905884ee Removed explicit font from most dmenu calls, dmenu font is read from Xresources now and kept as uniform as possible 2021-02-01 18:32:32 +01:00
Maarten van Gompel
1608ab1ae4 increased verbosity in various scripts, and do not run xargs kill when argument is empty (cleaner and clearer stderr messages) 2021-01-30 21:41:08 +01:00
Maarten van Gompel
9346bf6e15 shellcheck fixes after sorting notifications menu 2020-12-23 12:13:52 +01:00
Julian P Samaroo
0c2b11c2f3 Sort notifications menu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-12-23 12:12:04 +01:00
Maarten van Gompel
7fb7cd70f3 various indentation fixes (spaces to tabs and stripping trailing whitespace) 2020-11-20 18:10:17 +01: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
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
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
Julian P Samaroo
1253dcd5f1 Added Clear Notifications option to menu 2020-09-12 22:51:43 -05:00
Miles Alan
68641aab4f Move LED setting to be indpendent of notification hook 2020-08-22 17:28:14 -05:00
Miles Alan
46acb72dd7 Kill in-progress notification hooks if the notif dir is empty 2020-08-22 16:59:56 -05:00
Miles Alan
747da7863c Fix shellcheck 2020-08-22 16:45:49 -05:00
Miles Alan
317437572a Improve default notificationhook to vibrate consistently 2020-08-22 16:16:53 -05:00
Miles Alan
45c571727c Cleanup logic for notification LED setting; increase default call volume 2020-08-22 16:16:26 -05:00
Miles Alan
5f8aad0386 Fix bugs with incall functionality around statusbar showing call duration 2020-08-22 12:21:51 -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