diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-28 23:52:09 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-06-29 00:11:43 +0200 |
commit | 83e5614bad3cfc17682921d273cbb2a8fcbe2c5d (patch) | |
tree | 2122df634025cd84641babd0e1514b89ad70b504 /.config | |
parent | 908123ea757960b373520777ee86250305b2e6c3 (diff) |
polybar: better weather display (ntfd)
Diffstat (limited to '.config')
-rwxr-xr-x | .config/X11/xinitrc | 1 | ||||
-rw-r--r-- | .config/polybar/config.ini | 22 | ||||
-rwxr-xr-x | .config/polybar/extra/updates-pacman-aurhelper.sh | 2 |
3 files changed, 17 insertions, 8 deletions
diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index bae7180..72dba2e 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -38,6 +38,7 @@ playerctld daemon & nitrogen --restore & redshift -l 56:10 & nm-applet & +ntfd & unclutter -b & nextcloud --background & ~/.local/bin/picom-toggle & diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index a25bc36..df40897 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -39,9 +39,10 @@ module-margin-right = 2 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 +font-1 = WeatherIcons:size=16;4.8 +font-2 = Font Awesome 5 Free Solid:size=14;4.5 +font-3 = Font Awesome 5 Free Regular:size=14;4.5 +font-4 = MaterialIcons:size=19;6.7 modules-left = i3 xwindow modules-center = @@ -206,12 +207,19 @@ 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" + + [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" +exec = busctl --user -j get-property io.ntfd /weather openweathermap.strings RenderedTemplate | jq -r .data +interval = 60 + [settings] screenchange-reload = true diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh index 20d5a8f..2857831 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 " 1 " else echo "" fi |