polybar: bars aufgeteilt
This commit is contained in:
parent
744ddce679
commit
9e140fdb44
2 changed files with 26 additions and 14 deletions
|
@ -1,8 +1,7 @@
|
||||||
include-directory = /home/mg/dotfiles/polybar/conf.d
|
include-directory = /home/mg/dotfiles/polybar/conf.d
|
||||||
|
|
||||||
[bar/bar]
|
|
||||||
monitor = ${env:MONITOR:}
|
[bar/defaults]
|
||||||
; launch.sh setzt die Variable damit die Bar auf jedem Monitor erscheint
|
|
||||||
background = ${colors.background}
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
padding-left = 0
|
padding-left = 0
|
||||||
|
@ -12,16 +11,25 @@ module-margin-right = 2
|
||||||
font-0 = fixed:pixelsize=10;1
|
font-0 = fixed:pixelsize=10;1
|
||||||
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
||||||
font-2 = siji:pixelsize=10;1
|
font-2 = siji:pixelsize=10;1
|
||||||
modules-left = i3
|
|
||||||
modules-center =
|
|
||||||
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time powermenu
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
|
|
||||||
[global/wm]
|
[global/wm]
|
||||||
margin-top = 5
|
margin-top = 5
|
||||||
margin-bottom = 5
|
margin-bottom = 5
|
||||||
|
|
||||||
|
[bar/oben]
|
||||||
|
inherit = bar/defaults
|
||||||
|
modules-left = i3
|
||||||
|
modules-center =
|
||||||
|
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time powermenu
|
||||||
|
|
||||||
|
[bar/unten]
|
||||||
|
inherit = bar/defaults
|
||||||
|
bottom = true
|
||||||
|
modules-left =
|
||||||
|
modules-center =
|
||||||
|
modules-right = alsa backlight cpu system-cpu-loadavg memory df battery time powermenu
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Terminate already running bar instances
|
# Terminate already running bar instances
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
# Launch bar
|
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
export DISPLAY=:0
|
||||||
MONITOR=$m polybar --reload --config=/home/mg/dotfiles/polybar/config bar &
|
|
||||||
# damit wird polybar für jeden monitor gestartet
|
# Launch bar1 and bar2
|
||||||
# https://github.com/polybar/polybar/issues/763
|
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
||||||
done
|
polybar --config=~/dotfiles/polybar/config oben 2>&1 | tee -a /tmp/polybar1.log & disown
|
||||||
|
polybar --config=~/dotfiles/polybar/config unten 2>&1 | tee -a /tmp/polybar2.log & disown
|
||||||
|
|
||||||
|
echo "Bars launched..."
|
||||||
|
|
Loading…
Reference in a new issue