blob: 2b55ff07c49eff9f79cbd867636cff6ad74eb9ec (
plain) (
tree)
|
|
#!/bin/bash
monitors=$(hyprctl monitors -j | jq '.[] | .id')
for i in ${monitors};
do
active_monitor=$(hyprctl -j activeworkspace | grep 'monitorID' | tr -dc '0-9\n')
bar=$(eww windows | grep "*bar$i")
if [ "$active_monitor" == "$i" ] && [ "$bar" == "*bar$i" ]; then
eww close bar$i
elif [ "$active_monitor" == "$i" ]; then
eww open bar$i
fi
done
|