10 lines
230 B
Plaintext
10 lines
230 B
Plaintext
|
#!/bin/sh
|
||
|
# Get monitor offset using xrandr
|
||
|
monitor_offset="1920+0"
|
||
|
display=$(xrandr --listactivemonitors | grep "$monitor_offset" | head -n1 | cut -d' ' -f6)
|
||
|
|
||
|
if [ -n "$display" ]; then
|
||
|
xrandr --output $display --primary
|
||
|
fi
|
||
|
|