Tweak secondary Polybar

This commit is contained in:
M1dgard 2018-05-01 16:08:03 +02:00
parent 35b6d40c8b
commit 98d2d6d05e
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 12 additions and 7 deletions

View file

@ -60,19 +60,21 @@ inherit = bardefaults
monitor = ${env:MONITOR:eDP-1}
width = 100%
modules-left = i3 volume mpd-online-1
modules-left = i3 volume mpd-online-1
modules-center = date
modules-right = battery cpu memory temperature eth wlan
modules-right = battery cpu memory temperature eth wlan
tray-position = right
tray-padding = 2
tray-padding = 2
[bar/secondary]
inherit = bardefaults
modules-left = i3
height=18
modules-left = i3
modules-right = info-hackspeed
monitor = ${env:MONITOR:eDP-1}
width = 100%
@ -423,7 +425,10 @@ interval = 600
label-font = 6
[settings]
screenchange-reload = true
; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
screenchange-reload = false
; Compositing operators
; they say: see https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
; but I have no idea what this is supposed to do
;compositing-background = xor

View file

@ -16,7 +16,7 @@ detect_primary_monitor() {
echo "$primary"
}
echo -e "\nDetermining primary monitor..."
echo -e "Determining primary monitor..."
primary=$(detect_primary_monitor)
[[ -n $primary ]] || { echo "WARNING: no primary monitor detected!"; notify-send -a "Polybar launcher" "No primary monitor detected" "Couldn't detect primary monitor. Check $INIT_LOG."; }
echo "Primary monitor: $primary"