Add install.sh Add .zshrc add: nvim configs add: toggleterm, alpha update update Create README.md major changes major changes add picom updated dot files update shit
38 lines
882 B
Bash
Executable file
38 lines
882 B
Bash
Executable file
#!/bin/bash
|
|
|
|
BAR_PIDS=()
|
|
|
|
ws=$(tail -n 6 /tmp/.xmonad-workspace-log | grep '')
|
|
echo ${ws}
|
|
|
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
|
MONITOR=$m polybar ws_messages_border &
|
|
BAR_PIDS+=( "$!" )
|
|
done
|
|
|
|
if [[ "$ws" == *"F#CC241D"* ]]; then
|
|
for PID in "${BAR_PIDS[@]}"; do
|
|
polybar-msg -p $PID cmd show >> ~/debug
|
|
done
|
|
else
|
|
for PID in "${BAR_PIDS[@]}"; do
|
|
polybar-msg -p $PID cmd hide >> ~/debug
|
|
done
|
|
fi
|
|
|
|
while inotifywait -qqe close_write /tmp/.xmonad-workspace-log; do
|
|
ws=$(tail -n 6 /tmp/.xmonad-workspace-log | grep '')
|
|
echo ${ws}
|
|
|
|
if [[ "$ws" == *"F#CC241D"* ]]; then
|
|
for PID in "${BAR_PIDS[@]}"; do
|
|
polybar-msg -p $PID cmd show >> ~/debug
|
|
done
|
|
else
|
|
for PID in "${BAR_PIDS[@]}"; do
|
|
polybar-msg -p $PID cmd hide >> ~/debug
|
|
done
|
|
fi
|
|
done
|
|
|
|
|