summaryrefslogtreecommitdiff
path: root/qubes-dwm-6.2/scripts/display_handler
diff options
context:
space:
mode:
authortslil clingman <>2022-04-26 18:30:09 -0400
committertslil clingman <>2022-04-26 18:30:09 -0400
commitcd5fabb36a693ebd27395cee50b22b633f24e55b (patch)
tree6bafb6644658427d776c9bc36cbe5e802bdde876 /qubes-dwm-6.2/scripts/display_handler
parent02de7b99d4b4b177b6953d168629242f55b2f992 (diff)
Updated scripts for Qubes 4.1
Diffstat (limited to 'qubes-dwm-6.2/scripts/display_handler')
-rwxr-xr-xqubes-dwm-6.2/scripts/display_handler6
1 files changed, 6 insertions, 0 deletions
diff --git a/qubes-dwm-6.2/scripts/display_handler b/qubes-dwm-6.2/scripts/display_handler
new file mode 100755
index 0000000..a682a07
--- /dev/null
+++ b/qubes-dwm-6.2/scripts/display_handler
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+case "${SRANDRD_OUTPUT} ${SRANDRD_EVENT}" in
+ "HDMI-1 connected") xrandr --output HDMI-1 --auto --output eDP-1 --off;;
+ "HDMI-1 disconnected") xrandr --output eDP-1 --auto;;
+esac