1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-29 17:18:13 +01:00
eoli3n-dotfiles/roles/polybar
2017-12-19 14:17:31 +01:00
..
files/.config/polybar updated polybar dualscreen setup 2017-12-19 13:56:00 +01:00
tasks added modules configuration in polybar role 2017-12-19 14:17:31 +01:00
templates added modules configuration in polybar role 2017-12-19 14:17:31 +01:00
README.md added modules configuration in polybar role 2017-12-19 14:17:31 +01:00

Dualscreen configuration

Add a dir named as hostname to include specific host configuration for multiple screen launch

mkdir templates/$(hostname)
echo <<\EOF > templates/$(hostname)/launch.j2
MONITOR=HDMI1 polybar top &
MONITOR=HDMI2 polybar top &
MONITOR=HDMI2 polybar bottom &
EOF

It will uncomment monitor values in config.j2 too

Modules configuration

mkdir templates/$(hostname)
# Top modules configuration
echo <<\EOF > templates/$(hostname)/modules-top.j2
modules-left =  i3 xwindow
modules-center =
modules-right = backlight volume pkg wlan vpncheck battery date
EOF

# Bottom modules configuration
echo <<\EOF > templates/$(hostname)/modules-bottom.j2
modules-left =
modules-center = networkspeedup networkspeeddown
modules-right = temperature filesystem-slash filesystem-home cpu memory
EOF