Fixes related to cleaning up modem functionality; fix audio; add flash toggle
This commit is contained in:
parent
b37138c845
commit
34b2c57038
9 changed files with 53 additions and 29 deletions
|
@ -40,13 +40,12 @@ programchoicesinit() {
|
|||
|
||||
# System Control menu
|
||||
echo $WMCLASS | grep -i "config" && CHOICES="$(echo "
|
||||
Volume ↑ ^ 1 ^ sxmo_vol.sh up
|
||||
Volume ↓ ^ 1 ^ sxmo_vol.sh down
|
||||
Brightesss ↑ ^ 1 ^ sxmo_brightness.sh up
|
||||
Brightness ↓ ^ 1 ^ sxmo_brightness.sh down
|
||||
Modem $(pgrep -f sxmo_modemmonitor.sh >/dev/null && echo -n "On → Off" || echo -n "Off → On") ^ 1 ^ sxmo_modemmonitortoggle.sh
|
||||
Modem Info ^ 0 ^ sxmo_modeminfo.sh
|
||||
Modem Log ^ 0 ^ sxmo_modemlog.sh
|
||||
Flash $(cat /sys/class/leds/white:flash/brightness | grep -E '^0$' > /dev/null && echo -n "Off → On" || echo -n "On → Off") ^ 1 ^ sxmo_flashtoggle.sh
|
||||
Rotate ^ 1 ^ rotate
|
||||
Wifi ^ 0 ^ st -e "nmtui"
|
||||
Upgrade Pkgs ^ 0 ^ st -e sxmo_upgrade.sh
|
||||
|
|
6
scripts/core/sxmo_flashtoggle.sh
Executable file
6
scripts/core/sxmo_flashtoggle.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
sxmo_setpineled white "$(
|
||||
cat /sys/class/leds/white:flash/brightness |
|
||||
grep -E '^0$' > /dev/null && echo 255 || echo 0
|
||||
)"
|
||||
|
|
@ -24,7 +24,7 @@ do
|
|||
|
||||
# Volume
|
||||
VOL=$(
|
||||
echo "$(audiodevice)" |
|
||||
echo "$(amixer sget $(audiodevice))" |
|
||||
grep -oE '([0-9]+)%' |
|
||||
tr -d ' %' |
|
||||
awk '{ s += $1; c++ } END { print s/c }' |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue