1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-04 04:09:26 +00:00

[polybar] Add Syncthing status and improve output icon sizes

This commit is contained in:
2024-06-15 21:21:20 +02:00
parent 42647db6d2
commit 960573ae4e
9 changed files with 49 additions and 19 deletions

View File

@ -27,7 +27,7 @@ interval = 5
[module/memory_bar]
type = internal/memory
format = <bar-used>
format-prefix = "%{A1:$TERMINAL_CMD top -o RES &:}%{A}"
format-prefix = "%{A1:$TERMINAL_CMD top -o RES &:}%{T2} %{T-}%{A}"
format-prefix-foreground = ${colors.foreground-alt}
bar-used-width = 10
@ -120,7 +120,7 @@ click-left = gnome-calendar
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = "%{A3:$TERMINAL_CMD pulsemixer &:}%{A}"
label-volume = "%{A3:$TERMINAL_CMD pulsemixer &:}%{T4}%{T-}%{A}"
label-volume-foreground = ${root.foreground}
format-muted-prefix = ""
@ -161,6 +161,13 @@ label = "%output%"
label-padding = 0
tail = true
[module/syncthing_status]
type = custom/script
exec = ~/.config/polybar/scripts/syncthing_status
interval = 10
exec-if = syncthing cli show system > /dev/null
click-left = $BROWSER_CMD $(syncthing cli show system | jq -r .guiAddressUsed)
[module/battery]
type = internal/battery
@ -179,7 +186,7 @@ type = custom/script
exec = ~/.config/polybar/scripts/docker
exec-if = docker ps -q
interval = 10
label = "%output%"
label = "%{T2}%{T-}%output%"
[module/tray]
type = internal/tray