blob: c2f85223256a7e4ed5151c60bfd3de953b9be88d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/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
|