diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-28 18:28:04 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-28 18:28:04 +0200 |
commit | 0ebe1f840b89ae5d5c29df75f0789ed9f0842341 (patch) | |
tree | 06a2fde85adcc545278dba471bb6b545d5ec7950 /.config/polybar | |
parent | fff21d95c2e54a2b818a50806078eb708aad4e5e (diff) |
polybar: show current weather
Diffstat (limited to '.config/polybar')
-rw-r--r-- | .config/polybar/config.ini | 11 | ||||
-rwxr-xr-x | .config/polybar/extra/updates-pacman-aurhelper.sh | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 9086623..a25bc36 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -41,10 +41,11 @@ padding-right = 1 font-0 = Averia Libre:style=bold:size=15;3.8 font-1 = Font Awesome 5 Free Solid:size=14;4.5 font-2 = Font Awesome 5 Free Regular:size=14;4.5 +font-3 = NotoSans Nerd Font:style=Regular:size=15;4.8 modules-left = i3 xwindow modules-center = -modules-right = updates-pacman-aurhelper xkeyboard pulseaudio date +modules-right = weather updates-pacman-aurhelper xkeyboard pulseaudio date tray-maxsize = 25 tray-position = right @@ -204,6 +205,14 @@ interval = 600 format-foreground = ${root.foreground} ; format-background = ${colors.background-module} + +[module/weather] +type = custom/script +exec = wedder +exec-if = ping openweathermap.org -c 1 +tail = true +click-left = xdg-open "https://google.de/search?q=weather" + [settings] screenchange-reload = true ;compositing-background = xor diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh index ec5cb53..20d5a8f 100755 --- a/.config/polybar/extra/updates-pacman-aurhelper.sh +++ b/.config/polybar/extra/updates-pacman-aurhelper.sh @@ -16,7 +16,7 @@ fi updates=$((updates_arch + updates_aur)) if [ "$updates" -gt 0 ]; then - echo " $updates " + echo " $updates " else echo "" fi |