mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-04 05:19:26 +00:00
First commit
This commit is contained in:
152
.config/polybar/modules.ini
Normal file
152
.config/polybar/modules.ini
Normal file
@ -0,0 +1,152 @@
|
||||
[module/windows]
|
||||
type = custom/text
|
||||
content =" "
|
||||
click-left = rofi -modi window -show window -theme orange -show-icons -location 1 -yoffset +45 -xoffset +20
|
||||
|
||||
[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
|
||||
format-prefix = "%{A1:$TERMINAL_CMD 'top -o %CPU' &:} %{A-}"
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
interval = 5
|
||||
|
||||
[module/memory_bar]
|
||||
type = internal/memory
|
||||
format = <bar-used>
|
||||
format-prefix = "%{A1:$TERMINAL_CMD 'top -o RES' &:}RAM %{A-}"
|
||||
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/network_manager]
|
||||
type = custom/text
|
||||
content = ""
|
||||
content-font = 2
|
||||
; since I'm in zsh, bash invocation is necessary even if the shebang is set
|
||||
click-left = /usr/bin/bash ~/.config/polybar/scripts/nmcli_manager
|
||||
|
||||
[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>
|
||||
format-connected-prefix =
|
||||
format-disconnected = <label-disconnected>
|
||||
|
||||
label-connected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}%downspeed:8% %upspeed:8% %{A-}"
|
||||
label-disconnected = "%{A1:/usr/bin/bash ~/.config/polybar/scripts/nmcli_manager:}Not connected%{A-}"
|
||||
|
||||
[module/vpn]
|
||||
|
||||
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%
|
||||
|
||||
[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
|
||||
click-left = $TERMINAL_CMD "yay -Suy --noconfirm" &
|
||||
|
Reference in New Issue
Block a user