aboutsummaryrefslogtreecommitdiff
path: root/dot.config-polybar-config
diff options
context:
space:
mode:
authorThomas Schneider <qsx@qsx.re>2018-09-06 18:24:14 +0200
committerThomas Schneider <qsx@qsx.re>2018-09-06 18:24:14 +0200
commit7783699b21c6c62889ece9c663eb9f563371916a (patch)
tree89ad7dffcf9cd022b19e062937e355878840cdf0 /dot.config-polybar-config
parent3a3c877ef2fb2d5f2f3eb9be8de17a0534217cb5 (diff)
Update polybar config
Diffstat (limited to 'dot.config-polybar-config')
-rw-r--r--dot.config-polybar-config193
1 files changed, 29 insertions, 164 deletions
diff --git a/dot.config-polybar-config b/dot.config-polybar-config
index c6303d1..c064b4b 100644
--- a/dot.config-polybar-config
+++ b/dot.config-polybar-config
@@ -1,26 +1,6 @@
-;==========================================================
-;
-;
-; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
-; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
-; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
-; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
-; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
-; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
-;
-;
-; To learn more about how to configure Polybar
-; go to https://github.com/jaagr/polybar
-;
-; The README contains alot of information
-;
-;==========================================================
-
[colors]
-;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
-;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
primary = #ffb52a
@@ -28,14 +8,13 @@ secondary = #e60053
alert = #bd2c40
[bar/top]
-;monitor = ${env:MONITOR:HDMI-1}
width = 100%
-height = 27
-;offset-x = 1%
-;offset-y = 1%
+height = 30
radius = 6.0
fixed-center = false
+dpi = -1
+
background = ${colors.background}
foreground = ${colors.foreground}
@@ -48,40 +27,28 @@ border-color = #00000000
padding-left = 0
padding-right = 2
-module-margin-left = 1
-module-margin-right = 2
+module-margin-left = 0
+module-margin-right = 1
-font-0 = "Source Code Pro Medium:pixelsize=8;1"
-font-1 = "Wuncon Siji:pixelsize=8;1"
-font-2 = "Noto Emoji:pixelsize=8;0"
+font-0 = "Source Code Pro Medium:size=8;1"
+font-1 = "Wuncon Siji:size=8;1"
+font-2 = "Noto Emoji:size=8;0"
modules-left = i3
modules-center = mpd
-modules-right = filesystem backlight-acpi pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
+modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth backlight-acpi battery temperature date
tray-position = right
-tray-padding = 2
-;tray-transparent = true
-;tray-background = #0063ff
+tray-padding = 0
-;wm-restack = bspwm
wm-restack = i3
-;override-redirect = true
-
-;scroll-up = bspwm-desknext
-;scroll-down = bspwm-deskprev
-
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
-[module/xwindow]
-type = internal/xwindow
-label = %title:0:30:...%
-
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
@@ -93,8 +60,6 @@ format-prefix-underline = ${colors.secondary}
label-layout = %name%
label-layout-underline = ${colors.secondary}
-label-indicator-padding = 2
-label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
@@ -108,28 +73,6 @@ label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
-[module/bspwm]
-type = internal/bspwm
-
-label-focused = %index%
-label-focused-background = ${colors.background-alt}
-label-focused-underline= ${colors.primary}
-label-focused-padding = 2
-
-label-occupied = %index%
-label-occupied-padding = 2
-
-label-urgent = %index%!
-label-urgent-background = ${colors.alert}
-label-urgent-padding = 2
-
-label-empty = %index%
-label-empty-foreground = ${colors.foreground-alt}
-label-empty-padding = 2
-
-; Separator in between workspaces
-; label-separator = |
-
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
@@ -145,13 +88,13 @@ label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %index%
-label-focused-background = ${module/bspwm.label-focused-background}
-label-focused-underline = ${module/bspwm.label-focused-underline}
-label-focused-padding = ${module/bspwm.label-focused-padding}
+label-focused-background = ${colors.background-alt}
+label-focused-underline= ${colors.primary}
+label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
-label-unfocused-padding = ${module/bspwm.label-occupied-padding}
+label-unfocused-padding = 1
; visible = Active workspace on unfocused monitor
label-visible = %index%
@@ -161,16 +104,12 @@ label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
-label-urgent-background = ${module/bspwm.label-urgent-background}
-label-urgent-padding = ${module/bspwm.label-urgent-padding}
-
-; Separator in between workspaces
-; label-separator = |
-
+label-urgent-background = ${colors.alert}
+label-urgent-padding = 1
[module/mpd]
type = internal/mpd
-format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
+format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
@@ -178,30 +117,14 @@ icon-play = 
icon-pause = 
icon-next = 
+label-song = %title (%artist%)
label-song-maxlen = 25
label-song-ellipsis = true
-[module/xbacklight]
-type = internal/xbacklight
-
-format = <label> <bar>
-label = BL
-
-bar-width = 10
-bar-indicator = |
-bar-indicator-foreground = #fff
-;bar-indicator-font = 2
-bar-fill = ─
-bar-fill-font = 2
-bar-fill-foreground = #9f78e1
-bar-empty = ─
-;bar-empty-font = 2
-bar-empty-foreground = ${colors.foreground-alt}
-
[module/backlight-acpi]
-inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
+format-underline = #9f78e1
[module/cpu]
type = internal/cpu
@@ -217,7 +140,7 @@ interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
-label = %percentage_used%%
+label = %gb_used%
[module/wlan]
type = internal/network
@@ -226,13 +149,9 @@ interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
-label-connected = %essid%
+label-connected = %essid% %signal%%
format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
@@ -252,10 +171,6 @@ format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
-;format-disconnected = <label-disconnected>
-;format-disconnected-underline = ${self.format-connected-underline}
-;label-disconnected = %ifname% disconnected
-;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
@@ -281,7 +196,8 @@ label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
;label-muted = 🔇 muted
-label-muted = muted ; FIXME
+; FIXME
+label-muted = muted
label-muted-foreground = #666
bar-volume-width = 10
@@ -301,34 +217,6 @@ bar-volume-empty = ─
;bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
-[module/alsa]
-type = internal/alsa
-
-format-volume = <label-volume> <bar-volume>
-label-volume = VOL
-label-volume-foreground = ${root.foreground}
-
-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}
-
[module/battery]
type = internal/battery
battery = BAT0
@@ -362,6 +250,12 @@ animation-discharging-2 = 
animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-framerate = 750
+label-charging = %percentage%% %consumption%W %time%
+label-discharging = ${self.label-charging}
+label-full = ${self.label-charging}
+
+time-format = %H:%M
+
[module/temperature]
type = internal/temperature
thermal-zone = 0
@@ -381,35 +275,6 @@ ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
-[module/powermenu]
-type = custom/menu
-
-expand-right = true
-
-format-spacing = 1
-
-label-open = 
-label-open-foreground = ${colors.secondary}
-label-close =  cancel
-label-close-foreground = ${colors.secondary}
-label-separator = |
-label-separator-foreground = ${colors.foreground-alt}
-
-menu-0-0 = reboot
-menu-0-0-exec = menu-open-1
-menu-0-1 = power off
-menu-0-1-exec = menu-open-2
-
-menu-1-0 = cancel
-menu-1-0-exec = menu-open-0
-menu-1-1 = reboot
-menu-1-1-exec = sudo reboot
-
-menu-2-0 = power off
-menu-2-0-exec = sudo poweroff
-menu-2-1 = cancel
-menu-2-1-exec = menu-open-0
-
[settings]
screenchange-reload = true
;compositing-background = xor