Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashes If any of the 3 monitors is disabled via xrandr #15

Open
dudman opened this issue Jul 27, 2020 · 0 comments
Open

crashes If any of the 3 monitors is disabled via xrandr #15

dudman opened this issue Jul 27, 2020 · 0 comments

Comments

@dudman
Copy link

dudman commented Jul 27, 2020

I have 3 monitors when they are all enabled works fine, however if I disable any with
xrandr --output DVI-I-0 --mode 1920x1080 --pos 3840x0 --rotate normal --output DVI-I-1 --off --output HDMI-0 --off --ou tput DP-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-1 --off --output DVI-D-0 --off

Then I get the following...
`panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
main.fetchDisplays(0x4058bf, 0xc000016118, 0x0, 0x0, 0x0)
/home/user/git/autoplank/main.go:177 +0x62b
main.main()
/home/user/git/autoplank/main.go:22 +0x26
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant