aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-08-28 16:54:09 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-08-28 16:54:09 +0200
commit6c410d7363e257e9c9cdc97fb80fd69a59b3ecd3 (patch)
treeb405d81f332a036d114a8549db2cf0151736b51d
parent7ec595dc6b5ffccd2aabd6ee9da9a50a4f2d25ed (diff)
downloaddotfiles-6c410d7363e257e9c9cdc97fb80fd69a59b3ecd3.tar.gz
polybar
-rw-r--r--polybar/config52
1 files changed, 10 insertions, 42 deletions
diff --git a/polybar/config b/polybar/config
index b51983f..d5a6db9 100644
--- a/polybar/config
+++ b/polybar/config
@@ -9,7 +9,7 @@ primary = #ffb52a
secondary = #e60053
alert = #bd2c40
-[bar/main]
+[bar/template]
monitor = ${env:MONITOR:}
width = 100%
height = 25
@@ -34,15 +34,8 @@ font-0 = DejaVu Sans Mono for Powerline:pixelsize=10;3
font-1 = unifont:fontformat=truetype:size=10:antialias=false;0
font-2 = siji:pixelsize=10;1
-modules-left = xwindow date powermenu
-modules-center = i3
-modules-right = filesystem backlight-acpi pulseaudio memory cpu wlan eth battery temperature xkeyboard
-
separator = |
-tray-position = right
-tray-padding = 2
-
wm-restack = i3
bottom = true
@@ -50,46 +43,21 @@ scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
+[bar/main]
+inherit = bar/template
+modules-left = xwindow date powermenu
+modules-center = i3
+modules-right = filesystem backlight-acpi pulseaudio memory cpu wlan eth battery temperature xkeyboard
-[bar/secondary]
-monitor = ${env:MONITOR:}
-width = 100%
-height = 25
-fixed-center = true
-
-background = ${colors.background}
-foreground = ${colors.foreground}
-
-line-size = 3
-line-color = #f00
-
-;border-size = 4
-Iborder-color = #00000000
-
-padding-left = 0
-padding-right = 2
-
-module-margin-left = 1
-module-margin-right = 1
-
-font-0 = DejaVu Sans Mono for Powerline:pixelsize=10;3
-font-1 = unifont:fontformat=truetype:size=10:antialias=false;0
-font-2 = siji:pixelsize=10;1
+tray-position = right
+tray-padding = 2
+[bar/secondary]
+inherit = bar/template
modules-left = xwindow
modules-center = i3
modules-right =
-separator = |
-
-wm-restack = i3
-bottom = true
-
-scroll-up = i3wm-wsnext
-scroll-down = i3wm-wsprev
-
-cursor-click = pointer
-
[module/xwindow]
type = internal/xwindow
format = <label>