From 0b76dbdb7bbb17207ec07d536a1ab85fb2ccbce8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 14 Apr 2019 14:17:24 -0700 Subject: [PATCH] =?UTF-8?q?Add=20config=20for=20rincewind=E2=80=99s=20poly?= =?UTF-8?q?bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change some of the colors, because I’ve spent a little more time on this on rincewind than on data. - Add a script that will start polybar whenever herbstluftwm starts. - Rename [bar/drd] to [bar/data] to match the hostname of data. --- .../herbstluftwm/autostart.d/polybar.sh | 2 + polybar/.config/polybar/config | 59 +++++++++++++++++-- 2 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 polybar/.config/herbstluftwm/autostart.d/polybar.sh diff --git a/polybar/.config/herbstluftwm/autostart.d/polybar.sh b/polybar/.config/herbstluftwm/autostart.d/polybar.sh new file mode 100644 index 0000000..57ea1e3 --- /dev/null +++ b/polybar/.config/herbstluftwm/autostart.d/polybar.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +pgrep polybar || { polybar "$(hostname)" 2>/dev/null & } diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 66dfe2b..c5a083f 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -1,14 +1,50 @@ ; -*- mode: conf-windows; -*- [colors] -background = #222222 -background-alt = #444444 -foreground = #dfdfdf -foreground-alt = #555555 +background = #111414 +background-alt = #222222 +foreground = #bfbfbf +foreground-alt = #969696 primary = #ffb52a secondary = #e60053 alert = #bd2c40 -[bar/drd] +[bar/rincewind] +width = 100% +height = 27 +radius = 6.0 +fixed-center = false +bottom = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = #ff0000 + +border-size = 4 +border-color = #00000000 + +padding-left = 0 +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 + +modules-left = xwindow +modules-center = +modules-right = volume xkeyboard date + +tray-position = right +tray-padding = 2 + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/data] width = 1870 height = 27 offset-x = 25 @@ -48,6 +84,19 @@ cursor-scroll = ns-resize [module/xwindow] type = internal/xwindow label = %title% +format-padding = 4 + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +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/date] type = internal/date