networks: move close to top
If you have a lot of wifi networks, its very annoying to have to scroll to the bottom or swipe up to close (swiping up might activate a different network). Maybe we give more of a gap between top of screen and menus? Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
This commit is contained in:

committed by
Willow Barraco

parent
9cadb17a1d
commit
08a8b15a96
@@ -237,6 +237,7 @@ networksmenu() {
|
||||
rfkill list wifi | grep -q "yes" || WIFI_ENABLED=1
|
||||
|
||||
grep . << EOF | sxmo_dmenu.sh -p "Networks"
|
||||
$icon_cls Close Menu
|
||||
$(
|
||||
if [ -z "$WIFI_ENABLED" ]; then
|
||||
connections | grep -v "$icon_wif"
|
||||
@@ -259,15 +260,10 @@ $(
|
||||
$icon_cfg Nmtui
|
||||
$icon_cfg Ifconfig
|
||||
$([ -z "$WIFI_ENABLED" ] || printf "%s Scan Wifi Networks\n" "$icon_wif")
|
||||
$icon_mnu System Menu
|
||||
$icon_cls Close Menu
|
||||
EOF
|
||||
)" || exit
|
||||
|
||||
case "$CHOICE" in
|
||||
*"System Menu" )
|
||||
sxmo_appmenu.sh sys && exit
|
||||
;;
|
||||
*"Close Menu" )
|
||||
exit
|
||||
;;
|
||||
|
Reference in New Issue
Block a user