aboutsummaryrefslogblamecommitdiff
path: root/.config/eww/scripts/start.sh
blob: f46405842473987fd11e7022be6dc3df05edb62c (plain) (tree)


















                                                          
#!/bin/bash

# kill any running instances if they exist
eww kill

# start a bar for each monitor
monitors=$(hyprctl monitors -j | jq '.[] | .id')
# monitors=$(hyprctl monitors -j | jq '.[] | .id' | wc -l)

for monitor in ${monitors}; do
    eww open bar${monitor}
done

# eww open bar0
# if [ $monitors -gt 1 ]; then
# 	for ((i = 1 ; i <= $monitors ; i++)); do
# 		eww open bar${i}
# 	done
# fi