Re: Hacking on .Xresources

2024-12-13 Thread Todd Gruhn
I did this --- it fails when inside of .xinitrc: /usr/pkg/bin/xterm-geometry 80x46+0+0-title "$(date "+%A - %d - %B - %Y")"& Something is wrong here? You mentioned "wrapper Skript" -- you means "script" ? Or a specific program? Put this in C, and compile? I did that with a PE

Re: Hacking on .Xresources

2024-12-13 Thread Ignatios Souvatzis, GSG
On Thu, Dec 12, 2024 at 08:12:52PM +0100, Ignatios Souvatzis wrote: >Todd G wrote: >> UHH, that worked for only the one xterm I ran it in. > >Yes that's how it works. > >> What If I want it run on all xterms? Run it in .xinitrc ? > >Either make your shell execute that com

Re: Hacking on .Xresources

2024-12-13 Thread Ignatios Souvatzis
Todd G wrote: > UHH, that worked for only the one xterm I ran it in. Yes that's how it works. > What If I want it run on all xterms? Run it in .xinitrc ? Either make your shell execute that command on startup Or start xterm via a wrapper Skript that sets the title or the resource for the t

Re: Hacking on .Xresources

2024-12-12 Thread Todd Gruhn
UHH, that worked for only the one xterm I ran it in. What If I want it run on all xterms? Run it in .xinitrc ? On Thu, Dec 12, 2024 at 8:00 AM Todd Gruhn wrote: > > Thanks -- gives me something to do... > > On Thu, Dec 12, 2024 at 7:13 AM wrote: > > > > On Thu, Dec 12, 2024 at 10:23:27AM +0

Re: Hacking on .Xresources

2024-12-12 Thread Todd Gruhn
Thanks -- gives me something to do... On Thu, Dec 12, 2024 at 7:13 AM wrote: > > On Thu, Dec 12, 2024 at 10:23:27AM +0100, ignat...@cs.uni-bonn.de wrote: > > On Thu, Dec 12, 2024 at 08:47:22AM +0100, Martin Husemann wrote: > > > On Thu, Dec 12, 2024 at 08:09:46AM +0100, Ignatios Souvatzis wrote:

Re: Hacking on .Xresources

2024-12-12 Thread ignatios
On Thu, Dec 12, 2024 at 10:23:27AM +0100, ignat...@cs.uni-bonn.de wrote: > On Thu, Dec 12, 2024 at 08:47:22AM +0100, Martin Husemann wrote: > > On Thu, Dec 12, 2024 at 08:09:46AM +0100, Ignatios Souvatzis wrote: > > > No, but you can do that with a small script from the terminal - there's > > > an

Re: Hacking on .Xresources

2024-12-12 Thread ignatios
On Thu, Dec 12, 2024 at 08:47:22AM +0100, Martin Husemann wrote: > On Thu, Dec 12, 2024 at 08:09:46AM +0100, Ignatios Souvatzis wrote: > > No, but you can do that with a small script from the terminal - there's an > > escape character sequence. I'll post my script later when I have access to > >

Re: Hacking on .Xresources

2024-12-11 Thread Martin Husemann
On Thu, Dec 12, 2024 at 08:09:46AM +0100, Ignatios Souvatzis wrote: > No, but you can do that with a small script from the terminal - there's an > escape character sequence. I'll post my script later when I have access to it. Something like: printf "\x1b]2;you are: ${USER} and here: ${cw

Re: Hacking on .Xresources

2024-12-11 Thread Michael van Elst
tgru...@gmail.com (Todd Gruhn) writes: >This can write text to the top of the xterm: >xterm*Title: >Is it possible to get todays date , and pass it in to xterm*Title ? >Can this be done from inside of .Xresources ? .Xresources is a file that is usually read once when you log in. Your s

Re: Hacking on .Xresources

2024-12-11 Thread Ignatios Souvatzis
No, but you can do that with a small script from the terminal - there's an escape character sequence. I'll post my script later when I have access to it. Greetings -is

Hacking on .Xresources

2024-12-11 Thread Todd Gruhn
This can write text to the top of the xterm: xterm*Title: Is it possible to get todays date , and pass it in to xterm*Title ? Can this be done from inside of .Xresources ?