Added a wifi toggle #290
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
f057593692
commit
13b29f7139
4 changed files with 46 additions and 0 deletions
|
@ -142,6 +142,11 @@ programchoicesinit() {
|
|||
$icon_phn Modem Toggle ^ 1 ^ sxmo_modemmonitortoggle.sh
|
||||
$icon_inf Modem Info ^ 0 ^ sxmo_modeminfo.sh
|
||||
$icon_phl Modem Log ^ 0 ^ sxmo_modemlog.sh
|
||||
$icon_wif Wifi $(
|
||||
rfkill -rn | grep wlan | grep -qE "unblocked unblocked" &&
|
||||
printf %b "On → Off" || printf %b "Off → On";
|
||||
printf %b "^ 1 ^ sudo sxmo_wifitoggle.sh"
|
||||
)
|
||||
$icon_fll Flashlight $(
|
||||
grep -qE '^0$' /sys/class/leds/white:flash/brightness &&
|
||||
printf %b "Off → On" || printf %b "On → Off";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue