Update dk bar script

This commit is contained in:
natemaia 2022-01-02 11:54:13 -08:00
parent fcf5879226
commit e595747874

View File

@ -3,6 +3,7 @@
# simple lightweight lemonbar script for use with dk # simple lightweight lemonbar script for use with dk
set -o pipefail
bg="#111111" bg="#111111"
fg="#666666" fg="#666666"
@ -11,7 +12,16 @@ underline=3
separator="┃" separator="┃"
# xfonts # xfonts
size=$(xrandr | awk '/ connected/{print $3}' | sed '1q' | sed 's/+.*+.*//' | awk -F'x' '{print $2}')
if (( size >= 2160 )); then
font0="-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1" font0="-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1"
elif (( size >= 1440 )); then
font0="-xos4-terminus-medium-r-normal--18-240-72-72-c-120-iso10646-1"
elif (( size >= 1080 )); then
font0="-xos4-terminus-medium-r-normal--12-240-72-72-c-120-iso10646-1"
else
font0="-xos4-terminus-medium-r-normal--10-240-72-72-c-120-iso10646-1"
fi
font1="" font1=""
font2="" font2=""
font3="" font3=""