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

View File

@ -1,3 +1,3 @@
#!/bin/bash
killall polybar > /dev/null 2>&1
nohup polybar > /dev/null 2>&1 &
nohup /usr/local/bin/polybar-launcher.sh > /dev/null 2>&1 &

4
trayer-restart Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
killall trayer
nohup trayer --edge bottom --align right --widthtype request --padding 6 --SetDockType true --SetPartialStrut true --expand true --monitor 1 --transparent true --alpha 0 --tint 0x282a2e --height 32 --distancefrom top --distance 5 &> /dev/null 2>&1 &