|
From: | Javier |
Subject: | Re: Multiple monitors, different setup |
Date: | Sat, 14 Mar 2015 13:24:09 +0000 (UTC) |
User-agent: | tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) |
> Is there a way that I can have the .emacs file do a check to see if > the second monitor is present so that when it is not docked, my > emacs screen can be re positioned so it is in standard default out > of the box emacs mode? don't know much about MacOs. I'd try look at this info page (info "(elisp) Multiple Terminals") (x-display-list) will give you a list of the displays available for the Xserver. If you want the sizes of the displays I don't know how to get them directly from elisp. You can use the system command xwininfo for the root window. xwininfo -display 0:0 -root display is in the form HOST:SERVER.SCREEN. You will need to parse the output of the command and extract Width and Height. Width: 1280 Height: 1024
[Prev in Thread] | Current Thread | [Next in Thread] |