From 852f588bd33244a2ec0779f7f0067c9812010ab5 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Tue, 6 Apr 2021 23:10:45 -0700 Subject: [PATCH] Add weather module (not part of dotfiles) --- polybar/.config/polybar/config | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index c9e300e..6fb6e3c 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -39,7 +39,7 @@ line-color = #f00 border-size = 4 border-color = #00000000 -padding-left = 0 +padding-left = 2 padding-right = 2 module-margin-left = 1 @@ -47,6 +47,7 @@ module-margin-right = 2 font-0 = Iosevka:pixelsize=9;1 font-1 = Ionicons:pixelsize=9;1 +font-2 = Weather Icons:size=7;1 ; font-0 = fixed:pixelsize=10;1 ; font-1 = Wuncon Siji:pixelsize=12;1 ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 @@ -54,7 +55,7 @@ font-1 = Ionicons:pixelsize=9;1 modules-left = bspwm i3 modules-center = -modules-right = filesystem volume memory cpu battery temperature date wlan powermenu +modules-right = openweathermap-fullfeatured filesystem volume memory cpu battery temperature date wlan powermenu tray-position = right tray-padding = 2 @@ -75,6 +76,12 @@ tray-padding = 2 cursor-click = pointer cursor-scroll = ns-resize +[module/openweathermap-fullfeatured] +type = custom/script +exec = ~/software/polybar-scripts/polybar-scripts/openweathermap-fullfeatured/openweathermap-fullfeatured.sh +interval = 600 +label-font = 3 + [module/xwindow] type = internal/xwindow label = %title:0:30:...% @@ -101,7 +108,7 @@ interval = 25 mount-0 = / -label-mounted = %{F#cf5fb4}%mountpoint%%{F-}: %percentage_used%% +label-mounted = %{F}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt}