LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2024, 07:38 AM   #1
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Rep: Reputation: Disabled
setting window geometry with xprop


I'm trying to set a window's geometry (position+dsize).
There's wmctrl & xdotool but their geometry isn't always accurate, so trying xprop.

Code:
xprop -name firefox
shows _NET_WM_USER_TIME_WINDOW 0x0480b6c8

Trying to set its geometry with
Code:
xprop -id 0x0480b6c8 -format _NET_WM_OPAQUE_REGION 16i -set _NET_WM_OPAQUE_REGION 100,100,500,500
but nothing happens.

any ideas?

Thanks
 
Old 01-24-2024, 07:40 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Applications built with the X Toolkit will accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window.

Firefox does not accept this command line argument. Having browsers open with a defined geometry is considered a privacy risk as it can be used for finger printing
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting frame buffer geometry to match monitor geometry Skaperen Linux - Desktop 0 03-13-2011 03:27 PM
using xprop in a c program connie84911 Linux - General 2 12-14-2010 03:01 PM
gnome-terminal OpenBox WM_CLASS xprop ycr Linux - Desktop 1 06-09-2007 01:47 AM
-geometry <geometry> reitzell Linux - Newbie 2 09-10-2005 12:13 PM
running xprop in an xterm paledread Linux - Newbie 2 02-05-2004 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration