This commit is contained in:
Stephan Raabe
2024-05-01 12:18:47 +02:00
parent bbfa43dde9
commit 81fdf76484
12 changed files with 46 additions and 16 deletions
+7 -1
View File
@@ -8,7 +8,13 @@ if [[ ! `pidof eww` ]]; then
sleep 0.5
fi
sc=$($HOME/dotfiles/.settings/eww-monitor.sh)
if [ -f $HOME/dotfiles/.settings/eww-monitor.sh ] && [ $(cat $HOME/dotfiles/.settings/eww-monitor.sh) != "auto" ] ;then
echo ":: Using monitor id from $HOME/dotfiles/.settings/eww-monitor.sh"
sc=$(cat $HOME/dotfiles/.settings/eww-monitor.sh)
else
echo ":: Autodetect current focused monitor."
sc=$(python $HOME/dotfiles/hypr/scripts/active-monitor.py)
fi
if [[ ! -f "$FILE" ]]; then
touch "$FILE"
echo ":: Opening on Monitor $sc"