1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-09-25 13:30:39 +02:00
eoli3n-dotfiles/roles/polybar
2019-08-18 12:51:11 +02:00
..
files removed cower dependency 2019-08-18 12:51:11 +02:00
tasks use make pkg instead of aur helper 2019-06-15 13:48:08 +02:00
templates fixed polybar volume to alsa 2018-02-11 00:24:34 +01:00
README.md by_host and by_os dirs 2017-12-28 19:25:01 +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 by host

mkdir templates/by_host/$(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/by_host/$(hostname)/modules-bottom.j2
modules-left =
modules-center = networkspeedup networkspeeddown
modules-right = temperature filesystem-slash filesystem-home cpu memory
EOF

Modules definition

By host

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

By OS

echo  <<\EOF > templates/by_os/<archlinux|debian|centos>/modules-def.j2
[module/example2]
type = custom/script
interval = 1200
format = <label>
label = "%output:0:100%%"
exec = hostname
EOF