Now added the things

This commit is contained in:
Allen
2023-08-02 01:24:03 -05:00
parent 76ed372587
commit 85be0f5b38
3 changed files with 22 additions and 1 deletions

17
polybar-launcher.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
declare -A screen_map
screen_map[DP-2]=0
screen_map[DP-0]=1
if type "xrandr"; then
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
id=${screen_map[$m]}
MONITOR=$m MONITOR_ID="${screen_map[$m]}" polybar --config=~/.config/polybar/config-$id-top.ini & #TOP
MONITOR=$m MONITOR_ID="${screen_map[$m]}" polybar --config=~/.config/polybar/config-$id-bottom.ini & #BOTTOM
done
fi
# Spawn trayer from here as Z clipping issue can be fixed from restarting trayer after polybar
/usr/local/bin/trayer-restart