From f052c5a0018f90b356a0b3ec295e86b2208e0921 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 19 Apr 2022 18:22:40 -0600 Subject: Better alignment of xmobar widgets --- extras/HOME/.xmobarrc | 10 ++++++---- extras/HOME/.xmonad/xmobar-bluetooth | 2 +- extras/HOME/.xmonad/xmobar-media | 2 +- extras/HOME/.xmonad/xmobar-weather | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/extras/HOME/.xmobarrc b/extras/HOME/.xmobarrc index ae534e9..25568bd 100644 --- a/extras/HOME/.xmobarrc +++ b/extras/HOME/.xmobarrc @@ -30,10 +30,12 @@ Config , template = " %logo% %uname% \ \%UnsafeStdinReader%}\ - \{ %cpu% %memory% \ - \ %weather% \ - \ %media% \ - \%bluetooth%%bat% %time% " + \{ %cpu% %memory%\ + \\ + \%weather%\ + \\ + \%media%\ + \%bluetooth%%bat% %time% " , commands = [ Run UnsafeStdinReader, Run Date "%m/%d %H:%M:%S" "time" 10, diff --git a/extras/HOME/.xmonad/xmobar-bluetooth b/extras/HOME/.xmonad/xmobar-bluetooth index 3d65ee7..56a7521 100755 --- a/extras/HOME/.xmonad/xmobar-bluetooth +++ b/extras/HOME/.xmonad/xmobar-bluetooth @@ -19,4 +19,4 @@ if [ -d /sys/class/bluetooth ] ; then fi -exec echo " " +exec echo " " diff --git a/extras/HOME/.xmonad/xmobar-media b/extras/HOME/.xmonad/xmobar-media index 7232900..56c4d03 100755 --- a/extras/HOME/.xmonad/xmobar-media +++ b/extras/HOME/.xmonad/xmobar-media @@ -3,7 +3,7 @@ title="$(spotify-control getTitle)" if [[ "$?" -eq 0 ]] ; then - echo "$title" + echo "$title " else echo " " fi diff --git a/extras/HOME/.xmonad/xmobar-weather b/extras/HOME/.xmonad/xmobar-weather index 7399969..fdcd40f 100755 --- a/extras/HOME/.xmonad/xmobar-weather +++ b/extras/HOME/.xmonad/xmobar-weather @@ -15,7 +15,7 @@ $content = `curl "https://api.sunrise-sunset.org/json?lat=$lat&lng=$lon&formatte die "Unable to get sunrise/sunset data" unless defined $content; if (length($content) == 0) { - printf("X"); + printf(" "); exit } @@ -100,4 +100,4 @@ if ($is_day) { $conditions = %conditions_night{$sky_conditions}; } -printf("$city$dir${wind_speed} $conditions %.0f°F\n", $temp); +printf("$city $dir ${wind_speed} $conditions %.0f°F \n", $temp); -- cgit