#!/usr/bin/env bash if [ -z "$1" ]; then exit 1 fi monitor="$(hyprctl monitors all | awk '/Monitor/ { if ($2 != "eDP-1") { print $2 } }')" if [ "$1" -eq "0" ]; then hyprctl eval "hl.monitor({output=\"${monitor}\", disabled=true})" else hyprctl eval "hl.monitor({output=\"${monitor}\", mode=\"preferred\", position=\"auto-left\", disabled=false})" fi