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

[polybar] Add custom date module

This commit is contained in:
2020-03-16 19:47:08 +01:00
parent 5a007f25e8
commit c132945659
3 changed files with 17 additions and 5 deletions

View File

@ -21,14 +21,14 @@ label-song-ellipsis = true
type = custom/script
exec = ~/.config/polybar/scripts/cpu_usage.py
format-prefix = "%{A1:$TERMINAL_CMD 'top -o %CPU' &:} %{A-}"
format-prefix = "%{A1:$TERMINAL_CMD 'top -o %CPU' &:}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 = "%{A1:$TERMINAL_CMD 'top -o RES' &:} %{A-}"
format-prefix-foreground = ${colors.foreground-alt}
bar-used-width = 10
@ -106,6 +106,13 @@ time-alt = %H:%M:%S
label = %{F#f5a70a}%{T4}%time%%{F-}%{T-} | %date%
[module/custom_date]
type = custom/script
exec = ~/.config/polybar/scripts/custom_date
interval = 1
click-left = gnome-calendar
[module/alsa_bar]
type = internal/alsa
@ -142,4 +149,3 @@ exec = ~/.config/polybar/scripts/check_updates
tail = true
interval = 5
click-left = $TERMINAL_CMD "yay -Suy" &