Correct monitor offset

This commit is contained in:
Sheldon Lee 2023-11-21 17:30:32 +08:00
parent b1b03f678d
commit a2f7b04ab8

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Get monitor offset using xrandr # Get monitor offset using xrandr
monitor_offset="1920+0" monitor_offset="+1080"
display=$(xrandr --listactivemonitors | grep "$monitor_offset" | head -n1 | cut -d' ' -f6) display=$(xrandr --listactivemonitors | grep "$monitor_offset" | head -n1 | cut -d' ' -f6)
if [ -n "$display" ]; then if [ -n "$display" ]; then