xrandr: dsiplay connected monitors on help
This commit is contained in:
parent
aa7d9e0f35
commit
0e349dbccc
@ -3,6 +3,8 @@
|
|||||||
# Check if both monitor names are provided as arguments
|
# Check if both monitor names are provided as arguments
|
||||||
if [ "$#" -ne 2 ]; then
|
if [ "$#" -ne 2 ]; then
|
||||||
echo "Usage: $0 <monitor_to_turn_on> <monitor_to_turn_off>"
|
echo "Usage: $0 <monitor_to_turn_on> <monitor_to_turn_off>"
|
||||||
|
echo "Connected monitors:"
|
||||||
|
xrandr | grep " connected" | awk '{print $1}'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user