From 1679247cea7fb1921094ee8b0ee5eab1baab6e49 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 4 Jun 2021 20:55:39 +0200 Subject: [PATCH] wip --- polybar/config | 72 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/polybar/config b/polybar/config index d9e0895..156d0f5 100644 --- a/polybar/config +++ b/polybar/config @@ -7,11 +7,14 @@ ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ; +; ;========================================================== [colors] +;background = ${xrdb:color0:#222} background = #222 background-alt = #444 +;foreground = ${xrdb:color7:#222} foreground = #dfdfdf foreground-alt = #555 primary = #ffb52a @@ -22,6 +25,8 @@ alert = #bd2c40 ;monitor = ${env:MONITOR:HDMI-1} width = 100% height = 27 +;offset-x = 1% +;offset-y = 1% radius = 6.0 fixed-center = false @@ -44,9 +49,10 @@ font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 -modules-left = i3 -modules-right = xbacklight alsa memory cpu wlan eth battery date powermenu -; +modules-left = bspwm i3 +modules-center = mpd +modules-right = xbacklight alsa memory cpu wlan eth battery temperature date powermenu + tray-position = right tray-padding = 2 ;tray-background = #0063ff @@ -55,12 +61,43 @@ tray-padding = 2 ;override-redirect = true + ;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 + +format-prefix = " " +format-prefix-foreground = ${colors.foreground-alt} +format-prefix-underline = ${colors.secondary} + +label-layout = %layout% +label-layout-underline = ${colors.secondary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-background = ${colors.secondary} +label-indicator-underline = ${colors.secondary} + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground-alt} + [module/i3] type = internal/i3 format = @@ -99,23 +136,6 @@ label-urgent-padding = 2 ; label-separator = | -[module/xbacklight] -type = internal/xbacklight - -format =