From 30a395f02b8f43c50094b7c518684d785e75e261 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 19 Mar 2021 19:34:26 +0530 Subject: fixed errors and clashes with xmonad status bar --- lemonblocks/modules/cpu_temp.sh | 2 +- lemonblocks/modules/volume.sh | 2 +- lemonblocks/start.sh | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lemonblocks/modules/cpu_temp.sh b/lemonblocks/modules/cpu_temp.sh index c4a2ca6c..a5286add 100755 --- a/lemonblocks/modules/cpu_temp.sh +++ b/lemonblocks/modules/cpu_temp.sh @@ -2,4 +2,4 @@ CEL=$'\xc2\xb0C' temp=$( cat /sys/devices/virtual/thermal/thermal_zone0/temp ) temp=`expr $temp / 1000` -printf " TEMP:$temp$CEL "" +printf " TEMP:$temp$CEL " diff --git a/lemonblocks/modules/volume.sh b/lemonblocks/modules/volume.sh index a0843dd9..e67c63ff 100755 --- a/lemonblocks/modules/volume.sh +++ b/lemonblocks/modules/volume.sh @@ -1,6 +1,6 @@ #!/bin/bash -printf " VOL:$(pamixer --get-volume-human)% " +printf " VOL:$(pamixer --get-volume-human) " "" # if [ $volume_level == "muted" ]; then # printf "%{F#ff0058}VOL: $(pamixer --get-volume)%{F-}" # else diff --git a/lemonblocks/start.sh b/lemonblocks/start.sh index 6b4f60ba..deb5f48f 100755 --- a/lemonblocks/start.sh +++ b/lemonblocks/start.sh @@ -1,9 +1,5 @@ #!/bin/bash -# setup xmonad status -# mkfifo /tmp/xmonad_stat -# xmonad-log > /tmp/xmonad_stat & - CLICKABLE_AREAS=1 PANEL_WIDTH=566 PANEL_HEIGHT=21 @@ -43,6 +39,3 @@ then else ./bin/lemonblocks fi - -sleep 5 # otherwise it crashes because it executes before xmonad starts -xmonad-log | lemonbar -b -g 800x21+0+0 -B '#171520' -F '#ffffff' -o -3 -f 'Source Han Sans JP:size=10' -o 0 -f 'RobotoMono Nerd Font:style=Regular:size=15' & -- cgit v1.2.3