Files
dot.config/mango/scripts/monitor.sh
T
daniel fusser 49462fb909 initial commit
2026-06-23 00:38:32 +02:00

9 lines
218 B
Bash
Executable File

#!/usr/bin/bash
enable=$(wlr-randr --json | jq --arg name "eDP-1" '.[] | select(.name == $name) | .enabled')
if [ $enable == "true" ]; then
wlr-randr --output eDP-1 --off
else
wlr-randr --output eDP-1 --on
fi