Re: URXVT background color

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sat, Mar 18, 2017 at 10:51:16AM +0000, arnaud gaboury via arch-general wrote:
> I run many urxvt windows on my screen. Some are for the host system and
> some are for my container (managed by systemd-nspawn).
> I am looking for a way to change color background according to hostname in
> order to quickly see which terminal I am on.
>  My idea was to test $HOST variable in my ~/.xinitrc and give a specific
> .Xressource accordingly, but it doesn't work as .xinitrc is obviously not
> invoked when I fire a new terminal window.

Hi,
I think you don't want to use the terminal background for this. The
better solution would be a custom prompt for your containers (I use
powerlevel9k with zsh for this [1]).

The problem here is that if you want to do this over the terminal
background you would need custom wrappers that will open a new terminal
for you + your command to spawn into the container. I can imagine that
this workflow will annoy in future.

just my two cents,

chris


[1] https://paste.archlinux.de/xRYkm/ thats my current workflow. This
prompt detects virtualization and SSH sessions.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux