Nushell Script Disables Laptop Display for AR Glasses, Sparks Debate Over X11 vs. Wayland Compatibility
A Nushell script that disables a laptop's internal monitor when AR glasses are connected has gained traction. The script uses xrandr commands to manage display outputs on X11 systems, and users report it works well with devices like the XReal One.
Users praise the script's effectiveness and customization options, noting it runs in the background and checks for AR glasses every few seconds. However, some are skeptical about its compatibility with Wayland setups, with trymeout highlighting potential limitations for users on different display servers. Others express uncertainty about its reliability across various hardware configurations.
The community largely agrees the script works for X11 environments, but there's clear division over its viability on Wayland. While many find it useful, the debate over display server compatibility remains unresolved.
Key Points
#1The script effectively disables the laptop's internal monitor when AR glasses are connected.
Users like trymeout report the script works well with devices like the XReal One.
#2The script runs in the background and checks for AR glasses every few seconds.
trymeout explains the script ensures the laptop display remains off when AR glasses are connected.
#3Compatibility with Wayland setups is a major concern.
trymeout notes the script may not work with full Wayland setups, raising concerns for users on different display servers.
#4Customization is required for different hardware setups.
Users must run xrandr to identify display names and adjust the script accordingly.
Source Discussions (3)
This report was synthesized from the following Lemmy discussions, ranked by community score.