diff options
| author | Josh Rahm <rahm@google.com> | 2022-04-19 18:22:40 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-04-19 18:22:40 -0600 |
| commit | 5cf7821e666eb70d09e0f54fdfa683472a2a3f65 (patch) | |
| tree | f690e01202e61efe47f7c4ac1997c6d96c3b004f | |
| parent | f0789e78ecd145590a104052d562334fd92ac5d9 (diff) | |
| download | rde-5cf7821e666eb70d09e0f54fdfa683472a2a3f65.tar.gz rde-5cf7821e666eb70d09e0f54fdfa683472a2a3f65.tar.bz2 rde-5cf7821e666eb70d09e0f54fdfa683472a2a3f65.zip | |
Better alignment of xmobar widgets
| -rw-r--r-- | extras/HOME/.xmobarrc | 10 | ||||
| -rwxr-xr-x | extras/HOME/.xmonad/xmobar-bluetooth | 2 | ||||
| -rwxr-xr-x | extras/HOME/.xmonad/xmobar-media | 2 | ||||
| -rwxr-xr-x | 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% <fc=#a0a0a0><fn=3>%uname%</fn></fc> \ \%UnsafeStdinReader%}\ - \{ %cpu% %memory% <fc=#404040>\ - \ %weather% \ - \</fc> <fc=#a0a0a0>%media%</fc> \ - \%bluetooth%%bat% <fn=2><fc=#606060>%time%</fc></fn> " + \{ %cpu% %memory%<fc=#404040>\ + \<action=alacritty -t 'Floating Term' -e sh -c 'curl wttr.in ; read i'>\ + \%weather%\ + \</action>\ + \</fc><fc=#a0a0a0>%media%</fc>\ + \%bluetooth%%bat%<fn=2><fc=#606060> %time%</fc></fn> " , 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 "<fc=#404040></fc> " +exec echo "<fc=#404040></fc> " 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 "<fc=#1aa54b></fc> <fn=3>$title</fn>" + echo "<fc=#1aa54b></fc> <fn=3>$title</fn> " else echo "<fc=#404040> </fc>" 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("<fc=#404040>X</fc>"); + printf("<fc=#404040></fc> "); exit } @@ -100,4 +100,4 @@ if ($is_day) { $conditions = %conditions_night{$sky_conditions}; } -printf("<fc=#a0a0a0><fn=3>$city</fn><fn=3>$dir</fn><fn=3>${wind_speed}</fn></fc> $conditions<fn=3> <fc=#a0a0a0>%.0f°F</fc></fn>\n", $temp); +printf("<fc=#a0a0a0><fn=3>$city</fn> <fn=3>$dir</fn> <fn=3>${wind_speed}</fn></fc> $conditions<fn=3> <fc=#a0a0a0>%.0f°F</fc></fn> \n", $temp); |