2019-07-18 16:45:46 +00:00
|
|
|
[module/windows]
|
|
|
|
type = custom/text
|
|
|
|
content =" "
|
2020-07-03 18:08:19 +00:00
|
|
|
click-left = rofi -modi window -show window -theme $ROFI_THEME -show-icons -location 1 -yoffset +45 -xoffset +20
|
2019-07-18 16:45:46 +00:00
|
|
|
|
|
|
|
[module/mpd]
|
|
|
|
type = internal/mpd
|
|
|
|
format-online-prefix = " "
|
|
|
|
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
|
|
|
|
|
|
|
|
icon-prev =
|
|
|
|
icon-stop =
|
|
|
|
icon-play =
|
|
|
|
icon-pause =
|
|
|
|
icon-next =
|
|
|
|
|
|
|
|
label-song-maxlen = 30
|
|
|
|
label-song-ellipsis = true
|
|
|
|
|
|
|
|
[module/cpu_bar]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/cpu_usage.py
|
2022-03-05 12:00:21 +00:00
|
|
|
format-prefix = "%{A1:$TERMINAL_CMD 'top -o %CPU' &:}CPU %{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
interval = 5
|
|
|
|
|
|
|
|
[module/memory_bar]
|
|
|
|
type = internal/memory
|
|
|
|
format = <bar-used>
|
2022-03-05 18:33:45 +00:00
|
|
|
format-prefix = "%{A1:$TERMINAL_CMD 'top -o RES' &:} %{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
format-prefix-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
bar-used-width = 10
|
|
|
|
bar-used-gradient = false
|
|
|
|
bar-used-indicator =
|
|
|
|
bar-used-indicator-foreground = ${colors.foreground}
|
|
|
|
bar-used-indicator-font = 0
|
2022-03-05 18:33:45 +00:00
|
|
|
bar-used-fill = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
bar-used-foreground-0 = ${colors.bn}
|
|
|
|
bar-used-foreground-1 = ${colors.bn}
|
|
|
|
bar-used-foreground-2 = ${colors.bn}
|
|
|
|
bar-used-foreground-3 = ${colors.bm}
|
|
|
|
bar-used-foreground-4 = ${colors.bm}
|
|
|
|
bar-used-foreground-5 = ${colors.bm}
|
|
|
|
bar-used-foreground-6 = ${colors.bd}
|
|
|
|
bar-used-foreground-7 = ${colors.bd}
|
|
|
|
bar-used-foreground-8 = ${colors.bd}
|
2022-03-05 18:33:45 +00:00
|
|
|
bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
bar-used-empty-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
[module/wireless]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlp4s0
|
|
|
|
interval = 3.0
|
|
|
|
|
|
|
|
format-connected = <ramp-signal> <label-connected>
|
2022-03-05 12:00:21 +00:00
|
|
|
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%essid%%{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
format-disconnected =
|
|
|
|
|
|
|
|
ramp-signal-0 =
|
|
|
|
ramp-signal-1 =
|
|
|
|
ramp-signal-2 =
|
|
|
|
ramp-signal-3 =
|
|
|
|
ramp-signal-4 =
|
|
|
|
ramp-signal-foreground = ${colors.foreground}
|
|
|
|
|
|
|
|
[module/wired]
|
|
|
|
type = internal/network
|
|
|
|
interface = enp3s0
|
|
|
|
|
|
|
|
accumulate-stats = true
|
|
|
|
unknown-as-up = true
|
|
|
|
|
|
|
|
format-connected = <label-connected>
|
2020-03-15 19:09:47 +00:00
|
|
|
format-connected-prefix = ""
|
2019-07-18 16:45:46 +00:00
|
|
|
format-disconnected = <label-disconnected>
|
|
|
|
|
2022-03-05 12:00:21 +00:00
|
|
|
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8% %upspeed:8% %{A}"
|
2020-03-15 19:09:47 +00:00
|
|
|
# keep speed meter for other devices
|
2022-03-05 12:00:21 +00:00
|
|
|
label-disconnected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8% %upspeed:8% %{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
|
2020-03-22 18:32:43 +00:00
|
|
|
[module/network_usage]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/network_usage
|
|
|
|
click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager &
|
|
|
|
double-click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager &
|
2020-06-30 17:50:03 +00:00
|
|
|
click-right = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager &
|
2020-03-22 18:32:43 +00:00
|
|
|
tail = true
|
2019-07-18 16:45:46 +00:00
|
|
|
|
2021-08-29 15:43:15 +00:00
|
|
|
[module/network_status]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/network_status
|
2022-01-30 12:13:46 +00:00
|
|
|
click-left = $TERMINAL_CMD "fping --elapsed --count 100 1.0.0.1"
|
2021-08-29 15:43:15 +00:00
|
|
|
interval = 5
|
|
|
|
|
2020-03-22 18:32:43 +00:00
|
|
|
[module/vpn]
|
2019-07-18 16:45:46 +00:00
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/check_vpn
|
|
|
|
interval = 5
|
|
|
|
|
|
|
|
[module/spotify]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/spotify.py
|
|
|
|
interval = 5
|
|
|
|
format-prefix = " "
|
|
|
|
format-font = 1
|
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
date = "%d de %B"
|
|
|
|
date-alt = "%d de %B de %Y"
|
|
|
|
|
|
|
|
time = %H:%M
|
|
|
|
time-alt = %H:%M:%S
|
|
|
|
|
|
|
|
label = %{F#f5a70a}%{T4}%time%%{F-}%{T-} | %date%
|
|
|
|
|
2020-03-16 18:47:08 +00:00
|
|
|
[module/custom_date]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/custom_date
|
|
|
|
interval = 1
|
|
|
|
click-left = gnome-calendar
|
|
|
|
|
2019-07-18 16:45:46 +00:00
|
|
|
[module/alsa_bar]
|
|
|
|
type = internal/alsa
|
|
|
|
|
|
|
|
format-volume = <label-volume> <bar-volume>
|
2022-03-05 12:00:21 +00:00
|
|
|
label-volume = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
|
|
|
|
format-muted-prefix = ""
|
|
|
|
format-muted-foreground = ${colors.foreground-alt}
|
|
|
|
label-muted = sound muted
|
|
|
|
|
|
|
|
bar-volume-width = 10
|
|
|
|
bar-volume-foreground-0 = ${colors.bn}
|
|
|
|
bar-volume-foreground-1 = ${colors.bn}
|
|
|
|
bar-volume-foreground-2 = ${colors.bn}
|
|
|
|
bar-volume-foreground-3 = ${colors.bn}
|
|
|
|
bar-volume-foreground-4 = ${colors.bn}
|
|
|
|
bar-volume-foreground-5 = ${colors.bn}
|
|
|
|
bar-volume-foreground-6 = ${colors.bm}
|
|
|
|
bar-volume-foreground-7 = ${colors.bm}
|
|
|
|
|
|
|
|
|
|
|
|
bar-volume-gradient = false
|
|
|
|
bar-volume-indicator =
|
2022-03-05 12:00:21 +00:00
|
|
|
bar-volume-fill = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A}"
|
|
|
|
bar-volume-empty = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A}"
|
2019-07-18 16:45:46 +00:00
|
|
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
click-right = $TERMINAL_CMD 'pulsemixer'
|
|
|
|
|
|
|
|
[module/updates]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/check_updates
|
|
|
|
tail = true
|
|
|
|
interval = 5
|
2019-08-04 18:02:09 +00:00
|
|
|
click-left = $TERMINAL_CMD "yay -Suy" &
|
2020-04-05 09:43:56 +00:00
|
|
|
|
2021-07-13 14:10:58 +00:00
|
|
|
[module/polywins]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/polywins 2>/dev/null
|
|
|
|
format = <label>
|
|
|
|
label = "%output%"
|
|
|
|
label-padding = 0
|
|
|
|
tail = true
|
2020-06-27 14:22:03 +00:00
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
|
|
|
|
full-at = 95
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC
|
|
|
|
|
|
|
|
format-charging = <label-charging>
|
2021-01-23 18:18:39 +00:00
|
|
|
label-charging = %percentage%%
|
2020-06-27 14:22:03 +00:00
|
|
|
format-discharging = <label-discharging>
|
2021-01-23 18:18:39 +00:00
|
|
|
label-discharging = %percentage%%
|
2020-06-27 14:22:03 +00:00
|
|
|
label-full =
|
2021-08-08 10:37:07 +00:00
|
|
|
|
|
|
|
[module/docker]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/docker
|
|
|
|
exec-if = docker ps -q
|
2023-04-28 17:23:21 +00:00
|
|
|
interval = 10
|
2021-08-08 10:37:07 +00:00
|
|
|
label = "%output%"
|