From 2caef00f1dac1767f9d0ea1e4ad97b9f11b3e0aa Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 3 Apr 2019 17:31:58 +0100 Subject: Add bar for second monitor --- polybar/config | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++- polybar/launch.sh | 1 + 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/polybar/config b/polybar/config index 7c674dc..fbf09e0 100644 --- a/polybar/config +++ b/polybar/config @@ -17,7 +17,7 @@ secondary = ${xrdb:color5:#e60053} alert = ${xrdb:color1:#bd2c40} [bar/main] -;monitor = ${env:MONITOR:HDMI-1} +monitor = ${env:MONITOR:eDP-1} width = 100% height = 27 ;offset-x = 1% @@ -68,6 +68,56 @@ scroll-down = bspwm-deskprev cursor-click = pointer cursor-scroll = ns-resize +[bar/second] +monitor = DP-1 +width = 100% +height = 27 +;offset-x = 1% +;offset-y = 1% +radius = 0 +fixed-center = true + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3 +line-color = ${colors.primary} + +border-size = 0 +border-color = #00000000 + +padding-left = 1 +padding-right = 1 + +module-margin-left = 1 +module-margin-right = 2 + +font-0 = scientifica:style=Regular:pixelsize=12 +font-1 = Unifont:fontformat=truetype:size=8:antialias=false;0 +font-2 = FontAwesome:style=Regular +font-4 = Wuncon Siji:style=Regular:pixelsize=10;1 + +modules-left = bspwm + +tray-position = right +tray-padding = 2 +;tray-transparent = true +;tray-background = #0063ff + +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:...% diff --git a/polybar/launch.sh b/polybar/launch.sh index 98428f8..ad30310 100755 --- a/polybar/launch.sh +++ b/polybar/launch.sh @@ -7,5 +7,6 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done polybar main & +polybar second & echo "Bars launched..." -- cgit