1 |
I have solved the starting of urxvt windows (and other windows) in |
2 |
Openbox, with startx (can probably be applied to other DE, the solution |
3 |
was in Xorg, by its utilities). |
4 |
|
5 |
On 170412-23:09+0200, Floyd Anderson wrote: |
6 |
> On Mi, 12 Apr 15:25:32 +0200 |
7 |
> Miroslav Rovis <miro.rovis@××××××××××××××.hr> wrote: |
8 |
> >On 170412-06:02+0200, Floyd Anderson wrote: |
9 |
> >> On Di, 11 Apr 23:12:12 +0200 |
10 |
> >> Miroslav Rovis <miro.rovis@××××××××××××××.hr> wrote: |
11 |
> >> >On 170411-20:37+0200, Miroslav Rovis wrote: |
12 |
... |
13 |
This...: |
14 |
> To be pixel precise you can use x11-misc/wmctrl: |
15 |
> wmctrl -r :ACTIVE: -e 0,0,0,600,1000 |
16 |
> to reset the current terminal or: |
17 |
> ( urxvt -T test -e sh -c 'wmctrl -r :ACTIVE: -e 0,0,0,600,1000 && top' ) |
18 |
> to start a new one with a long running ‘top’. |
19 |
...remains for me to try and play with it, but some other time... I've |
20 |
spent many hours of these two days dedicatedly on this issue, and I have |
21 |
to move to other matters in live and computing... |
22 |
|
23 |
This too: |
24 |
> For short living commands use ‘-hold’ to prevent a terminal closing: |
25 |
> ( urxvt -hold -T test \ |
26 |
> -e sh -c 'wmctrl -r :ACTIVE: -e 0,0,0,150,50 && \ |
27 |
> echo "hello world!"' ) |
28 |
> or the same without third party tools using terminal escape sequences: |
29 |
> ( urxvt -hold -T test \ |
30 |
> -e sh -c 'echo -ne "\033[4;50;150t\033[3;0;0thello world!\n"' ) |
31 |
> |
32 |
> The ‘-e’ option has the disadvantage that you cannot work in the terminal. |
33 |
( Pls. see the attachment autostart_2017-04-13_miroR_borderless.txt, |
34 |
more about it furthe below. ) |
35 |
Since we're at the '-e' option, I'm courious how come I could put: |
36 |
-e "top" |
37 |
into the urxvt command in ~/.config/openbox/autostart, and also I could |
38 |
put: |
39 |
-e "mutt" |
40 |
into another urxvt line, but I couldn't put: |
41 |
-e "tail -f some-file" |
42 |
nor: |
43 |
-e "sudo -s" |
44 |
... |
45 |
> ># tailf /var/log/messages |
46 |
> Manual — once more ;-) — say: |
47 |
> “tailf is deprecated. It may have unfixed bugs and will be removed |
48 |
> from util-linux in March 2017. Nowadays it's safe to use tail -f |
49 |
> (from coreutils), […]” |
50 |
Taken notice of. |
51 |
|
52 |
> or `less +F /var/log/messages` to have a search ability after |
53 |
> interrupting the file read. |
54 |
As well. |
55 |
|
56 |
... |
57 |
Yes! In here lied the solution! |
58 |
> Not sure what it is. Maybe I cannot see it due to: |
59 |
> URxvt.externalBorder: 0 |
60 |
> URxvt.internalBorder: 0 |
61 |
> in my ‘${XDG_CONFIG_HOME}/X11/xresources.d/rxvt-unicode’ Xresources |
62 |
> file. Try `urxvt -bl -b 0 -w 0 -g 100x100+0+0`. What does ‘xwininfo’ say |
63 |
> about the ‘Absolute upper-left {X,Y}’, ‘Relative upper-left {X,Y}’ and |
64 |
> ‘Border width’ for that kind of window creation? |
65 |
Well, it was different that that, but your suggestions pushed me to |
66 |
investigate! Pls. see these attachments: |
67 |
|
68 |
_Xresources_no_fonts_borderless.txt |
69 |
|
70 |
autostart_2017-04-13_miroR_borderless.txt |
71 |
|
72 |
Because as I said, the solution was actually to be found on Xorg |
73 |
premises. I may even not have very correctly named the file with the |
74 |
crucial lines which I now added, i.e. with the starting underscore, but |
75 |
that gives me no headaches at all, and then with the right entries in |
76 |
the /home/miro/.config/openbox/autostart (the |
77 |
autostart_2017-04-13_miroR_borderless.txt needs to be modified as needed |
78 |
and placed in /home/<you>/.config/openbox/autostart ; I haven't used |
79 |
much of any other desktops, but I'm sure any other desktop flavor |
80 |
readers might use will have their ways to accomodate for these |
81 |
configurations). And it now all works as I long wished it would. |
82 |
... |
83 |
But first, even though I don't need it currently, I want to reply: |
84 |
> Another hint, what about i3 [1] or terminal multiplexer for window/pane |
85 |
> arrangements? I personally have learned to love Tmux (that may the |
86 |
I looked up both: |
87 |
x11-wm/i3 |
88 |
and: |
89 |
app-misc/tmux |
90 |
and I think I would like better tmux, but... |
91 |
But only if I didn't have to leave these issues and work on other |
92 |
matters in my life and in computing. |
93 |
> |
94 |
|
95 |
The ~/.config/openbox/autostart, with this line, calls: |
96 |
|
97 |
xrdb ~miro/_Xresources_no_fonts_borderless.txt |
98 |
(I'll actually name it without the '.txt' extension, which is there so |
99 |
the attachment may be better accessible from the web.) |
100 |
|
101 |
But the autostart openbox's configuration file calls, with this line, |
102 |
|
103 |
xrdb ~miro/.Xresources ( = the _Xresources_no_fonts_borderless.txt |
104 |
renamed ) |
105 |
with that line, autostart calls the: |
106 |
|
107 |
~miro/.Xresources |
108 |
|
109 |
I already explained in this morning email that I sent to this |
110 |
gentoo-users' list: |
111 |
|
112 |
How to set size to windows in Openbox in local config |
113 |
https://lists.gt.net/gentoo/user/325333#325333 |
114 |
|
115 |
what other entries are in (now I hope the reader who wishes to configure |
116 |
windows in openbox or other DE, has renamed it to:) .Xresources, and |
117 |
what they do. |
118 |
|
119 |
And these are the new entries in .Xresources that give the long |
120 |
not-known-how-to-do-it 1-pixel border, black border (color #000000 is |
121 |
black, just like #FFFFFF is white, and there are lots of colors in btwn) |
122 |
on all the windows: |
123 |
|
124 |
URxvt.internalBorder: 1 |
125 |
URxvt.borderColor: #000000 |
126 |
|
127 |
And now I can use the '-bl', because the windows will have a border! |
128 |
NOTE: in case your background is black use the opposite, use #FFFFFF. |
129 |
|
130 |
And that's it... If Floyd didn't provid advice, I may not have done it. |
131 |
I think I probably wouldn't have done it. His advice and the information |
132 |
he provided was crucial to the solutions presented in this topic. |
133 |
|
134 |
I believe I can stick [SOLVED] in the subject line. |
135 |
|
136 |
Only ERRATA may follow in the topic, as far as I am concerned. |
137 |
|
138 |
Regards! |
139 |
-- |
140 |
Miroslav Rovis |
141 |
Zagreb, Croatia |
142 |
https://www.CroatiaFidelis.hr |