aboutsummaryrefslogtreecommitdiffstats
path: root/polybar
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-04-14 14:17:24 -0700
committerGravatar Tom Willemse2019-04-14 14:17:24 -0700
commit0b76dbdb7bbb17207ec07d536a1ab85fb2ccbce8 (patch)
tree6b2b54850aa75752ce9384ad6fcf3812de0ae478 /polybar
parentadd4767e1e6461fcd0710dfea0aad9076c007fa3 (diff)
downloadnew-dotfiles-0b76dbdb7bbb17207ec07d536a1ab85fb2ccbce8.tar.gz
new-dotfiles-0b76dbdb7bbb17207ec07d536a1ab85fb2ccbce8.zip
Add config for rincewind’s polybar
- 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.
Diffstat (limited to 'polybar')
-rw-r--r--polybar/.config/herbstluftwm/autostart.d/polybar.sh2
-rw-r--r--polybar/.config/polybar/config59
2 files changed, 56 insertions, 5 deletions
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