Skip to content

Commit b319284

Browse files
authored
Fix orientation script for external monitors
If the monitor is connected before the system boot, then after boot you need to reconnect the monitor, otherwise gestures don't work. To fix this problem and don't reconnect the monitor on every boot I found that all I had to do was change "connected" to "primary".
1 parent 3550c6f commit b319284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/orientation

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# return orientation of screen, code written to avoid issues with the screen not being primary
3-
device=" -w -m 1 connected"
3+
device=" -w -m 1 primary"
44
status="$(xrandr -q|grep ${device}|awk '{print $3}')"
55
# if [ $status == 'primary' ]; then
66
# state="$(xrandr -q|grep ${device}|awk '{print $5}')"

0 commit comments

Comments
 (0)