From 6bf68ba874e804c15a49582408cc58fb8986e241 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 22 Oct 2018 20:05:34 -0500 Subject: [PATCH] Adjustments to the bar --- apps/qutebrowser/qutebrowser.conf | 4 +- de/bar/polybar-config | 75 ++++++++++++++++++------------- 2 files changed, 46 insertions(+), 33 deletions(-) diff --git a/apps/qutebrowser/qutebrowser.conf b/apps/qutebrowser/qutebrowser.conf index 4b2dc54..79b08f4 100644 --- a/apps/qutebrowser/qutebrowser.conf +++ b/apps/qutebrowser/qutebrowser.conf @@ -39,7 +39,7 @@ ignore-case = smart # startpage (List of String): # The default page(s) to open at the start, separated by commas. # Default: https://start.duckduckgo.com -startpage = https://google.com +startpage = https://start.duckduckgo.com # yank-ignored-url-parameters (List of String): # The URL parameters to strip with :yank url, separated by commas. @@ -1588,4 +1588,4 @@ messages.info = 8pt ${_monospace} # prompts (Font): # Font used for prompts. # Default: 8pt sans-serif -prompts = 8pt sans-serif +prompts = 8pt ${_monospace} diff --git a/de/bar/polybar-config b/de/bar/polybar-config index 3d3d39f..3a4a9be 100644 --- a/de/bar/polybar-config +++ b/de/bar/polybar-config @@ -9,7 +9,9 @@ [colors] background = ${xrdb:color0:#111} +; background = #00000000 background-alt = ${xrdb:color2:#333} +; background-alt = ${xrdb:color2:#333} foreground = ${xrdb:color7:#222} foreground-alt = #555 primary = ${xrdb:color1:#222} @@ -23,7 +25,7 @@ height = ${env:BAR_HEIGHT:30} offset-x = ${env:POS_X:30} offset-y = ${env:POS_Y:30} radius = 0.0 -fixed-center = false +fixed-center = true bottom = ${env:BAR_BOTTOM:true} dpi = ${xrdb:dpi:92} @@ -37,7 +39,7 @@ border-size = 0 border-color = #00000000 padding-left = 0 -padding-right = 0 +padding-right = 2 module-margin-left = 1 module-margin-right = 2 @@ -47,13 +49,14 @@ font-1 = ${env:BAR_ICON_FONT_DECLARATION} font-2 = ${env:BAR_ICON_FONT_2_DECLARATION} modules-left = bspwm -modules-center = -modules-right = xbacklight volume xkeyboard filesystem memory cpu battery temperature date powermenu +modules-center = date +modules-right = volume xbacklight xkeyboard temperature filesystem memory cpu battery tray-position = right -tray-padding = 2 -;tray-transparent = true -;tray-background = #0063ff +tray-padding = 0 +; tray-background = #00000000 +; tray-transparent = true +; tray-background = #0063ff wm-restack = bspwm ;wm-restack = i3 @@ -90,10 +93,10 @@ label = %title:0:30:...% type = internal/fs interval = 25 -mount-0 = /home +mount-0 = ${env:BAR_FS_VOLUME} format = -label-mounted = %percentage_used%% +label-mounted = %used% label-mounted-foreground = ${xrdb:color6} format-mounted-prefix = " " format-mounted-prefix-foreground = ${colors.foreground-alt} @@ -182,7 +185,7 @@ interval = 2 format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} ; format-underline = #f90000 -label = %percentage%% +label = %percentage-cores% label-foreground = ${xrdb:color6} [module/memory] @@ -190,21 +193,30 @@ type = internal/memory interval = 2 ; format-prefix = " " format-prefix = " " +; format-prefix = " " +;  format-prefix-foreground = ${colors.foreground-alt} ; format-underline = #4bffdc -label = %percentage_used%% +label = %gb_free% label-foreground = ${xrdb:color6} -[module/wlan] +[module/wifi] type = internal/network -interface = -interval = 3.0 +interface = ${env:BAR_WIFI_INTERFACE} +interval = 10.0 -format-connected = -; format-connected-underline = #9f78e1 -label-connected = %essid% +;format-connected = +format-connected-prefix = " " +format-connected-prefix-foreground = ${colors.foreground-alt} -format-disconnected = +format-connected = +label-connected = "%essid% %downspeed% %upspeed%" +label-connected-foreground = ${xrdb:color1} + +format-disconnected-prefix = " " +format-disconnected-prefix-foreground = ${colors.foreground-alt} + +format-disconnected = "N/A" ;format-disconnected = ;format-disconnected-underline = ${self.format-connected-underline} ;label-disconnected = %ifname% disconnected @@ -215,21 +227,20 @@ ramp-signal-1 =  ramp-signal-2 =  ramp-signal-3 =  ramp-signal-4 =  -ramp-signal-foreground = ${colors.foreground-alt} [module/eth] type = internal/network -interface = -interval = 3.0 +interface = ${env:BAR_ETH_INTERFACE} +interval = 10.0 -; format-connected-underline = #55aa55 -format-connected-prefix = "net " -format-connected-prefix-foreground = ${colors.foreground-alt} -label-connected = %local_ip% +format-connected-prefix = " " +format-connected-prefix-foreground = ${xrdb:color8} +label-connected = %upspeed% %downspeed% +label-connected-foreground = ${xrdb:color1} -format-disconnected = +format-disconnected = N/A ;format-disconnected = -;format-disconnected-underline = ${self.format-connected-underline} +;format-disconnected-underline = 0 ;label-disconnected = %ifname% disconnected ;label-disconnected-foreground = ${colors.foreground-alt} @@ -237,14 +248,15 @@ format-disconnected = type = internal/date interval = 1 -date = "%Y-%m-%d " +date = "%a %Y-%m-%d " date-alt = time = %H:%M:%S time-alt = %H:%M -label-foreground = ${xrdb:color1} -format-prefix = " " +label-foreground = ${xrdb:color7} +; format-prefix = " " +; format-prefix = "" format-prefix-foreground = ${colors.foreground-alt} ; format-underline = #0a6cf5 @@ -259,7 +271,7 @@ label-volume-foreground = ${colors.foreground-alt} format-muted-prefix = " " format-muted-foreground = ${colors.foreground-alt} -label-muted = muted +label-muted = M bar-volume-width = 5 bar-volume-foreground-0 = ${xrdb:color3} @@ -364,6 +376,7 @@ menu-2-1-exec = menu-open-0 [settings] screenchange-reload = true +pseudo-transparency = true ;compositing-background = xor ;compositing-background = screen ;compositing-foreground = source