From: Javier <nospam@nospam.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Multiple monitors, different setup
Date: Sat, 14 Mar 2015 13:24:09 +0000 (UTC) [thread overview]
Message-ID: <me1cpp$phs$1@speranza.aioe.org> (raw)
In-Reply-To: b39ec130-ae05-4bf4-a90d-ce82243a881e@googlegroups.com
> 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
next prev parent reply other threads:[~2015-03-14 13:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-14 8:36 Multiple monitors, different setup Rob Kinsey
2015-03-14 13:24 ` Javier [this message]
2015-03-14 13:45 ` Eli Zaretskii
2015-03-14 16:42 ` Rob Kinsey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='me1cpp$phs$1@speranza.aioe.org' \
--to=nospam@nospam.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).