fn wifistatus { if(test -f /usr/sbin/iwconfig && /sbin/ifconfig |grep -q wlan0) { echo -n 'wifi:' `{/usr/sbin/iwconfig wlan0 |grep ESSID |9 sed 's/.+ESSID\:.(.*).+/\1/g'} } if(test -f /sbin/iwconfig && /sbin/ifconfig |grep -q wlan0) { echo -n 'wifi:' `{/sbin/iwconfig wlan0 |grep ESSID |9 sed 's/.+ESSID\:\"(.*)\".+/\1/g'} } if not echo 'No wireless' } fn cputemp { if(test -f /sys/devices/platform/coretemp.0/temp1_input) echo -n `{cat /sys/devices/platform/coretemp.[01]/temp1_input | sed 's/...$/C/g' | tr ' ' ' '} if(test -f /proc/acpi/thermal_zone/THM/temperature) echo -n 'cpu: '`{cat /proc/acpi/thermal_zone/THM/temperature | sed 's/[^0-9]//g' |tr ' ' ' '} } fn showvol { echo -n 'vol: '`{amixer get Master | 9 sed -n 's/.+(\[.*\%\]).+/\1/p' |uniq | 9 sed 's/[\[\]]//g' | tr ' ' ' '} } fn showfreq { echo -n 'freq:' `{ cat /sys/devices/system/cpu/cpu[01]/cpufreq/scaling_cur_freq | sed 's/.....$//g' |tr ' ' ' '} } mkrbar wifistatus &