Update dk lemonbar script

This commit is contained in:
natemaia 2022-01-03 11:59:59 -08:00
parent 1797188559
commit 3cf7136a10

View File

@ -12,7 +12,7 @@ underline=3
separator="┃"
# xfonts
size=$(xrandr | awk '/ connected/{print $3}' | sed '1q' | sed 's/+.*+.*//' | awk -F'x' '{print $2}')
size=$(xrandr | grep ' connected' | grep -o '[0-9]\+x[0-9]\+' | cut -d'x' -f2)
if (( size >= 2160 )); then
font0="-xos4-terminus-medium-r-normal--24-240-72-72-c-120-iso10646-1"
elif (( size >= 1440 )); then
@ -132,8 +132,8 @@ mkfifo "$fifo"
# here we dump info into the FIFO, order does not matter things are parsed
# out using the first character of the line. Click commands for left button
# can be added by passing an argument containing the command (like volume below)
clock '' > "$fifo" &
battery '' > "$fifo" &
clock 'gsimplecal' > "$fifo" &
battery 'xfce4-power-manager-settings' > "$fifo" &
volume 'pavucontrol' > "$fifo" &
dkcmd status type=bar > "$fifo" &