From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Javier Newsgroups: gmane.emacs.help Subject: Re: Multiple monitors, different setup Date: Sat, 14 Mar 2015 13:24:09 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426339524 8561 80.91.229.3 (14 Mar 2015 13:25:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Mar 2015 13:25:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 14 14:25:19 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YWm46-0000Wz-Cu for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 14:25:18 +0100 Original-Received: from localhost ([::1]:40800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YWm45-0002mL-E5 for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Mar 2015 09:25:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: UtuPpJ9gthn8x4JOty5yAw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.18.6-1-ARCH (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:210886 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103164 Archived-At: > 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