dotfiles/hyprland/tomorrownight/scripts/monitor.sh

12 lines
237 B
Bash
Executable File

#!/bin/sh
STATUS_FILE="$HOME/.config/hypr/scripts/.monitor_status"
status=$(cat $STATUS_FILE)
if $status ; then
echo false > $STATUS_FILE
wlr-randr --output eDP-1 --off
else
echo true > $STATUS_FILE
wlr-randr --output eDP-1 --on
fi