From 8f900c29f8203daa2ed0411353ac180b50d270fe Mon Sep 17 00:00:00 2001 From: baroque Date: Sun, 29 Aug 2021 14:48:17 +0200 Subject: [PATCH] moved flashlight to main menu, out of "configuration" (that is crowded already) Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_appmenu.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index 738a501..08c4464 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -157,11 +157,6 @@ programchoicesinit() { 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"; - printf %b "^ 1 ^ sxmo_flashtoggle.sh" - ) $([ "$wm" = sway ] && echo "$icon_cfg Idle Config ^ 1 ^ sxmo_idle.sh config") $icon_cfg Invert Colors ^ 1 ^ xcalib -a -invert $icon_clk Change Timezone ^ 1 ^ sxmo_timezonechange.sh @@ -549,6 +544,11 @@ programchoicesinit() { $icon_usr Contacts ^ 0 ^ sxmo_contactmenu.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") + $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_mus Audio ^ 0 ^ sxmo_appmenu.sh audioout $icon_cfg Config ^ 0 ^ sxmo_appmenu.sh config