xrandr: dsiplay connected monitors on help

This commit is contained in:
vas-dav 2024-03-15 23:00:32 +02:00
parent aa7d9e0f35
commit 0e349dbccc

View File

@ -3,6 +3,8 @@
# Check if both monitor names are provided as arguments
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <monitor_to_turn_on> <monitor_to_turn_off>"
echo "Connected monitors:"
xrandr | grep " connected" | awk '{print $1}'
exit 1
fi