summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-07-04 01:41:34 +0100
committerAdam <56338480+adastx@users.noreply.github.com>2022-07-04 01:41:34 +0100
commit19558368f903f885c39031f3f5ff07cc7882067a (patch)
treeb059f898ae4511ff844b45da33a1c8dea0d7545a /.config/polybar
parentb24bd489e29c180889dea172d13465f336364a41 (diff)
polybar: weather (ntfd)
Diffstat (limited to '.config/polybar')
-rw-r--r--.config/polybar/config.ini15
-rwxr-xr-x.config/polybar/extra/updates-pacman-aurhelper.sh2
2 files changed, 13 insertions, 4 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 72d0c27..a37c66a 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -39,12 +39,14 @@ module-margin-left = 0
module-margin-right = 2
font-0 = Averia Libre:style=bold:size=16;5
-font-1 = Font Awesome 5 Free Regular:size=14;4
-font-2 = Font Awesome 5 Free Solid:size=14;4
+font-1 = WeatherIcons:size=14;5
+font-2 = Font Awesome 5 Free Regular:size=14;4
+font-3 = Font Awesome 5 Free Solid:size=14;4
+font-4 = MaterialIcons:size=18;7
modules-left = i3 xwindow
modules-center =
-modules-right = updates-pacman-aurhelper xkeyboard pulseaudio battery date
+modules-right = weather updates-pacman-aurhelper xkeyboard pulseaudio battery date
tray-maxsize = 22
tray-position = right
@@ -185,6 +187,13 @@ interval = 600
format-foreground = ${root.foreground}
; format-background = ${colors.background-module}
+
+[module/weather]
+type = custom/script
+exec = busctl --user -j get-property io.ntfd /weather openweathermap.strings RenderedTemplate | jq -r .data
+interval = 60
+
+
[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..9a11302 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