1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-23 07:21:58 +01:00
eoli3n-dotfiles/roles/polybar
2017-12-25 21:38:08 +01:00
..
files sync to copy polybar 2017-12-19 20:48:41 +01:00
tasks template module backup files 2017-12-20 20:47:06 +01:00
templates polybar temperature 2017-12-25 21:38:08 +01:00
README.md template module backup files 2017-12-20 20:47:06 +01:00

Managed files

  • ~/.config/polybar/config
  • ~/.config/polybar/launch.sh
  • ~/.config/polybar/pkg.sh

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

# Include some modules
echo <<\EOF > templates/$(hostname)/modules-def.j2
[module/example]
type = custom/script
interval = 1200
format = <label>
label = "%output:0:100%%"
exec = uname -a

[module/example2]
type = custom/script
interval = 1200
format = <label>
label = "%output:0:100%%"
exec = hostname
EOF