moved flashlight to main menu, out of "configuration" (that is crowded already)

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
baroque 3 years ago committed by Maarten van Gompel
parent 80c656f3ad
commit 8f900c29f8
  1. 10
      scripts/core/sxmo_appmenu.sh

@ -157,11 +157,6 @@ programchoicesinit() {
printf %b "On → Off" || printf %b "Off → On"; printf %b "On → Off" || printf %b "Off → On";
printf %b "^ 1 ^ sudo sxmo_wifitoggle.sh" 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";
printf %b "^ 1 ^ sxmo_flashtoggle.sh"
)
$([ "$wm" = sway ] && echo "$icon_cfg Idle Config ^ 1 ^ sxmo_idle.sh config") $([ "$wm" = sway ] && echo "$icon_cfg Idle Config ^ 1 ^ sxmo_idle.sh config")
$icon_cfg Invert Colors ^ 1 ^ xcalib -a -invert $icon_cfg Invert Colors ^ 1 ^ xcalib -a -invert
$icon_clk Change Timezone ^ 1 ^ sxmo_timezonechange.sh $icon_clk Change Timezone ^ 1 ^ sxmo_timezonechange.sh
@ -549,6 +544,11 @@ programchoicesinit() {
$icon_usr Contacts ^ 0 ^ sxmo_contactmenu.sh $icon_usr Contacts ^ 0 ^ sxmo_contactmenu.sh
$(command -v bluetoothctl >/dev/null && echo "$icon_bth Bluetooth ^ 1 ^ sxmo_bluetoothmenu.sh") $(command -v bluetoothctl >/dev/null && echo "$icon_bth Bluetooth ^ 1 ^ sxmo_bluetoothmenu.sh")
$(command -v megapixels >/dev/null && echo "$icon_cam Camera ^ 0 ^ GDK_SCALE=2 megapixels") $(command -v megapixels >/dev/null && echo "$icon_cam Camera ^ 0 ^ GDK_SCALE=2 megapixels")
$icon_fll Flashlight $(
grep -qE '^0$' /sys/class/leds/white:flash/brightness &&
printf %b "Off → On" || printf %b "On → Off";
printf %b "^ 1 ^ sxmo_flashtoggle.sh"
)
$icon_net Networks ^ 0 ^ sxmo_networks.sh $icon_net Networks ^ 0 ^ sxmo_networks.sh
$icon_mus Audio ^ 0 ^ sxmo_appmenu.sh audioout $icon_mus Audio ^ 0 ^ sxmo_appmenu.sh audioout
$icon_cfg Config ^ 0 ^ sxmo_appmenu.sh config $icon_cfg Config ^ 0 ^ sxmo_appmenu.sh config

Loading…
Cancel
Save