Now added the things
This commit is contained in:
17
polybar-launcher.sh
Executable file
17
polybar-launcher.sh
Executable 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
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
killall polybar > /dev/null 2>&1
|
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
4
trayer-restart
Executable 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 &
|
Reference in New Issue
Block a user