Gentoo Archives: gentoo-user

From: Miroslav Rovis <miro.rovis@××××××××××××××.hr>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to set size to windows in Openbox in local config WAS: Something eats my memory
Date: Wed, 12 Apr 2017 13:28:51
Message-Id: 20170412132532.GC8884@g0n.xdwgrp
In Reply to: Re: [gentoo-user] Re: How to set size to windows in Openbox in local config WAS: Something eats my memory by Floyd Anderson
1 On 170412-06:02+0200, Floyd Anderson wrote:
2 > On Di, 11 Apr 23:12:12 +0200
3 > Miroslav Rovis <miro.rovis@××××××××××××××.hr> wrote:
4 > >On 170411-20:37+0200, Miroslav Rovis wrote:
5 > >...
6 > >
7 > >Part of this quest is solved, pls. see:
8 > >
9 > >gkrellm [Was: Something eats my memory - please help]
10 > >https://marc.info/?l=gentoo-user&m=149194283531062&w=2
11 > >( marc.info was faster this time than gossamerthreads.com (now
12 > >lists.gt.net )
13 > To be honest, I read not the whole and little bit confusing thread. So I
14 > have not realised there is a multi-part issue to solve. I saw only one
15 > precise question in the quotation of wabe’s response out of the corner
16 > of my eyes.
17 I see.
18
19 > >If -g ... is the switch to get the geometry, i.e. the position of the
20 > >window, be it gkrellm or urxvt, when set into
21 > >~/.config/openbox/autostart (or started from the command line), then...
22 > Geometry (implemented as structure or bitmask) is not restricted to hold
23 > only the position. It can also be used to specify the size and other
24 > window attributes.
25 >
26 > >Then what is the switch to get the windows of be of a certain size. I
27 > >didn't find that in "man urxvt"... Could that be in Xorg manual or where
28 > >is that?
29 > Do not guess; RTFM or at least, search it! ;-)
30 The thing is, I do, I spend all the time available to reading the FMs.
31 But the time is not in sufficient supply... A little more on this
32 further below.
33
34 > I always have this in my mind. And when you cannot find what you are
35 > looking for, read the ‘SEE ALSO’ man page section to get ideas for the
36 > next step. But you are right, man page urxvt(1) is not really verbose
37 > about the -geometry (or -g) option but this does not have to be the end
38 > of the journey. As `qlist rxvt-unicode` shows, urxvt comes with several
39 > resources. One of them is a man page of category seven (Miscellaneous).
40 I couldn't get it with qlist:
41
42 # `qlist rxvt-unicode`
43 bash: /usr/share/doc/rxvt-unicode-9.22-r1/rxvt-tabbed.bz2: Permission denied
44 #
45
46 LATER NOTE START: you typoed that part of your advice, or you are misusing the
47 backticks, IMO. Not `qlist rxvt-unicode`, but simply:
48
49 # qlist unicode
50
51 which gives the list as the equery, sure. However, I've already
52 previously written the immediately below...
53 LATER NOTE END
54
55 But I suppose it's the same what I get with:
56
57 # equery f rxvt-unicode
58
59 And there the huge time that would be needed, just imagine! Here part of
60 the output of
61
62 # equery f rxvt-unicode
63
64 Here:
65
66 /usr/share/doc/rxvt-unicode-9.22-r1
67 /usr/share/doc/rxvt-unicode-9.22-r1/Changes.bz2
68 /usr/share/doc/rxvt-unicode-9.22-r1/README.FAQ.bz2
69 /usr/share/doc/rxvt-unicode-9.22-r1/README.configure.bz2
70 /usr/share/doc/rxvt-unicode-9.22-r1/README.xvt.bz2
71 /usr/share/doc/rxvt-unicode-9.22-r1/changes.txt.bz2
72 /usr/share/doc/rxvt-unicode-9.22-r1/rxvt-tabbed.bz2
73 /usr/share/doc/rxvt-unicode-9.22-r1/rxvt-unicode.termcap.bz2
74 /usr/share/doc/rxvt-unicode-9.22-r1/rxvt-unicode.terminfo.bz2
75 /usr/share/man
76 /usr/share/man/man1
77 /usr/share/man/man1/urxvt-background.1.bz2
78 /usr/share/man/man1/urxvt-bell-command.1.bz2
79 /usr/share/man/man1/urxvt-block-graphics-to-ascii.1.bz2
80 /usr/share/man/man1/urxvt-clipboard-osc.1.bz2
81 /usr/share/man/man1/urxvt-confirm-paste.1.bz2
82 /usr/share/man/man1/urxvt-digital-clock.1.bz2
83 /usr/share/man/man1/urxvt-eval.1.bz2
84 /usr/share/man/man1/urxvt-example-refresh-hooks.1.bz2
85 /usr/share/man/man1/urxvt-extensions.1.bz2
86 /usr/share/man/man1/urxvt-keysym-list.1.bz2
87 /usr/share/man/man1/urxvt-kuake.1.bz2
88 /usr/share/man/man1/urxvt-matcher.1.bz2
89 /usr/share/man/man1/urxvt-option-popup.1.bz2
90 /usr/share/man/man1/urxvt-overlay-osc.1.bz2
91 /usr/share/man/man1/urxvt-readline.1.bz2
92 /usr/share/man/man1/urxvt-remote-clipboard.1.bz2
93 /usr/share/man/man1/urxvt-searchable-scrollback.1.bz2
94 /usr/share/man/man1/urxvt-selection-autotransform.1.bz2
95 /usr/share/man/man1/urxvt-selection-pastebin.1.bz2
96 /usr/share/man/man1/urxvt-selection-popup.1.bz2
97 /usr/share/man/man1/urxvt-selection-to-clipboard.1.bz2
98 /usr/share/man/man1/urxvt-selection.1.bz2
99 /usr/share/man/man1/urxvt-tabbed.1.bz2
100 /usr/share/man/man1/urxvt-xim-onthespot.1.bz2
101 /usr/share/man/man1/urxvt.1.bz2
102 /usr/share/man/man1/urxvtc.1.bz2
103 /usr/share/man/man1/urxvtd.1.bz2
104 /usr/share/man/man3
105 /usr/share/man/man3/urxvtperl.3.bz2
106 /usr/share/man/man7
107 /usr/share/man/man7/urxvt.7.bz2
108
109 No such time, else I would need to be reading FMs and nothing but that
110 for a few days...
111
112 Why do you object to my question? Isn't it a good thing that I, and very
113 likely others who will read the list not just now, but also who knows
114 when, be able to figure it out more quickly than that?...
115
116 > Looking at it `man 7 urxvt` and searching for ‘geom’ and “Eureka!”, the
117 > third and last match:
118 > IRC*geometry: 87x12+535+542
119 > looks good. Let’s try it with your requirements...
120
121 The more complete excerpt (
122 gotten with:
123 $ man 7 urxvt | col -b | grep -E -B6 -A8 'IRC\*geo'
124 ):
125
126 Please note that I used the "urxvt" instance name and not the "URxvt" class
127 name. That is because I use different configs for different purposes, for
128 example, my IRC window is started with "-name IRC", and uses these defaults:
129
130 IRC*title: IRC
131 IRC*geometry: 87x12+535+542
132 IRC*saveLines: 0
133 IRC*mapAlert: true
134 IRC*font: suxuseuro
135 IRC*boldFont: suxuseuro
136 IRC*colorBD: white
137 IRC*keysym.M-C-1: command:\033]710;suxuseuro\007\033]711;suxuseuro\007
138 IRC*keysym.M-C-2: command:\033]710;9x15bold\007\033]711;9x15bold\007
139
140 What's IRC (the instant messaging program? or...)? And there's other
141 things that are cryptic in those lines... Hmmmh... But the solution *is*
142 there! That I do understand!
143
144 Wow! That was a long search, and the solution finally there! And it is
145 just as you explained it below:
146
147 > >So, e.g. if I want to start a window of size 200x50 or 1000x500, how to
148 > >I do that?
149 > ...and (if installed) examine the attributes with `xwininfo` or `xprop`
150 > or simply by <Alt+Space> + resize and looking at the centred size tip.
151 > urxvt -bl -geometry 200x50+0+0;
152 > urxvt -bl -geometry 1000x500+0+0;
153
154 Tried, and this does work. That's it! It is. Thanks!
155
156 > This should be answer your second part — completely resolved with
157 > offline resources. But I highly recommend not to stop the journey here
158 > because of what if urxvt(7) has never been written?
159 And where do I find the time to do so? Now that I got the solutions (one
160 is actually, the decoration one, possibly lame, more about it below), I
161 got to do some of the things that I got my computers for... I hope you
162 can easily understand that.
163
164 I'm not lazy, but I'm definitely not one of the most gifted of the
165 people participating in this list... I guess you understand my drift
166 just fine.
167
168 > Do you know the commands ‘whatis’, ‘apropos’ (symbolic link to ‘whatis’)
169 > or their equivalent ‘man -k’?
170
171 Uh! This may be good... Let me see...
172
173 $ man -k printf
174 printf: nothing appropriate.
175 $
176
177 Because, and this is straight paste from /var/log/messages that is
178 constantly running with:
179
180 # tailf /var/log/messages
181
182 in a terminal of its own, in all of my desktops.
183
184 Apr 12 14:18:36 g0n kernel: [27021.812778] grsec: (miro:U:/usr/bin/man)
185 exec of /usr/bin/man (man -k printf ) by /usr/bin/man[bash:9722]
186 uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:5055]
187 uid/euid:1000/1000 gid/egid:1000/1000
188
189 Apr 12 14:18:36 g0n kernel: [27021.818916] grsec: (miro:U:/) exec of
190 /usr/bin/whatis (apropos printf ) by /usr/bin/whatis[man:9723]
191 uid/euid:1000/1000 gid/egid:1000/1000, parent /usr/bin/man[man:9722]
192 uid/euid:1000/1000 gid/egid:1000/1000
193
194 Apr 12 14:18:36 g0n kernel: [27021.824459] grsec: (miro:U:/) denied
195 access to hidden file /var/cache/man/index.db by
196 /usr/bin/whatis[apropos:9723] uid/euid:1000/1000 gid/egid:1000/1000,
197 parent /usr/bin/man[man:9722] uid/euid:1000/1000 gid/egid:1000/1000
198
199 'man -k' will be solved only when more time is available. Not now. I don't
200 run my computers without grsec enabled, not when working anything online
201 Saved me a lot of troubles. A lot!... But to get my grsecurity-hardened
202 kernels to allow it, there's more work to do...
203
204 Similar or same output with 'apropos' and 'whatis'. Similarly later work
205 for those too...
206
207 > Try it out: `man -k geometry` or `apropos geometry`. You see several
208 > category three (Library calls) references. This kind of information may
209 > be hard to understand sometimes but if you have time you only can win.
210 Yes, also tried geometry instead of printf above. Same output/problems...
211
212 > For instance XWMGeometry(3), you already know X -> Xorg and WM -> window
213 > manager (BTW: MWM -> Motif Window Manager as Jonathan earlier pointed
214 > out) and Geometry is what you are looking for.
215
216 $ man 3 XWMGeometry
217
218 Looks like the man page that I will need. Will read it. Thanks!
219
220 > Sounds that not interesting to have a look at it? If you think so, you
221 > will see at the description section what the argument to the -geometry
222 > parameter of urxvt probably expected. If you are still hungry, go online
223 > and search for other examples and meanings like at [1] or find [2] which
224 > seems to have some tips about ‘devilspie’, ‘GKrellM’ and others.
225 >
226 > [1] <http://imagemagick.org/script/command-line-processing.php#geometry>
227 > [2] <https://sites.google.com/site/tstyblo//wmctrl/>
228
229 I will look at these in case the man page you pointed to doesn't give me
230 the solutions needed.
231
232 > P.S. I love short precise questions and qualified answers as well and
233 > usually hate walls of text — but this was a need for me. Hope that helps
234 > to help yourself.
235
236 No way is this a wall of text. No!, this reply that you wrote is a
237 competent reply that gave very good advice! I'm advanced enough to claim
238 that it is such, but not as advanced as you are to author such advice in
239 queries like this.
240
241 > --
242 > Regards,
243 > floyd
244 >
245
246 Thanks!
247
248 The solutions appear to be closer now...
249
250 And let me explain the other part of my query, which I thought, and
251 wrote yesterday, that it was solved. The 'borderless' solution, with the
252 '-bl' switch. It doesn't work as I thought it would.
253
254 At first I thought it did (and it appeared to work correctly, in the
255 first tries the 1-pixel border remained (to my best recollection), I
256 don't know how...), but looking it up more closely, and upon successive
257 later tries, it gives really no borders whatsoever, and if you have,
258 say, many terminals, you don't know where one ends and another begins,
259 it's a total mess.
260
261 I really would only need terminals/other windows, without the GUI
262 borders and without the title. They do need to have the one pixel
263 foreground color, or whatever color that it is, but it certainly is a
264 contrasting color border, I just want to get rid of the relatively huge
265 (if you start a lot of windows, and don't like to use the mouse) title
266 track (maybe 15 pixel or so) and the thick (maybe 3 pixel or so) GUI
267 track in bottom...
268
269 I leave this other part of the query under this same subject line,
270 because it is related enough to stay here.
271
272 I need a little time to arrange the starting of my windows that will
273 probably finally be sizes and positioned to my needs... Finally!... I've
274 wished to position and size my windows for long, probably even years
275 (two years, I think), and finally I will, very probably, be able to do
276 it.
277
278 Can I tell you more? I'm badly unimaginative. I have actually used the
279 ImageMagick's own image manipulation convert, composite and such, and I
280 have used them a lot, in my:
281 https://github.com/miroR/Flowstamp
282 (
283 you can see it in action here:
284 Žurba Ludog Cara i Izborna Čudesa (Nova 2015-11-08)
285 https://vimeo.com/145843953
286 the title means "The Hurry of the Mad Tzar and Election Miracles"; have
287 a look at the very very thin moving overlay, say starting from 0:02:15
288 with clear "Miroslav Rovis" seen passing over the screen, or for the
289 bottom line, "www.CroatiaFidelis.hr" watch from 0:03:15, that's done
290 with cutting the images with, of course chosing the positions to cut
291 from, and sizes to cut out, or similarly...
292 -- Have a look at those and try to steal that video from me, and try to
293 tell that you did it, and not me! -- than you are bound to notice the
294 that overlay in the whole duration of the video, just very thinly...
295 )
296
297 And, given the above... How come I couldn't figure out the syntax can
298 only be similar for positioning as it is for
299 cropping/compositing/resizing the images, I can not tell, other than
300 being myself terribly unimaginative...
301
302 Will be back. Regards!
303
304 --
305 Miroslav Rovis
306 Zagreb, Croatia
307 https://www.CroatiaFidelis.hr

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies