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:
parent
2e634ae33f
commit
245e582bce
2
scripts/primary-monitor
Executable file
2
scripts/primary-monitor
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
xrandr -q | grep " connected" | sed -n '1,/primary/p' | wc -l
|
Loading…
Reference in New Issue
Block a user