#!/usr/local/bin/bash # -f --oui-medium-r-semicondensed--30-28-75-75-c-120-iso10646-1 \ bat() { getbat=$(apm | grep % | awk '{print $4}') echo $getbat } getdate() { datetime=$(date +"%Y.%m.%d") echo $datetime } gettime() { getclock=$(date +"%H:%M") echo $getclock } temp(){ coretemp=$(sysctl -a | grep temp | grep cpu | cut -b 23-24) temp="${coretemp}°C" echo $temp } while true do echo -e "%{l}\ue01c $(temp) \ue040 $(bat) \ue015 $(gettime) ::::::::::::::::::::::::::: $(getdate)" sleep 1.0 done | \ lemonbar-xft -d \ -f -x-oui-smalltall-bold-r-normal--29-29-72-72-c-120-iso10646-1 \ -o 0 \ -B "#f0ddb2" \ -F "#000000" \ -g 767+702+1136 \