Added script that sets the primary monitor using xrandr.

This commit is contained in:
Sheldon Lee 2022-06-26 07:43:41 +08:00
parent ed1d0db617
commit b8d9ff90aa

View File

@ -0,0 +1,8 @@
#!/bin/sh
display=$(xrandr --listactivemonitors | grep "$1" | head -n1 | cut -d' ' -f6)
if [ -n "$display" ]; then
xrandr --output $display --primary
fi