summaryrefslogtreecommitdiff
path: root/.config/polybar/config
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2020-07-20 17:12:30 -0400
committerAndrew Guschin <saintruler@gmail.com>2020-07-20 17:12:30 -0400
commitf4173cd2c510631049bac9399e013a770764811e (patch)
tree180ef4da2db914962f043b00455cdfa390023465 /.config/polybar/config
parentbe9e153ae1efb20077ac519ae1374c47ab5b5e60 (diff)
Restyled polybar and tweaked openbox to use env variables
Diffstat (limited to '.config/polybar/config')
-rw-r--r--.config/polybar/config252
1 files changed, 104 insertions, 148 deletions
diff --git a/.config/polybar/config b/.config/polybar/config
index 9a87393..c0043f2 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -17,26 +17,18 @@
;==========================================================
[colors]
-;background = ${xrdb:color0:#222}
-;background = #222
background = #2e3440
-background-alt = #444
-
-;foreground = ${xrdb:color7:#222}
-;foreground = #dfdfdf
foreground = #eceff4
-foreground-alt = #555
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
+underline = #eceff4
-[bar/example]
+[bar/main]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
-height = 33
-;offset-x = 1%
-;offset-y = 1%
+height = 35
radius = 0.0
fixed-center = true
@@ -55,17 +47,17 @@ padding-right = 2
module-margin-left = 1
module-margin-right = 2
-font-0 = fixed:pixelsize=10;1
-font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
-font-2 = siji:pixelsize=10;1
+font-0 = Liberation Sans:pixelsize=12;3
+;font-0 = fixed:pixelsize=10;3
+;font-0 = ProFontIIx Nerd Font:pixelsize=1;3
+font-1 = ProFontIIx Nerd Font:pixelsize=15;3
-modules-left = bspwm i3 workspaces
-modules-center = date
-modules-right = xbacklight alsa xkeyboard memory cpu wlan eth battery temperature
+modules-left = menu bspwm i3 workspaces
+modules-center = xwindow
+modules-right = alsa xkeyboard xbacklight memory cpu wlan eth battery date
tray-position = right
tray-padding = 2
-;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
@@ -81,6 +73,38 @@ tray-padding = 2
cursor-click = pointer
cursor-scroll = ns-resize
+[module/menu]
+type = custom/text
+content = 
+content-padding = 2
+content-font = 2
+click-left = rofi -show drun -theme nord
+content-background = ${colors.foreground}
+content-foreground = ${colors.background}
+
+[module/workspaces]
+type = internal/xworkspaces
+
+pin-workspaces = false
+enable-click = true
+enable-scroll = false
+
+format = <label-state>
+format-padding = 0
+
+label-active = 
+;label-active-foreground = #eceff4
+label-active-padding = 2
+
+label-empty = 
+label-empty-padding = 2
+
+label-occupied = 
+label-occupied-padding = 2
+
+label-urgent = 
+label-urgent-padding = 2
+
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
@@ -89,17 +113,18 @@ label = %title:0:30:...%
type = internal/xkeyboard
blacklist-0 = num lock
-format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-prefix-underline = ${colors.secondary}
+format-prefix = " "
+format-prefix-foreground = ${colors.foreground}
+;format-prefix-underline = ${colors.underline}
+format-prefix-underline = ${colors.underline}
label-layout = %layout%
-label-layout-underline = ${colors.secondary}
+label-layout-underline = ${colors.underline}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
-label-indicator-underline = ${colors.secondary}
+label-indicator-underline = ${colors.underline}
[module/filesystem]
type = internal/fs
@@ -109,14 +134,14 @@ mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
-label-unmounted-foreground = ${colors.foreground-alt}
+label-unmounted-foreground = ${colors.foreground}
[module/bspwm]
type = internal/bspwm
label-focused = %index%
-label-focused-background = ${colors.background-alt}
-label-focused-underline= ${colors.primary}
+label-focused-background = ${colors.background}
+label-focused-underline= ${colors.underline}
label-focused-padding = 2
label-occupied = %index%
@@ -127,7 +152,7 @@ label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %index%
-label-empty-foreground = ${colors.foreground-alt}
+label-empty-foreground = ${colors.foreground}
label-empty-padding = 2
; Separator in between workspaces
@@ -148,8 +173,8 @@ label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %index%
-label-focused-background = ${colors.background-alt}
-label-focused-underline= ${colors.primary}
+label-focused-background = ${colors.background}
+label-focused-underline= ${colors.underline}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
@@ -170,35 +195,6 @@ label-urgent-padding = 2
; Separator in between workspaces
; label-separator = |
-[module/workspaces]
-type = internal/xworkspaces
-format = <label-state>
-
-pin-workspaces = false
-enable-click = true
-enable-scroll = false
-
-label-active = %index%
-label-active-foreground = #ffffff
-label-active-background = #000000
-label-active-underline = #00ff00
-label-active-padding = 2
-
-label-empty = %index%
-label-empty-padding = 2
-
-icon-0 = 1;1
-icon-1 = 2;1
-icon-2 = 3;1
-icon-3 = 4;1
-icon-4 = 5;1
-icon-5 = 6;1
-icon-6 = 7;1
-icon-7 = 8;1
-icon-8 = 9;1
-icon-9 = 10;1
-icon-default =
-
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
@@ -227,7 +223,7 @@ bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
-bar-empty-foreground = ${colors.foreground-alt}
+bar-empty-foreground = ${colors.foreground}
[module/backlight-acpi]
inherit = module/xbacklight
@@ -237,17 +233,16 @@ card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
-format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #f90000
+format-prefix = " "
+format-underline = ${colors.underline}
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #4bffdc
+format-prefix-foreground = ${colors.foreground}
+format-underline = ${colors.underline}
label = %percentage_used%%
[module/wlan]
@@ -255,109 +250,73 @@ type = internal/network
interface = net1
interval = 3.0
-format-connected = <ramp-signal> <label-connected>
-format-connected-underline = #9f78e1
-label-connected = %essid%
-
-format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
+format-connected = <label-connected>
+label-connected = %local_ip%
+format-connected-prefix = "直 "
+format-connected-underline = ${colors.underline}
-ramp-signal-0 = 
-ramp-signal-1 = 
-ramp-signal-2 = 
-ramp-signal-3 = 
-ramp-signal-4 = 
-ramp-signal-foreground = ${colors.foreground-alt}
+format-disconnected = <label-disconnected>
+label-disconnected = "睊 "
+format-disconnected-underline = ${self.format-connected-underline}
[module/eth]
type = internal/network
interface = eth0
interval = 3.0
-format-connected-underline = #55aa55
-format-connected-prefix = " "
-format-connected-prefix-foreground = ${colors.foreground-alt}
+format-connected = <label-connected>
label-connected = %local_ip%
+format-connected-prefix = " "
+format-connected-prefix-foreground = ${colors.foreground}
+format-connected-underline = ${colors.underline}
-format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
+format-disconnected = <label-disconnected>
+label-disconnected = " "
+format-disconnected-underline = ${self.format-connected-underline}
[module/date]
type = internal/date
-interval = 5
-date =
-date-alt = " %Y-%m-%d"
+label = %date% %time%
+format-prefix = " "
+format-prefix-foreground = ${colors.foreground}
+format-underline = ${colors.underline}
+date = "%d %b (%a)"
time = %H:%M
-time-alt = %H:%M:%S
-format-prefix = 
-format-prefix-foreground = ${colors.foreground-alt}
-format-underline = #0a6cf5
-
-label = %date% %time%
+interval = 15
[module/pulseaudio]
type = internal/pulseaudio
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL %percentage%%
+format-volume = "<ramp-volume> <label-volume>"
+label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
-label-muted = 🔇 muted
-label-muted-foreground = #666
-
-bar-volume-width = 10
-bar-volume-foreground-0 = #55aa55
-bar-volume-foreground-1 = #55aa55
-bar-volume-foreground-2 = #55aa55
-bar-volume-foreground-3 = #55aa55
-bar-volume-foreground-4 = #55aa55
-bar-volume-foreground-5 = #f5a70a
-bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = false
-bar-volume-indicator = |
-bar-volume-indicator-font = 2
-bar-volume-fill = ─
-bar-volume-fill-font = 2
-bar-volume-empty = ─
-bar-volume-empty-font = 2
-bar-volume-empty-foreground = ${colors.foreground-alt}
+format-muted-prefix = 婢
+format-muted-foreground = ${colors.foreground}
+label-muted = " muted"
+
+ramp-volume-0 = 奄
+ramp-volume-1 = 奔
+ramp-volume-2 = 墳
[module/alsa]
type = internal/alsa
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL
+format-volume = "<ramp-volume> <label-volume>"
+label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
+format-underline = ${colors.underline}
-format-muted-prefix = " "
-format-muted-foreground = ${colors.foreground-alt}
-label-muted = sound muted
-
-bar-volume-width = 10
-bar-volume-foreground-0 = #55aa55
-bar-volume-foreground-1 = #55aa55
-bar-volume-foreground-2 = #55aa55
-bar-volume-foreground-3 = #55aa55
-bar-volume-foreground-4 = #55aa55
-bar-volume-foreground-5 = #f5a70a
-bar-volume-foreground-6 = #ff5555
-bar-volume-gradient = false
-bar-volume-indicator = |
-bar-volume-indicator-font = 2
-bar-volume-fill = ─
-bar-volume-fill-font = 2
-bar-volume-empty = ─
-bar-volume-empty-font = 2
-bar-volume-empty-foreground = ${colors.foreground-alt}
+format-muted-prefix = 婢
+format-muted-foreground = ${colors.foreground}
+label-muted = " muted"
+
+ramp-volume-0 = 奄
+ramp-volume-1 = 奔
+ramp-volume-2 = 墳
[module/battery]
type = internal/battery
@@ -372,24 +331,24 @@ format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
-format-full-prefix-foreground = ${colors.foreground-alt}
+format-full-prefix-foreground = ${colors.foreground}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
-ramp-capacity-foreground = ${colors.foreground-alt}
+ramp-capacity-foreground = ${colors.foreground}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
-animation-charging-foreground = ${colors.foreground-alt}
+animation-charging-foreground = ${colors.foreground}
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
-animation-discharging-foreground = ${colors.foreground-alt}
+animation-discharging-foreground = ${colors.foreground}
animation-discharging-framerate = 750
[module/temperature]
@@ -409,7 +368,7 @@ label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
-ramp-foreground = ${colors.foreground-alt}
+ramp-foreground = ${colors.foreground}
[module/powermenu]
type = custom/menu
@@ -423,7 +382,7 @@ label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
-label-separator-foreground = ${colors.foreground-alt}
+label-separator-foreground = ${colors.foreground}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
@@ -450,6 +409,3 @@ screenchange-reload = true
[global/wm]
margin-top = 0
-margin-bottom = 0
-
-; vim:ft=dosini