diff options
Diffstat (limited to '.config/polybar')
-rw-r--r-- | .config/polybar/config | 18 | ||||
-rw-r--r-- | .config/polybar/cpu.ini | 34 | ||||
-rw-r--r-- | .config/polybar/date.ini | 4 | ||||
-rw-r--r-- | .config/polybar/main.ini | 2 | ||||
-rw-r--r-- | .config/polybar/ram.ini | 71 |
5 files changed, 110 insertions, 19 deletions
diff --git a/.config/polybar/config b/.config/polybar/config index 04fa578..2833c9c 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -44,6 +44,8 @@ include-file = /home/lz/.config/polybar/xwindow.ini include-file = /home/lz/.config/polybar/pulseaudio.ini include-file = /home/lz/.config/polybar/date.ini include-file = /home/lz/.config/polybar/powermenu.ini +include-file = /home/lz/.config/polybar/cpu.ini +include-file = /home/lz/.config/polybar/ram.ini # [module/xkeyboard] # type = internal/xkeyboard @@ -84,22 +86,6 @@ include-file = /home/lz/.config/polybar/powermenu.ini # label-song-maxlen = 25 # label-song-ellipsis = true -# [module/cpu] -# type = internal/cpu -# interval = 2 -# format-prefix = " " -# format-prefix-foreground = ${colors.foreground-alt} -# format-underline = #f90000 -# label = %percentage:2%% - -# [module/memory] -# type = internal/memory -# interval = 2 -# format-prefix = " " -# format-prefix-foreground = ${colors.foreground-alt} -# format-underline = #4bffdc -# label = %percentage_used%% - # [module/wlan] # type = internal/network # interface = wlp6s0 diff --git a/.config/polybar/cpu.ini b/.config/polybar/cpu.ini new file mode 100644 index 0000000..cd1b977 --- /dev/null +++ b/.config/polybar/cpu.ini @@ -0,0 +1,34 @@ +[module/cpu] +type = internal/cpu + +# Seconds to sleep between updates +# Default: 1 +interval = 2 + +# Available tags: +# <label> (default) +# <bar-load> +# <ramp-load> +# <ramp-coreload> +format-prefix = " " +format = <label> +# format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.purple} + +# Available tokens: +# %percentage% (default) - total cpu load averaged over all cores +# %percentage-sum% - Cumulative load on all cores +# %percentage-cores% - load percentage for each core +# %percentage-core[1-9]% - load percentage for specific core +label = %percentage:2%% + +# Spacing between individual per-core ramps +ramp-coreload-spacing = 1 +ramp-coreload-0 = ▁ +ramp-coreload-1 = ▂ +ramp-coreload-2 = ▃ +ramp-coreload-3 = ▄ +ramp-coreload-4 = ▅ +ramp-coreload-5 = ▆ +ramp-coreload-6 = ▇ +ramp-coreload-7 = █ diff --git a/.config/polybar/date.ini b/.config/polybar/date.ini index 4385072..69b520c 100644 --- a/.config/polybar/date.ini +++ b/.config/polybar/date.ini @@ -20,9 +20,9 @@ time-alt = %H:%M:%S # Available tags: # <label> (default) -# format-prefix = +format-prefix = " " # format-prefix-foreground = ${colors.foreground-alt} -format = <label> +format = <label> # format-background = #55ff3399 # format-foreground = #fff format-underline = ${colors.cyan} diff --git a/.config/polybar/main.ini b/.config/polybar/main.ini index a30f346..66a9342 100644 --- a/.config/polybar/main.ini +++ b/.config/polybar/main.ini @@ -4,7 +4,7 @@ monitor = ${env:MAINMON:HDMI-0} modules-left=bspwm modules-center=xwindow -modules-right=date pulseaudio powermenu +modules-right=cpu ram pulseaudio date powermenu tray-position = right tray-padding = 2 diff --git a/.config/polybar/ram.ini b/.config/polybar/ram.ini new file mode 100644 index 0000000..407da7f --- /dev/null +++ b/.config/polybar/ram.ini @@ -0,0 +1,71 @@ +[module/ram] +type = internal/memory + +# Seconds to sleep between updates +# Default: 1 +interval = 2 + +# Available tags: +# <label> (default) +# <bar-used> +# <bar-free> +# <ramp-used> +# <ramp-free> +# <bar-swap-used> +# <bar-swap-free> +# <ramp-swap-used> +# <ramp-swap-free> +format-prefix = " " +format = <label> +# format-prefix-foreground = ${colors.foreground-alt} +format-underline = ${colors.cyan} + +# Available tokens: +# %percentage_used% (default) +# %percentage_free% +# %gb_used% +# %gb_free% +# %gb_total% +# %mb_used% +# %mb_free% +# %mb_total% +# %percentage_swap_used% +# %percentage_swap_free% +# %mb_swap_total% +# %mb_swap_free% +# %mb_swap_used% +# %gb_swap_total% +# %gb_swap_free% +# %gb_swap_used% +label = %percentage_used:2%% + +# Only applies if <bar-used> is used +bar-used-indicator = +bar-used-width = 20 +bar-used-foreground-0 = ${colors.green} +bar-used-foreground-1 = ${colors.green} +bar-used-foreground-2 = ${colors.yellow} +bar-used-foreground-3 = ${colors.red} +bar-used-fill = ▐ +bar-used-empty = ▐ +bar-used-empty-foreground = ${colors.black-alt} + +# Only applies if <ramp-used> is used +ramp-used-0 = ▁ +ramp-used-1 = ▂ +ramp-used-2 = ▃ +ramp-used-3 = ▄ +ramp-used-4 = ▅ +ramp-used-5 = ▆ +ramp-used-6 = ▇ +ramp-used-7 = █ + +# Only applies if <ramp-free> is used +ramp-free-0 = ▁ +ramp-free-1 = ▂ +ramp-free-2 = ▃ +ramp-free-3 = ▄ +ramp-free-4 = ▅ +ramp-free-5 = ▆ +ramp-free-6 = ▇ +ramp-free-7 = █ |