add Profanity to app menu; add System Menu to Network menu

Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Sam Bowlby 4 years ago committed by Maarten van Gompel
parent e220a30e15
commit bf212e1b7b
  1. 1
      scripts/core/sxmo_appmenu.sh
  2. 9
      scripts/core/sxmo_networks.sh

@ -94,6 +94,7 @@ programchoicesinit() {
$(command -v newsboat >/dev/null && echo "$icon_rss Newsboat ^ 0 ^ st -e newsboat") $(command -v newsboat >/dev/null && echo "$icon_rss Newsboat ^ 0 ^ st -e newsboat")
$(command -v nnn >/dev/null && echo "$icon_dir Nnn ^ 0 ^ st -e nnn") $(command -v nnn >/dev/null && echo "$icon_dir Nnn ^ 0 ^ st -e nnn")
$(command -v pidgin >/dev/null && echo "$icon_msg Pidgin ^ 0 ^ pidgin") $(command -v pidgin >/dev/null && echo "$icon_msg Pidgin ^ 0 ^ pidgin")
$(command -v profanity >/dev/null && echo "$icon_msg Profanity ^ 0 ^ st -e profanity")
$(command -v qutebrowser>/dev/null && echo "$icon_glb Qutebrowser ^ 0 ^ qutebrowser") $(command -v qutebrowser>/dev/null && echo "$icon_glb Qutebrowser ^ 0 ^ qutebrowser")
$(command -v ranger >/dev/null && echo "$icon_dir Ranger ^ 0 ^ st -e ranger") $(command -v ranger >/dev/null && echo "$icon_dir Ranger ^ 0 ^ st -e ranger")
$(command -v sacc >/dev/null && echo "$icon_itm Sacc ^ 0 ^ st -e sacc i-logout.cz/1/bongusta") $(command -v sacc >/dev/null && echo "$icon_itm Sacc ^ 0 ^ st -e sacc i-logout.cz/1/bongusta")

@ -98,11 +98,14 @@ networksmenu() {
Launch Nmtui Launch Nmtui
Launch Ifconfig Launch Ifconfig
Scan Wifi Networks Scan Wifi Networks
System Menu
Close Menu Close Menu
" | " |
awk '{$1=$1};1' | grep '\w' | dmenu -c -p 'Networks' -l 14 awk '{$1=$1};1' | grep '\w' | dmenu -c -p 'Networks' -l 14
)" )"
if [ "$CHOICE" = "Close Menu" ]; then if [ "$CHOICE" = "System Menu" ]; then
sxmo_appmenu.sh sys && exit
elif [ "$CHOICE" = "Close Menu" ]; then
exit exit
elif [ "$CHOICE" = "Add a GSM Network" ]; then elif [ "$CHOICE" = "Add a GSM Network" ]; then
addnetworkgsmmenu addnetworkgsmmenu
@ -113,9 +116,9 @@ networksmenu() {
elif [ "$CHOICE" = "Launch Nmtui" ]; then elif [ "$CHOICE" = "Launch Nmtui" ]; then
st -e nmtui & st -e nmtui &
elif [ "$CHOICE" = "Launch Ifconfig" ]; then elif [ "$CHOICE" = "Launch Ifconfig" ]; then
st -f Terminus-14 -e watch -n 2 ifconfig & st -e watch -n 2 ifconfig &
elif [ "$CHOICE" = "Scan Wifi Networks" ]; then elif [ "$CHOICE" = "Scan Wifi Networks" ]; then
st -f Terminus-14 -e watch -n 2 nmcli d wifi list & st -e watch -n 2 nmcli d wifi list &
else else
toggleconnection "$CHOICE" toggleconnection "$CHOICE"
fi fi

Loading…
Cancel
Save