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

Different actions for different displays (on the same connector) #11

Open
onlycparra opened this issue Jan 20, 2023 · 0 comments
Open

Comments

@onlycparra
Copy link

Hello, I would like to request a feature.

USE CASE:
In my office, I work on a big monitor connected to my laptop through HDMI (my machine and i3-autodisplay see it as HDMI-1). I use it as my main monitor, and the laptop's screen as just extra real state.
However, when giving a presentation, it is common to be given "an HDMI to connect to". If I connect it, i3-autodisplay will think it is my office's monitor, which is a problem. When I present, I want to have all my workspaces and windows in my laptop's screen, rather than project them to the audience.

HOW TO IDENTIFY EACH DISPLAY:
In order to identify different displays, one could use the EDID of a display, rather than just the connector name. This info can be obtained from xrandr too:

xrandr --verbose | awk '{if(p==1){if($1 ~ /[0-9a-f]{32}/){printf("%s",$1)}else{output=""; p=0; printf "\n"}}}  /^HDMI-1 connected .*/{output=$1}  /\tEDID:/{if(output != ""){printf("%s=",output); p=1};}'
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