aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-06-29 13:25:34 +0100
committerCori Barker <coribarker2@gmail.com>2026-06-29 13:25:34 +0100
commit46e47f6903383f04737ea3289c68636caa586af5 (patch)
treecfc402938bbef174d3f486a80c72e7253e4b5766
parent8c63780c5e6dc9fbde7bf65ea65a09b454e5bc97 (diff)
Created PC configurationcori-pc
-rw-r--r--config.ini61
-rwxr-xr-xpolybar-launch.sh17
2 files changed, 31 insertions, 47 deletions
diff --git a/config.ini b/config.ini
index 1277963..0dd7660 100644
--- a/config.ini
+++ b/config.ini
@@ -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
diff --git a/polybar-launch.sh b/polybar-launch.sh
deleted file mode 100755
index 6ef9fa2..0000000
--- a/polybar-launch.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bash
-
-# Wait briefly for WM to settle
-sleep 0.5
-
-# Kill existing bars
-killall -q polybar
-while pgrep -u $UID -x polybar > /dev/null; do sleep 0.1; done
-
-# Launch on all connected monitors
-if type "xrandr" > /dev/null 2>&1; then
- for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
- MONITOR=$m polybar --reload main &
- done
-else
- polybar --reload main &
-fi