From 7783699b21c6c62889ece9c663eb9f563371916a Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Thu, 6 Sep 2018 18:24:14 +0200 Subject: Update polybar config --- dot.config-polybar-config | 193 +++++++--------------------------------------- 1 file changed, 29 insertions(+), 164 deletions(-) (limited to 'dot.config-polybar-config') 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 = @@ -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 = +format-online = 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 =