summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/polybar/config.ini91
-rwxr-xr-x.config/polybar/extra/updates-pacman-aurhelper.sh2
2 files changed, 40 insertions, 53 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 83e4058..f0d7a1b 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -1,13 +1,22 @@
[colors]
-background = #101010
-background-alt = #1b2f60
-background-module = #194129
-foreground = #f1e1b7
-foreground-alt = #254183
-primary = #ffb52a
-secondary = #e60053
+bg = #1e1e2e
+fg = #cdd6f4
+blue = #89b4fa
+purple = #cba6f7
+green = #a6e3a1
+yellow = #f9e2af
+orange = #fab387
+red = #f38ba8
+black = #000
+white = #FFF
+gray = #999
alert = #bd2c40
+# i3wm
+focused-bg = #254183
+unfocused-bg = #2c2c39
+visible-bg = #182858
+
[bar/bar1]
monitor = ${env:MONITOR:}
width = 100%
@@ -15,8 +24,8 @@ height = 30
fixed-center = true
bottom = false
-background = ${colors.background}
-foreground = ${colors.foreground}
+background = ${colors.bg}
+foreground = ${colors.fg}
module-margin-right = 2
@@ -31,7 +40,7 @@ font-4 = MaterialIcons:size=18;7
modules-left = i3 xwindow
modules-center =
-modules-right = updates-pacman-aurhelper forecast xkeyboard pulseaudio battery date
+modules-right = weather updates-pacman-aurhelper xkeyboard pulseaudio battery date
tray-maxsize = 22
tray-position = none
@@ -43,16 +52,17 @@ enable-ipc = true
[module/xkeyboard]
type = internal/xkeyboard
-
blacklist-0 = num lock
+
format = <label-layout><label-indicator>
format-spacing = 1
label-layout-padding = 2
-label-layout-background = ${colors.background-module}
+label-layout-foreground = ${colors.yellow}
label-indicator-padding = 2
-label-indicator-background = ${colors.secondary}
+label-indicator-background = ${colors.alert}
+label-indicator-foreground = ${colors.white}
[module/i3]
type = internal/i3
@@ -64,24 +74,23 @@ wrapping-scroll = false
pin-workspaces = true
label-mode-padding = 3
-label-mode-foreground = #000
-label-mode-background = ${colors.primary}
+label-mode-foreground = ${colors.black}
+label-mode-background = ${colors.purple}
; focused = Active workspace on focused monitor
label-focused = %index%
-label-focused-background = ${colors.background-module}
-label-focused-underline= ${colors.primary}
+label-focused-background = ${colors.focused-bg}
+label-focused-foreground = ${colors.yellow}
label-focused-padding = 3
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
-label-unfocused-background = #161616
+label-unfocused-background = ${colors.unfocused-bg}
label-unfocused-padding = 3
; visible = Active workspace on unfocused monitor
label-visible = %index%
-label-visible-background = #0f1b36
-label-visible-underline = ${self.label-focused-underline}
+label-visible-background = ${colors.visible-bg}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
@@ -102,6 +111,10 @@ format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <ramp-capacity> <label-full>
+format-charging-foreground = ${colors.red}
+format-discharging-foreground = ${colors.red}
+format-full-foreground = ${colors.red}
+
label-charging = %percentage%
label-discharging = %percentage%
label-full = %percentage%
@@ -110,13 +123,6 @@ label-charging-padding-right = 2
label-discharging-padding-right = 2
label-full-padding-right = 2
-format-charging-background = ${colors.background-module}
-format-discharging-background = ${colors.background-module}
-format-full-background = ${colors.background-module}
-label-charging-background = ${colors.background-module}
-label-discharging-background = ${colors.background-module}
-label-full-background = ${colors.background-module}
-
ramp-capacity-padding-left = 2
ramp-capacity-0 = " "
ramp-capacity-1 = " "
@@ -143,37 +149,19 @@ time-alt = %H:%M
time = %H:%M
label = %date%%time%
-label-background = ${colors.background-module}
-label-padding = 2
-
-[module/date2]
-type = internal/date
-interval = 5
-
-date = ""
-date-alt = "%a, %d %b "
-
-time = %H:%M
-time-alt = %H:%M
-
-label = %date%%time%
-label-background = ${colors.background-module}
+label-foreground = ${colors.blue}
label-padding = 2
[module/pulseaudio]
type = internal/pulseaudio
-
format-volume = <label-volume>
-format-volume-background = ${colors.background}
label-volume = " %percentage%"
-label-volume-foreground = ${root.foreground}
-label-volume-background = ${colors.background-module}
+label-volume-foreground = ${colors.green}
label-volume-padding = 2
label-muted = " muted"
-label-muted-foreground = #999
-label-muted-background = ${colors.background-module}
+label-muted-foreground = ${colors.gray}
label-muted-padding = 2
[module/xwindow]
@@ -185,15 +173,14 @@ label-maxlen = 50
type = custom/script
exec = /home/adam/.config/polybar/extra/updates-pacman-aurhelper.sh
interval = 600
-format-foreground = ${root.foreground}
-format-background = ${colors.background-module}
+format-foreground = ${colors.orange}
format-padding = 2
-[module/forecast]
+[module/weather]
type = custom/script
exec = /home/adam/.local/bin/forecast
interval = 600
-format-background = ${colors.background-module}
+format-foreground = ${colors.purple}
format-padding = 2
[settings]
diff --git a/.config/polybar/extra/updates-pacman-aurhelper.sh b/.config/polybar/extra/updates-pacman-aurhelper.sh
index 3f631b6..a785cd7 100755
--- a/.config/polybar/extra/updates-pacman-aurhelper.sh
+++ b/.config/polybar/extra/updates-pacman-aurhelper.sh
@@ -16,7 +16,7 @@ fi
updates=$((updates_arch + updates_aur))
if [ "$updates" -gt 0 ]; then
- echo " $updates"
+ echo " $updates"
else
echo ""
fi