help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen size (pixels or whatever)


From: JohnF
Subject: Re: Screen size (pixels or whatever)
Date: Wed, 24 Jun 2015 04:57:15 +0000 (UTC)
User-agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (NetBSD/6.1.5 (i386))

Marko Vojinovic <vvmarko@gmail.com> wrote:
> JohnF <john@please.see.sig.for.email.com> wrote:
>> Vasily Korytov <vasily.korytov@yandex.com> wrote:
>> > Vasily Korytov <vasily.korytov@yandex.com> ???????(??):
>> >> How do I get screen size in Emacs?
>> > The answer is (display-pixel-width) and (display-pixel-height).
>> > Found the answer just after posting.
>> > Thanks for reading this.
>> 
>> I've been using
>>   ;;; initial frame width,height,position
>>   (set-frame-width (selected-frame) 80)        ; #chars wide
>>   (set-frame-height (selected-frame) 52)       ; #lines ling
>>   (set-frame-position (selected-frame) 10 10 ) ; x y from upper-left
>> What's the diff???
> 
> As the OP explained in the original post,

Right, my bad. Sorry, I overlooked that. Thanks.

> he wants those rules to work conditionally,
> if certain screen resolution is detected.
> 
> I don't know how to do that internally in Emacs, but if one is running
> under Linux, the command "xrandr | grep \*" will tell you the
> resolution and frequency of the monitor. Maybe one can have Emacs
> execute this and parse the info...
> HTH, :-)
> Marko

-- 
John Forkosh  ( mailto:  j@f.com  where j=john and f=forkosh )


reply via email to

[Prev in Thread] Current Thread [Next in Thread]