1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Add script for getting 1-based index of primary monitor

This commit is contained in:
Joe Groocock 2016-04-02 20:09:56 +01:00
parent 2e634ae33f
commit 245e582bce

2
scripts/primary-monitor Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
xrandr -q | grep " connected" | sed -n '1,/primary/p' | wc -l