unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: uzibalqa <uzibalqa@proton.me>
To: Po Lu <luangruo@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: List of monitor names
Date: Fri, 16 Sep 2022 01:48:28 +0000	[thread overview]
Message-ID: <eFzxgsj-lDql-PWBu0XoJDXvooI6kur0Njtek_qtKKNjqsv82BmGOHLRVsUSeVbY0ghrRFaeCLE4GHAVS7VUehRPuHtcaKALbaKoYaDoLvA=@proton.me> (raw)
In-Reply-To: <87v8pow1fr.fsf@yahoo.com>


------- Original Message -------
On Friday, September 16th, 2022 at 1:30 AM, Po Lu <luangruo@yahoo.com> wrote:


> Sam Steingold sds@gnu.org writes:
> 
> > For me the solution was based on https://askubuntu.com/q/702071/80483
> > and https://askubuntu.com/q/702002/80483; basically you run `xrandr` and
> > parse its output.
> 
> 
> Well, look no further than display-monitor-attributes-list, which uses
> RandR to obtain the same information, but without needing an external
> program.
> 
> (Unless, of course, your X server only supports Xinerama, in which case
> it falls back to that.)

With "display-monitor-attributes-list" I get

(((geometry 1080 1152 1366 768) (workarea 1080 1152 1311 768) (mm-size 344 194) 
(frames #<frame *scratch* 0x16f3510> #<frame Speedbar 0x2b84190>) 
(source . "Gdk")) ((geometry 0 0 1080 1920) (workarea 0 0 1080 1920) 
(mm-size 477 268) (frames) (source . "Gdk")))

But still nobody has told me what frame should I use for the initial frame (seems it
is usually *scratch*).  What input should frame be in the command "(frame-outer-width frame)".



  reply	other threads:[~2022-09-16  1:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15  2:55 List of monitor names uzibalqa
2022-09-15  5:04 ` Po Lu
2022-09-15 10:52   ` uzibalqa
2022-09-15 17:06     ` Sam Steingold
2022-09-16  1:30       ` Po Lu
2022-09-16  1:48         ` uzibalqa [this message]
2022-09-16  2:08           ` uzibalqa

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='eFzxgsj-lDql-PWBu0XoJDXvooI6kur0Njtek_qtKKNjqsv82BmGOHLRVsUSeVbY0ghrRFaeCLE4GHAVS7VUehRPuHtcaKALbaKoYaDoLvA=@proton.me' \
    --to=uzibalqa@proton.me \
    --cc=help-gnu-emacs@gnu.org \
    --cc=luangruo@yahoo.com \
    /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).