5 #TERM=xterm-256color # To keep unicode charcters from BARS
7 STATUS_DIR
=$HOME/var
/run
/status
8 STATUS_FILE_WIFI
=$STATUS_DIR/wifi
9 STATUS_FILE_ETH
=$STATUS_DIR/eth
15 # -v file_wifi="$STATUS_FILE_WIFI" \
16 # -v file_eth="$STATUS_FILE_ETH" \
18 # $2 == "wifi" {wifi = $4}
19 # $2 == "ethernet" {eth=$4}
21 # print(wifi) > file_wifi;
22 # print(eth) > file_eth;
27 -f ACTIVE
,SSID
,SIGNAL \
32 -v file_wifi
="$STATUS_FILE_WIFI" \
34 BEGIN {wifi_status = "--"}
35 $1 == "yes" {wifi_status = $2 ":" $3 "%"}
36 END {print wifi_status > file_wifi}
This page took 0.088321 seconds and 4 git commands to generate.