From 3cf7136a105ab6b184755563b35510a9d65a212c Mon Sep 17 00:00:00 2001 From: natemaia Date: Mon, 3 Jan 2022 11:59:59 -0800 Subject: [PATCH] Update dk lemonbar script --- dk-home/.local/bin/bar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dk-home/.local/bin/bar b/dk-home/.local/bin/bar index f282fba4..2624296d 100755 --- a/dk-home/.local/bin/bar +++ b/dk-home/.local/bin/bar @@ -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" &