1 |
On 170413-06:14+0200, Floyd Anderson wrote: |
2 |
> After rereading my previous reply to your response, two things catching |
3 |
> my eyes. Firstly I have forgotten to mentioned a neatly urxvt extension |
4 |
> [1] (for an on the fly font size changing) in the terminal font related |
5 |
> paragraph of my prior post. |
6 |
I do have the package: |
7 |
|
8 |
x11-misc/urxvt-font-size |
9 |
|
10 |
installed, and enabled. It is enabled via the line further below, and |
11 |
it is the case since more than one year ago (I did it, at the latest, |
12 |
around the time these files were last modified, so to recall all of |
13 |
this, and to write this message took me some time :-) ): |
14 |
|
15 |
$ ls -ABRgo ~miro/_Xresources_*fonts |
16 |
-rw-r--r-- 1 641 2016-03-07 23:04 /home/miro/_Xresources_fonts |
17 |
-rw-r--r-- 1 238 2016-03-12 14:34 /home/miro/_Xresources_no_fonts |
18 |
$ |
19 |
|
20 |
But I'll attach my commented current ~/.config/openbox/autostart to give |
21 |
an example of a simple config to even casual readers who will be finding |
22 |
this via search engines. Pls. find attached: |
23 |
|
24 |
autostart_2017-04-13_miroR.txt |
25 |
|
26 |
( floyd, the explanation is for potential readers who are less advanced |
27 |
than even me, just skim through it; or if you prefer, do correct it if |
28 |
there's anything wrong, or where it, or my explanation here, is |
29 |
incomplete ) |
30 |
|
31 |
This line, in the attached file autostart_2017-04-13_miroR.txt, arranges |
32 |
for font resizing: |
33 |
|
34 |
xrdb ~miro/_Xresources_no_fonts |
35 |
|
36 |
xrdb just loads resources, from its manual page: |
37 |
xrdb - X server resource database utility |
38 |
|
39 |
And this is what gets the fonts resized on the fly: |
40 |
|
41 |
$ cat ~miro/_Xresources_no_fonts |
42 |
URxvt.perl-ext-common: font-size |
43 |
URxvt.keysym.C-Up: perl:font-size:increase |
44 |
URxvt.keysym.C-Down: perl:font-size:decrease |
45 |
URxvt.keysym.C-S-Up: perl:font-size:incglobal |
46 |
URxvt.keysym.C-S-Down: perl:font-size:decglobal |
47 |
|
48 |
( C is the Ctrl key, Up and Down are the arrow keys, don't know what S |
49 |
stands for, I've actually been using only the C-Up and C-Down. But the |
50 |
x11-misc/urxvt-font-size package is just two files, the 300+ lines perl |
51 |
script and the README, read there once you install the package... ) |
52 |
|
53 |
I attached autostart_2017-04-13_miroR.txt because finally the |
54 |
positioning and sizing of urxvt (and other windows) I am able to do, |
55 |
from my spartan-austere-simple, no-frills-whatsoever Openbox desktop, |
56 |
and I like to offer the solutions that worked for me to other potential |
57 |
readers! |
58 |
|
59 |
It could even get improved soon, if, from the other message of floyd's |
60 |
(more time I need to digest and to reply to that other message, which is |
61 |
actually previous to this one of his that I am replying to) I figure out |
62 |
how to get the urxvt windows to start with just just 1 pixel borders and |
63 |
no GUI title and bottom bars... |
64 |
|
65 |
It could even get improved. Could. But it it won't, this is already a |
66 |
huge improvement with respect to what I was living with for... years. At |
67 |
every starting of desktop, manually arranging the positioning and sizes |
68 |
of windows... |
69 |
|
70 |
That's why I'm sharing it, to help other users of lean and mean desktops |
71 |
without bloat. Remember I'm on a non-dbus system, so I am somewhat of a |
72 |
DIYer in a way (although more and more people prefer no-bloat, so also |
73 |
no-dbus and no-poetterware installs, and it is now much easier for users |
74 |
than when I converted my system to such). |
75 |
|
76 |
What now follows is the explanation of the current state of my urxvt |
77 |
terminal windows with respect to their positions being or not lost while |
78 |
resizing them. Which is another issue to resolve, with, hopefully, |
79 |
floyd's patch. |
80 |
|
81 |
So, while the positioning of windows usually remains the same for very |
82 |
simple resizing; simply C-Up to increase the font, and later C-Down to |
83 |
decrease it back to the previous size returns the window to the exact |
84 |
same position as previously in all respects, that is no longer the case |
85 |
when more than one or two steps, such as two consecutive C-Up are |
86 |
performed, and later two consecutive C-Down: the window does not return |
87 |
to where it originally was, but moves away, usually upwards. |
88 |
|
89 |
Previously, up until several months ago (just 2-3? or maybe 8-9?, I |
90 |
don't recollect well at all), the window would move away even after one |
91 |
single C-Up followed by one single C-Down. And as I described above, |
92 |
that undesired move-away no longer happens, but it no longer happens |
93 |
only for one step C-Up and one step C-Down. Which means somebody has |
94 |
already tried, and with limited success, to fix the restoring of the |
95 |
positions of windows upon these increases and decreases :-) . |
96 |
|
97 |
So yes: |
98 |
> I have made a little patch to keep the window position while resizing |
99 |
> the font. I you are interested in, let me know. |
100 |
I am interested about your patch! I hope it won't be complex, the |
101 |
patching... |
102 |
|
103 |
> Secondly, and even more important, my last paragraph: |
104 |
> >>Can I tell you more? […] |
105 |
> >> |
106 |
> >>And, given the above... How come I couldn't figure out the syntax can |
107 |
> >>only be similar for positioning as it is for |
108 |
> >>cropping/compositing/resizing the images, I can not tell, other than |
109 |
> >>being myself terribly unimaginative... |
110 |
> >This is the point I mentioned above somewhere. If you acquire your |
111 |
> >experience by yourself, you mostly can see parallelism to other things |
112 |
> >you have learned in the past. Copy here and copy there, consume this and |
113 |
> >consume that (without thinking, just for a quick success), doesn’t make |
114 |
> >those things happen. |
115 |
> has some potential to get me wrong. Please, do not refer it to yourself |
116 |
> as my assumption why you have not figure out the syntax of the geometry |
117 |
> switch. Naturally this happens all the time — to me too. And as you say, |
118 |
> often someone cannot say why nor what is going on behind the scene. |
119 |
No, c'mon. I won't get you wrong. I may be sensitive, but not that much |
120 |
;-) |
121 |
|
122 |
> For a recent example, as I looked for the above mentioned extension, I |
123 |
> realised that the local script has some changes against the origin one |
124 |
> but I was unable to remember who has made this. At the end I must say |
125 |
> nobody else than me might have done this but I really do not recall it. |
126 |
I'm not sure I get what you mean by 'local script'? Does 'local' mean: |
127 |
gentoo repo? |
128 |
|
129 |
> To finish this second topic, my intention was only to pointing out what |
130 |
> can happen not *what* happened and had been better placed at my prior |
131 |
> community related statement. |
132 |
All is fine. |
133 |
|
134 |
This is where the two-files, very useful x11-misc/urxvt-font-size |
135 |
package is developed: |
136 |
> [1] <https://github.com/majutsushi/urxvt-font-size> |
137 |
> |
138 |
> -- |
139 |
> Regards, |
140 |
> floyd |
141 |
|
142 |
I need more time to digest you previous email. |
143 |
|
144 |
Regards! |
145 |
-- |
146 |
Miroslav Rovis |
147 |
Zagreb, Croatia |
148 |
https://www.CroatiaFidelis.hr |