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
|
2020-03-16 18:47:08 +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>
|
2020-03-16 18:47:08 +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
|
|
|
|
bar-used-fill = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A-}"
|
|
|
|
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}
|
|
|
|
bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A-}"
|
|
|
|
bar-used-empty-foreground = ${colors.foreground-alt}
|
|
|
|
|
|
|
|
[module/wireless]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlp4s0
|
|
|
|
interval = 3.0
|
|
|
|
|
|
|
|
format-connected = <ramp-signal> <label-connected>
|
|
|
|
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%essid%%{A-}"
|
|
|
|
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>
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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>
|
|
|
|
label-volume = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{A-}"
|
|
|
|
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 =
|
|
|
|
bar-volume-fill = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A-}"
|
|
|
|
bar-volume-empty = "%{A3:$TERMINAL_CMD 'pulsemixer' &:}%{T5}_%{T-}%{A-}"
|
|
|
|
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
|
|
|
|
2020-04-07 16:24:25 +00:00
|
|
|
; task_manager module
|
|
|
|
include-file = ~/.config/polybar/task_manager.ini
|
2020-06-27 14:22:03 +00:00
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
|
|
|
|
full-at = 95
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC
|
|
|
|
|
|
|
|
format-charging = <label-charging>
|
|
|
|
label-charging = %percentage%%
|
|
|
|
format-discharging = <label-discharging>
|
|
|
|
label-discharging = %percentage%%
|
|
|
|
label-full =
|