diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-06-29 13:25:34 +0100 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-06-29 13:25:34 +0100 |
| commit | 46e47f6903383f04737ea3289c68636caa586af5 (patch) | |
| tree | cfc402938bbef174d3f486a80c72e7253e4b5766 /config.ini | |
| parent | 8c63780c5e6dc9fbde7bf65ea65a09b454e5bc97 (diff) | |
Created PC configurationcori-pc
Diffstat (limited to 'config.ini')
| -rw-r--r-- | config.ini | 61 |
1 files changed, 31 insertions, 30 deletions
@@ -1,11 +1,13 @@ ;; ~/.config/polybar/config.ini + [colors] -bg = #111111 -bg-alt = #1c1c1c -fg = #e8e8e8 -fg-dim = #b0b0b0 -accent = #285577 -urgent = #cc4444 +bg = #080808 +bg-alt = #101010 +fg = #d8d8d8 +fg-dim = #8c8c8c +accent = #1f3d5c +urgent = #8b2f2f + [bar/main] monitor = width = 100% @@ -19,22 +21,20 @@ padding-left = 0 padding-right = 0 module-margin-left = 0 module-margin-right = 0 -font-0 = "Fira Nerd Font:pixelsize=11:antialias=true;3" -modules-left = xmonad -modules-center = -modules-right = cpu memory volume battery date time -tray-position = right -tray-padding = 6 -tray-background = ${colors.bg} -tray-maxsize = 14 -cursor-default = default -cursor-click = default -cursor-scroll = default +font-0 = "Fira Nerd Font:pixelsize=11:antialias=true;3" +modules-left = xmonad +modules-center = +modules-right = cpu memory volume date time tray +cursor-default = default +cursor-click = default +cursor-scroll = default + [module/xmonad] -type = custom/script -exec = tail -F /tmp/xmonad-log 2>/dev/null -tail = true -format-padding = 1 +type = custom/script +exec = tail -F /tmp/xmonad-log 2>/dev/null +tail = true +format-padding = 1 + [module/cpu] type = internal/cpu interval = 2 @@ -44,6 +44,7 @@ format-padding = 2 format-margin-left = 2 label = CPU %percentage%% label-foreground = ${colors.fg-dim} + [module/memory] type = internal/memory interval = 2 @@ -53,6 +54,7 @@ format-padding = 2 format-margin-left = 2 label = MEM %used% label-foreground = ${colors.fg-dim} + [module/volume] type = custom/script exec = pamixer --get-volume-human 2>/dev/null || echo -- @@ -63,15 +65,7 @@ format-padding = 2 format-margin-left = 2 label = VOL %output% label-foreground = ${colors.fg-dim} -[module/battery] -type = custom/script -exec = now=$(cat /sys/class/power_supply/BAT0/charge_now); full=$(cat /sys/class/power_supply/BAT0/charge_full); status=$(cat /sys/class/power_supply/BAT0/status); pct=$((now * 100 / full)); suffix=""; [ "$status" = "Charging" ] && suffix=" ↑"; [ "$pct" -ge 98 ] && echo "BAT FULL" || echo "BAT ${pct}%${suffix}" -interval = 30 -format = <label> -format-background = ${colors.bg-alt} -format-padding = 2 -format-margin-left = 2 -label-foreground = ${colors.fg-dim} + [module/date] type = internal/date interval = 10 @@ -82,6 +76,7 @@ format-padding = 2 format-margin-left = 2 label = %date% label-foreground = ${colors.fg-dim} + [module/time] type = internal/date interval = 10 @@ -92,3 +87,9 @@ format-padding = 2 format-margin-left = 2 label = %date% label-foreground = #ffffff + +[module/tray] +type = internal/tray +tray-padding = 6 +tray-background = ${colors.bg} +tray-maxsize = 14 |
