sxmo-utils/scripts/core
Stacy Harper 55985a8f20 Rework the status bar
Goals of this patch :

- display the signal quality

I used a thermometer icon cause there is no available icon with a
filleable bar o_O

- display the currently used network technology (4g, 3g, etc...)

I used the mapping from:

https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/blob/master/include/ModemManager-enums.h#L220

Dylan also said:

Anything from POTS to GPRS = 2G
UMTS to EVDOB = 3G
LTE = 4G
5GNR = 5G

- display the modem infos when modemmonitor is disabled

We want to decorelate the modem monitor from the icon. We still want to
know easily if modem monitor is runing but we also want those modem
infos if not.

- simplify the modem state determination (no state file anymore)

The statusbar probe mmcli itself.

- fix the leading timer without call issue

This was caused by the "pgrep -f" command that was matching itself.
Using a simple "pgrep" looks good enough anyway.

- fix some sxmo_statusbar update spaming issues (vol control)

This one point took me a lot of time to findout a good solution. We want
the USR1 kill to be spamable without causing issue to the displayed bar.
We dont want mid rendered bar (half the icons).
We dont want empty bars (empty stdout line).

I use some variable to store pid, smart waits and a better trap function
to make it to works cleanly. Now we can spam statusbarupdate. Only the
last one will actually redraw the bar.

Signed-off-by: Stacy Harper <contact@stacyharper.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2021-09-12 19:59:03 +02:00
..
sxmo_appmenu.sh moved flashlight to main menu, out of "configuration" (that is crowded already) 2021-08-30 22:26:13 +02:00
sxmo_audiocurrentdevice.sh sxmo_audio*: properly set vars with default values if they are unset 2021-04-24 01:14:55 -04:00
sxmo_audioout.sh sxmo_audio*: properly set vars with default values if they are unset 2021-04-24 01:14:55 -04:00
sxmo_blinkled.sh Make led blink more noticable 2021-08-31 19:57:37 +02:00
sxmo_bluetoothmenu.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_brightness.sh reduce notification spam in volume/brightness 2021-08-31 20:45:42 +02:00
sxmo_common.sh Rework the status bar 2021-09-12 19:59:03 +02:00
sxmo_contactmenu.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_contacts.sh sxmo_contacts now can search a contact 2021-06-12 13:35:30 +02:00
sxmo_dmenu.sh bump up the number of lines in sxmo_dmenu.sh (see patch to sxmo-dmenu) 2021-09-06 13:56:39 +02:00
sxmo_dmenu_with_kb.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_edit_screen.sh replace "st -e" with sxmo_terminal.sh and edit it to use st -e instead of st 2021-06-04 21:50:59 +02:00
sxmo_flashtoggle.sh Rename sxmo_setpineled.sh to sxmo_setled.sh, add bq-paella support 2021-08-31 16:52:30 +02:00
sxmo_gpsutil.sh use --index instead of -idx for compatibility with bemenu, requires similar patch for dmenu 2021-08-24 23:11:58 +02:00
sxmo_hooks.sh Cleanup hooks 2021-06-29 22:43:16 +02:00
sxmo_hotspot.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_idle.sh Allow sxmo_idle config menu to disable an kind 2021-08-24 13:07:11 +02:00
sxmo_inputhandler.sh fix for bottomleft corner lock gesture (#361) 2021-09-11 01:26:39 -04:00
sxmo_keyboard.sh Use pkill -f for $KEYBOARD 2021-05-11 19:54:11 +00:00
sxmo_killwindow.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_menumode_toggler.sh Clean up sway config and add BQ Aquaris X5 support 2021-08-31 16:42:36 +02:00
sxmo_migrate.sh More complete sxmo_migrate.sh 2021-08-24 22:16:11 +02:00
sxmo_movement.sh Rework the incoming call pickup/discard behavior 2021-04-23 19:16:08 +02:00
sxmo_multikey.sh Prevent more multikey hold chains 2021-08-24 22:20:06 +02:00
sxmo_networkmonitor.sh Cleanup hooks 2021-06-29 22:43:16 +02:00
sxmo_networks.sh Add USB Hotspot 2021-09-05 10:04:45 +02:00
sxmo_open.sh busybox grep has no --include, removed it 2021-07-25 08:46:14 +02:00
sxmo_pipecomplete.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_postwake.sh Fix swmo shellcheck issues 2021-08-22 14:17:47 +02:00
sxmo_proximitylock.sh Rework the sxmo screenlock 2021-06-06 09:41:36 +02:00
sxmo_proximitylocktoggle.sh Add proximity lock toggle on the config menu 2021-04-23 19:16:24 +02:00
sxmo_rotate.sh Fix autorotation script 2021-08-26 20:42:51 +02:00
sxmo_rotateautotoggle.sh Wileyfox Swift rotate and autorotate fix 2021-05-20 09:09:45 +02:00
sxmo_rtcwake.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_screenlock.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_setled.sh Rename sxmo_setpineled.sh to sxmo_setled.sh, add bq-paella support 2021-08-31 16:52:30 +02:00
sxmo_setpermissions.sh fix: path should be absolute 2021-03-18 19:21:41 +01:00
sxmo_statusbar.sh Rework the status bar 2021-09-12 19:59:03 +02:00
sxmo_statusbarupdate.sh 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
sxmo_surf_linkselect.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_sws.sh added scripts/core/sxmo_sws.sh sway window switcher 2021-09-06 14:01:31 +02:00
sxmo_terminal.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_timezonechange.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_type.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_upgrade.sh Remove -a cause it can break the system. 2021-07-05 00:43:54 -04:00
sxmo_urlhandler.sh SWMO - SXMO over Wayland 2021-08-22 13:23:22 +02:00
sxmo_vol.sh reduce notification spam in volume/brightness 2021-08-31 20:45:42 +02:00
sxmo_wifitoggle.sh Added a wifi toggle #290 2021-07-25 17:03:58 +02:00
sxmo_winit.sh increased default font size for bemenu 2021-08-27 07:37:41 +02:00
sxmo_wm.sh added scripts/core/sxmo_sws.sh sway window switcher 2021-09-06 14:01:31 +02:00
sxmo_wmtoggle.sh Add a check before toggeling wm 2021-09-04 10:44:02 +02:00
sxmo_workspace.sh Prevent already existing modifiers to prevent view change 2021-09-01 18:57:29 +02:00
sxmo_xinit.sh Load user .profile after setting up default values 2021-08-26 12:38:53 +02:00