Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
Uxrvt is a fabulous, highly configurable, terminal program with many advanced features. Sometimes configuring it can be a pain so I've come up with what I hope is a decent default configuration and an easy way to change the default configuration. This is a simple command line program but I think it would be easy to write a GUI wrapper for it if people were interested.

Everything you need is in the attached tarball. Here are the installation instructions:

Code: Select all

tar xzf urxvt-style-0.01.tar.gz
cd urxvt-style
sudo cp -a xtra/* /
cp xtra/skel/.Xresources ~
cp -a xtra/skel/.config/* ~/.config/
Installing on a LiveUSB is even easier:

Code: Select all

tar xzf urxvt-style-0.01.tar.gz
cd urxvt-style
sudo cp -a xtra /live/boot-dev/antiX
The next time you boot the files will get installed where they belong.

Everything is done with the urxvt-style program. It lets you change the defaults and then launches a new instance of urxvt with the new defaults. You can control the font size, the background, the color scheme the starting geometry, and a couple of special features called"tabbed" and"font-size". The tabbed feature lets you have multiple tabs in a single urxvt window. The font-size feature lets you change the font size with the key combos ctrl-shift-up/down.

The first time you run urxvt-style, the ~/.Xresources file needs to have been loaded. I hope to have this done automatically in the next release of antiX. In the meantime, just start with the"reset" style. You only need to do this the first time you run urxvt-style after X has started.

Examples:

Code: Select all

urxvt-style reset zenburn transbg tabbed size16 medium
This first loads the ~/.Xresources file, then sets the color-scheme to zenburn with a transparent background. Then it enables tabs, sets the font size to 16 and the window size to medium.

Code: Select all

urxvt-style sorbet size12 large
This uses the sorbet color scheme with a size 12 font in a large window.

Non-conflicting styles accumulate so if you run the two commands above in order then the second one will inherit the transparent background and the tabbed feature. But the font size, window size, and color scheme get overwritten with the new parameters. If you don't want to inherit what you've done previously then start with the"reset" style which starts over with a clean slate using only the parameters in the ~/.Xresources file.

Finally, when you get a default configuration you like, use the"save" style to update the ~/.Xresources file with the new configuration you've created.

Code: Select all

urxvt-style save
Use -h or --help to get usage which includes a description of all the available styles.

I've also include three little programs: ansi-bars, ansi-colors, and ansi-tput that will show you what the current color-scheme looks like. I've attached a few screen shots which show the three existing color schemes. The little urxvt-style program is seductively easy to extend but perhaps it already has too many options. I think it is a lot of fun to play with and may serve as a gentle introduction to configuring urxvt. Of course, you are free to edit the ~/.Xresources file manually if you want. This should not conflict with the urxvt-style program.

If you want to extend urxvt-style, simply add your own style files to the /usr/local/lib/urxvt/Xresources directory.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
Here are screen shots of the zenburn color scheme. One of them has the standard zenburn background and the other has a darkened and blurred transparent background.

If you want to make your own color scheme, copy one of the existing color schemes: def-colors, sorbet, or zenburn to a new file then edit that file and use the name of the file as your new style:

Code: Select all

cd /usr/local/lib/urxvt/Xresources
sudo cp sorbet my-colors
sudo $EDITOR my-colors
urxvt-style my-colors
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#3

Code: Select all

harry@biker:~
$ tar xzf urxvt-style-0.01.tar.gz
harry@biker:~
$ cd urxvt-style
harry@biker:~/urxvt-style
$ sudo cp -a xtra/* /
[sudo] password for harry: 
harry@biker:~/urxvt-style
$ cp xtra/skel/.Xresources ~
cp: cannot stat `xtra/skel/.Xresources': No such file or directory
harry@biker:~/urxvt-style
$ sux                       
Password: 
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
root@biker:/home/harry/urxvt-style# cp xtra/skel/.Xresources ~
cp: cannot stat `xtra/skel/.Xresources': No such file or directory
root@biker:/home/harry/urxvt-style# exit
exit
harry@biker:~/urxvt-style
$ inxi -S
System:    Host: biker Kernel: 3.11.5-antix.1-486-smp i686 (32 bit) 
           Desktop: IceWM 1.3.7 Distro: antiX-13_386-full Luddite 01 June 2013
$ cd ~
harry@biker:~
 
I guess if it can be broke. Then I am your man. __{{emoticon}}__

Poking around. I downloaded it into /home/harry

there is a .xresources text file in ~/urxvt-style/xtra/ etc/skel/.xrecources. so

Code: Select all

harry@biker:~
$ cd urxvt-style
harry@biker:~/urxvt-style
$ cp xtra/ etc/skel/.Xresources ~
harry@biker:~/urxvt-style
$ cp -a xtra/ etc/skel/.config/* ~/.config/
harry@biker:~/urxvt-style
Now for a reboot, like as If I knew what I was doing. __{{emoticon}}__

Friggin forum bug made me edit etc again. Sneaky BitJam. __{{emoticon}}__
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
OOOOOHhhhhhhhhh. Too Kool for Skool.

Image

Still learning me.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#5
Thanks for trying it Roky. I don't know what happened to your .Xresources file. There is no .xresources file in the tarball. Maybe .Xresources would get converted to .xresources on fat32?

Code: Select all

$ tar tzf urxvt-style-0.01.tar.gz | grep skel
urxvt-style/xtra/ etc/skel/
urxvt-style/xtra/ etc/skel/.config/
urxvt-style/xtra/ etc/skel/.config/xresources/
urxvt-style/xtra/ etc/skel/.config/xresources/fonts
urxvt-style/xtra/ etc/skel/.Xresources
[spaces added before"etc" in code block]
rokytnji wrote:Friggin forum bug made me edit etc again. Sneaky BitJam. __{{emoticon}}__
I think Dave alluded to a non-transient solution:

Code: Select all

[i]/[/i]etc
which is what i use now: /etc

Now that it is working, try: fadeXX, shadeXX, blurXX, swipeXX and wipeXX. They are all explained in the output of:

Code: Select all

urxvt-style --help
It's all kind of silly but it was intended to make it easy to play around with these features. The blurring stuff may create a lot of lag when you move windows around. I have my window manager (e16) configured so windows don't get updated when they are moving so I don't have a lag problem here. The window only updates the background when I stop moving it.

If you use a compositing window manger then you might want to enable true transparency instead of the pseudo-transparency I used in urxvt-style. Perhaps the blurring would be much faster if handled by the compositor.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#6
Thanks for trying it Roky. I don't know what happened to your .Xresources file. There is no .xresources file in the tarball. Maybe .Xresources would get converted to .xresources on fat32?
No. That is what happens when Rok is typing and drinking red beer on a Friday night. It was .Xresources, not .xresources. Friggin biker.
Trix is for Kids.

Also, as you noticed. The italics code for etc does not play well inside code tags. There. I must be hung over a bit. I sounded like a Hall Monitor which makes me feel all creepy inside. Yuk.

Last night I was on my IBM T23 laptop. I just did the basics. Nothing fancy when I picked save because of low specs running Icewm.

I am going to give this a go now on my Atom M&A Netbook with Icewm sometime today. So give me some slack as I am kinda a bit shaky bakey, not wakey,
waiting on eggs and bakey today.
Alanarchy
Posts 0
Alanarchy
#7
Poking around. I downloaded it into /home/harry
Ah! I downloaded it to"Downloads". OK starting again __{{emoticon}}__ __{{emoticon}}__