Fixed polybar issue.

This commit is contained in:
Joachim Nielandt 2020-07-14 22:22:42 +02:00
parent 1881610999
commit 7cabfb5fcc
2 changed files with 3 additions and 4 deletions

View File

@ -17,11 +17,11 @@ for m in $(polybar --list-monitors | cut -d":" -f1); do
echo "Launching polybar on monitor $m"
MONITOR=$m TRAY_POSITION=none polybar --reload secondary &
if [ "$started_tray" = false ]; then
MONITOR=$m TRAY_POSITION=right polybar --reload example &
MONITOR=$m TRAY_POSITION=right polybar --reload primary &
started_tray=true
echo "launching $m with tray"
else
MONITOR=$m TRAY_POSITION=none polybar --reload example &
MONITOR=$m TRAY_POSITION=none polybar --reload primary &
echo "launching $m without tray"
fi
done

View File

@ -2,8 +2,7 @@
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
# disabled this for now, want to see everything happening
#source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Path to your oh-my-zsh installation.