From 6ad6ae357b344e54c68d58c2c2fa87e6ec9009ab Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Fri, 1 Sep 2023 22:17:20 +0200 Subject: [PATCH] monitor scripts --- .scripts/monitor | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .scripts/monitor diff --git a/.scripts/monitor b/.scripts/monitor new file mode 100755 index 0000000..1b63975 --- /dev/null +++ b/.scripts/monitor @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ $1 -eq 1 ] +then + hyprctl dispatch dpms on "HDMI-A-1" + hyprctl dispatch dpms off "DP-2" + hyprctl dispatch dpms off "DP-3" +else + hyprctl dispatch dpms off "HDMI-A-1" + hyprctl dispatch dpms on "DP-2" + hyprctl dispatch dpms on "DP-3" +fi