diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-24 22:11:53 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-24 22:11:53 +0530 |
commit | 2e3d99acd413c663c489312daadd3197fd558c15 (patch) | |
tree | 0cde01bf67654c9d618ad5194b747e7e845e2e8c /.scripts | |
parent | 501dc534acbac707998020343bca7a2af3c635ca (diff) |
made polystart better
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/polystart | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.scripts/polystart b/.scripts/polystart index b35dda1..9534ad8 100755 --- a/.scripts/polystart +++ b/.scripts/polystart @@ -1,4 +1,11 @@ #!/bin/sh killall polybar -polybar mybar & polybar mybar2 + +for m in $(xrandr --listmonitors | grep '+' | awk {'print $4'}); do + if [[ $m = "HDMI-0" ]]; then + MONITOR=$m polybar mybar2 & + else + MONITOR=$m polybar mybar & + fi +done |