Skip to content

Commit ef26ee2

Browse files
authored
update MonitorSetup
output the primary monitor first in the list
1 parent 0ae8e4e commit ef26ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/bspwm/bin/MonitorSetup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ get_monitor_info() {
3131
}
3232

3333
# Get connected monitors using POSIX-compliant method
34-
set -- $(echo "$XRANDR_OUTPUT" | awk '$2 == "connected" {print $1}')
34+
set -- $(xrandr --listactivemonitors | grep "[0-9]:" | awk '{print $4}')
3535
NUM_MONITORS=$#
3636

3737
# Main case for monitor configuration

0 commit comments

Comments
 (0)