dotfiles/polybar/launch.sh

11 lines
216 B
Bash
Raw Permalink Normal View History

2024-01-24 15:57:42 -05:00
#!/bin/bash
2022-01-18 01:25:46 -05:00
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload $(cat /etc/hostname) &
done
else
polybar --reload $(cat /etc/hostname) &
fi