Wifi icon + neovim old mouse back.

This commit is contained in:
Bartek Stalewski 2022-10-07 11:58:10 +02:00
parent aa30f36abd
commit e8e39cccfa
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,6 @@ icon='\uf1eb '
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) printf "<span background='#770000'>$icon no wifi</span>" ;;
up)
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "<span background='#770000'>$icon no ip</span>"
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] && printf "$icon" || printf "<span background='#770000'>$icon no ip</span>"
# && printf "$icon $(iwgetid -r)" \
esac

View File

@ -24,6 +24,7 @@ set shiftround
set cursorline
set nowritebackup
set mouse=
set tabstop=2
set scrolloff=5
set shortmess-=S