From c76369ae9bd0ec9bd3e1bb3ecd94a0abfccb0285 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 17 Jul 2022 17:18:46 +0200 Subject: polybar: switched to custom forecast app --- .config/X11/xinitrc | 1 - .config/polybar/config.ini | 36 ++++-------------------------------- 2 files changed, 4 insertions(+), 33 deletions(-) (limited to '.config') diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 7eaae4a..fe2dd87 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -38,7 +38,6 @@ 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 b92911e..79b8a40 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -1,25 +1,17 @@ [colors] -;background = ${xrdb:color0:#222} -;background = #10152c -;background = #080f1f background = #090809 background-alt = #1b2f60 background-module = #111e3d -;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #254183 primary = #ffb52a secondary = #e60053 alert = #bd2c40 - - [bar/bar1] monitor = ${env:MONITOR:} width = 100% height = 30 -;offset-x = 1% -;offset-y = 1% radius = 0 fixed-center = false bottom = false @@ -46,7 +38,7 @@ font-4 = MaterialIcons:size=18;7 modules-left = i3 xwindow modules-center = -modules-right = updates-pacman-aurhelper weather xkeyboard pulseaudio battery date +modules-right = updates-pacman-aurhelper forecast xkeyboard pulseaudio battery date tray-maxsize = 22 tray-position = right @@ -56,17 +48,12 @@ cursor-scroll = ns-resize enable-ipc = true - - [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock format = format-spacing = 0 -;format-prefix = "  " -;format-prefix-foreground = ${colors.foreground} -;format-prefix-background = ${colors.background-alt} label-layout = " %layout% " label-layout-background = ${colors.background-module} @@ -74,8 +61,6 @@ label-layout-background = ${colors.background-module} label-indicator-padding = 2 label-indicator-background = ${colors.secondary} - - [module/i3] type = internal/i3 format = @@ -174,13 +159,11 @@ label-muted = "  muted " label-muted-foreground = #999 label-muted-background = ${colors.background-module} - [module/xwindow] type = internal/xwindow format-padding = 3 label-maxlen = 50 - [module/updates-pacman-aurhelper] type = custom/script exec = /home/adam/.config/polybar/extra/updates-pacman-aurhelper.sh @@ -188,26 +171,15 @@ interval = 600 format-foreground = ${root.foreground} format-background = ${colors.background-module} - -[module/weather] +[module/forecast] type = custom/script -exec = busctl --user -j get-property io.ntfd /weather openweathermap.strings RenderedTemplate | jq -r .data -interval = 60 +exec = /home/adam/.local/bin/forecast +interval = 1800 format-background = ${colors.background-module} [settings] screenchange-reload = true -;compositing-background = xor -;compositing-background = screen -;compositing-foreground = source -;compositing-border = over -;pseudo-transparency = false - - [global/wm] margin-top = 5 margin-bottom = 5 - -; vim:ft=dosini - -- cgit v1.2.3-70-g09d2