From 81995c80d712323422220fef96d253f65a1438d0 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:48:16 +0200 Subject: polybar: cleaner modules --- .config/polybar/config.ini | 41 +++-------------------- .config/polybar/extra/updates-pacman-aurhelper.sh | 2 +- 2 files changed, 5 insertions(+), 38 deletions(-) diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 66641ad..a8ba2de 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -12,8 +12,6 @@ primary = #ffb52a secondary = #e60053 alert = #bd2c40 - - [bar/bar1] monitor = DP-2 width = 100% @@ -56,13 +54,10 @@ cursor-scroll = ns-resize enable-ipc = true - [bar/bar2] monitor = DP-4.8 width = 100% height = 30 -;offset-x = 1% -;offset-y = 1% radius = 0 fixed-center = false bottom = true @@ -90,24 +85,18 @@ modules-right = date2 tray-position = none tray-padding = 2 -;tray-background = #0063ff cursor-click = pointer 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} @@ -115,8 +104,6 @@ label-layout-background = ${colors.background-module} label-indicator-padding = 2 label-indicator-background = ${colors.secondary} - - [module/i3] type = internal/i3 format = @@ -192,47 +179,27 @@ 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 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" - +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 - +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 diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh index 9a11302..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 -- cgit v1.2.3-70-g09d2