Urxvtset

Miscellaneous tools
Message
Author
stu90

Urxvtset

#1 Post by stu90 »

Updated to urxvtset-0.5

new for 0.5
Transparency shading
Borderless window

issues:
very large windows size for some people.

requires:
Yad needs to be installed for urxvtset to work.
latest Yad 0.12.2.pet is available on this link.
http://murga-linux.com/puppy/viewtopic. ... 533#536533

Im not sure how you can move a borderless window? So this option is probably best used with a custom script, menu item or desktop file.
Screen position could be added to the geometry but it would take up another two spaces on the GUI so i'm not sure about that :?
urxvt -geometry "42x12+0+0"
some thing like above would open terminal in upper left corner of the screen.

Image
full res:
http://i.imgur.com/LlAZk.png

-------------------------------------------------------------------
Old Urxvtset-0.4

Attention: if you have downloaded 0.4 already i made an error whilst making the .pet - please see below for the fixed version. cheers.

New for Urxvtset-0.4
thanks again to L18L
Better colour selections
Numeric values for font and geometry.

Image

-----------------------------------------------------------------
Old Urxvtset-0.3

Unless some one still wants rxvtset i will change this thread focus to Urxvtset .

New for Urxvtset-0.3
better way to select text ( thanks L18L )
Pseudo-transparency

Image
full res:
http://i.imgur.com/fSU9S.jpg


-------------------------------------------------------------------
Old rxvtset-0.1

This is a little Yad setup GUI for puppy rxvt terminal.

Only tested on Lucid Puppy but will probably work on other puppies to if Yad works on them.

Image:
http://i.imgur.com/Hmr07.png

What you can do with it:

change -
Text colour.
Background colour.
Cursor underline colour.
window geometry.
Font.
Font style.
Font size.

Things to know - make sure to fill in all input fields, font names and font style are case sensitive - for a list of usable font type the command fc-list in a terminal

Before installing - move/backup your /root/.Xdefaults file if you uninstall rxvtset move/restore this file back to /root to get the default rxvt settings back.

Dependencies - requires Yad for the GUI
download is available on this thread:
http://murga-linux.com/puppy/viewtopic.php?t=58306
Or Yad-0.11.0.pet (38KB) direct download Link here:
http://murga-linux.com/puppy/viewtopic. ... h&id=40921
Attachments
urxvtset-0.5.pet
urxvtset-0.5.pet
(2.49 KiB) Downloaded 1062 times
urxvtset-0.4.pet
Fixed - urxvtset-0.4.pet
(2.18 KiB) Downloaded 962 times
urxvtset-0.3.pet
urxvtset.pet
(2.05 KiB) Downloaded 896 times
rxvtset-0.1.pet
rxvtset-0.1
(1.81 KiB) Downloaded 940 times
Last edited by stu90 on Tue 21 Jun 2011, 11:17, edited 7 times in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#2 Post by bigpup »

Using in Lucid Puppy 5.2.5

The settings are being changed in .Xdefaults
Does not seem to be having any effect on the console.
When you open the console the title is urxvt.
Is this a different rxvt terminal?

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Lucid Puppy - Rxvtset

#3 Post by L18L »

Using in wary 512 user fido
bigpup wrote:...
Does not seem to be having any effect on the console.
When you open the console the title is urxvt.
Is this a different rxvt terminal?

Code: Select all

# rxvt
did show it in action. :)

stu90

#4 Post by stu90 »

bigpup wrote:Using in Lucid Puppy 5.2.5

The settings are being changed in .Xdefaults
Does not seem to be having any effect on the console.
When you open the console the title is urxvt.
Is this a different rxvt terminal?
Hello bigpup,

urxvt and rxvt are the same thing in puppy rxvt being a link to urxvt - however there is a mismatch in the rxvt-unicode package where the default desktop icon will open urxvt while the default urxvt menu item will open rxvt - i guess it is because they have different names the xdefaults for one does not seem to work with the other so a case of six of one and half a dozen of the other.


Here is a .pet for urxvtset :)
Attachments
urxvtset-0.1.pet
(1.81 KiB) Downloaded 859 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

uRxvtset

#5 Post by L18L »

Hi stu90,

thanks for urxvtsetup.pet

Code: Select all

# yad --font
is giving preview of all available fonts/styles/sizes :)

My regards

Here is version 2

Code: Select all

#!/bin/sh

## urxvt terminal setup -v1 ##
## stu90 ##

## combobox -v2
## L18L
version=v2

xdorig="$HOME/.Xdefaults"
xdtmp="/tmp/.Xdefaults"
xdback="$HOME/.Xdefaults.back"

if [ -f "$xdorig" ]; then
 cp $xdorig $xdtmp
 else
 echo "No $xdorig file found exiting"
fi

echo "Current Urxvt terminal settings"

fcolour="`grep 'foreground'  $xdtmp | cut -s -d ":" -f 2`"
echo "$fcolour"

bcolour="`grep 'background'  $xdtmp | cut -s -d ":" -f 2`"
echo "$bcolour"

ccolour="`grep 'underlineColor'  $xdtmp | cut -s -d ":" -f 2`"
echo "$ccolour"

geom="`grep 'geometry' $xdtmp | cut -s -d ":" -f 2`"
echo "$geom"

fsize="`grep 'pixelsize' $xdtmp | cut -s -d "=" -f 3`"
echo "$fsize"

font="`grep 'xft' $xdtmp | cut -s -d ":" -f 3`"
echo "$font"

style="`grep 'style' $xdtmp | awk -F '[=:]' '{print $5}'`"
echo "$style"

font_style="$font:$style"
echo $font_style

setup=$(yad --title="Urxvt Setup - $version" --form \
--text="  To obtain a list of usable fonts open a terminal  \n  window and enter the command fc-list. \n \n           --:Make sure to fill in ALL fields:--   " \
 --field="Foreground" "$fcolour" \
 --field="Background" "$bcolour" \
 --field="Cursor" "$ccolour" \
 --field="Geometry" "$geom" \
 --field="Fontsize" "$fsize" \
 --field="Font:CB" " $font_style! `fc-list | sort -f -u | tr '\n' '!' | sed s/style=//g `"\
 --icons --button="Restore:2" --button="gtk-cancel:1"  --button="gtk-ok:0")

button1=$?
case $button1 in

1)
 echo "Exiting" && exit 0
;;

0) 
### gert setup GUI user input ###
ectext="One or more entries has not been filled in please make sure  to fill in All entries. Exiting with out saving settings"
guitext="  One or more entries has not been filled in. please make sure  \n  to fill in ALL entries. Exiting with out saving settings.  "

 setfcolour=`echo $setup  | cut -d "|" -f1`
 [[ ! "$setfcolour" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
  
 setbcolour=`echo $setup  | cut -d "|" -f2`
 [[ ! "$setbcolour" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
 
 setccolour=`echo $setup  | cut -d "|" -f3`
 [[ ! "$setccolour" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
 
 setgeom=`echo $setup  | cut -d "|" -f4`
 [[ ! "$setgeom" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
  
 setfsize=`echo $setup  | cut -d "|" -f5`
 [[ ! "$setfsize" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit  
  
 #setfont=`echo $setup  | cut -d "|" -f6`
 setfont=`echo $setup  | cut -d "|" -f6 | cut -d ":" -f1`
 [[ ! "$setfont" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
  
 #setstyle=`echo $setup  | cut -d "|" -f7`
 setstyle=`echo $setup  | cut -d "|" -f6 | cut -d ":" -f2`
 [[ ! "$setstyle" ]] && yad --title="Urxvt Setup Info" --text="$guitext" && echo "$ectext" && exit 
 

  ## set fourground colour ##
 sed  -i "s:$fcolour:$setfcolour:g" $xdtmp 2>/dev/null
  
 ## set back ground colour ##
 sed  -i "s:$bcolour:$setbcolour:g" $xdtmp 2>/dev/null
 
 ## set back ground colour ##
 sed  -i "s:$ccolour:$setccolour:g" $xdtmp 2>/dev/null
 
 ## set geometry ##
 sed -i "s:$geom:$setgeom:g" $xdtmp 2>/dev/null
 
 ## set font size ##
 sed -i "s:$fsize:$setfsize:g" $xdtmp 2>/dev/null
 
 ## set font ##
 sed -i "s:$font:$setfont:g" $xdtmp 2>/dev/null
 
 ## set font style ##
 sed -i "s:$style:$setstyle:g" $xdtmp 2>/dev/null

 yad --title="Rxvt Setup Info" --text="   Urxvt terminal settings saved   " && echo "Urxvt terminal settings saved" && cp "$xdtmp" "$xdorig"
 
 exit
;;

2)
if [ -f "$xdback" ]; then
 yad --title="Urxvt Setup Info" --text="   Restored default settings   "
 cp "$xdback" "$xdorig" && echo "Restored default settings"
 else
 echo "Can not find file to restore exiting" && exit 
fi
;;

esac
Attachments
urxvtsetup.png
combobox
(12.34 KiB) Downloaded 4087 times

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#6 Post by bigpup »

bigpup wrote:Using in Lucid Puppy 5.2.5

The settings are being changed in .Xdefaults
Does not seem to be having any effect on the console.
When you open the console the title is urxvt.
Is this a different rxvt terminal?
stu90,

urxvtsetup.pet did it.
Thanks for the quick fix!

Any info on what background number sets do what?
Like #424242 is what color? etc...

Good idea to keep your first post updated with new versions. Most people will not look to far into a topic for newer versions of the pet.

No big deal, but when installing pet, it says entry will be made in menu, under setup. Entry shows up in utility.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

color

#7 Post by L18L »

bigpup wrote: Any info on what background number sets do what?
Like #424242 is what color? etc...
red=green=blue is alway grey
Menu > graphic > gcolor2 color chooser :idea:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: color

#8 Post by bigpup »

L18L wrote:
bigpup wrote: Any info on what background number sets do what?
Like #424242 is what color? etc...
red=green=blue is alway grey
Menu > graphic > gcolor2 color chooser :idea:
Thanks!
Did not think about going to gcolor2 color chooser to see what code is for what color.
For background entry:
Found I could just put a color name like white, blue, green, orange, etc..
But not much control that way.
Getting the code set, for a specific color variation, gives more control.

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

color selection

#9 Post by vovchik »

Dear L18L,

Following in your footsteps (yad --font), why not simply use

Code: Select all

yad --color
for color selection? :)

I am getting to like yad....

With kind regards,
vovchik

stu90

#10 Post by stu90 »

bigpup wrote:
bigpup wrote:Using in Lucid Puppy 5.2.5

The settings are being changed in .Xdefaults
Does not seem to be having any effect on the console.
When you open the console the title is urxvt.
Is this a different rxvt terminal?
stu90,

urxvtsetup.pet did it.
Thanks for the quick fix!

Any info on what background number sets do what?
Like #424242 is what color? etc...

Good idea to keep your first post updated with new versions. Most people will not look to far into a topic for newer versions of the pet.

No big deal, but when installing pet, it says entry will be made in menu, under setup. Entry shows up in utility.
Hi Bigpup that is a colour code - i used the colour from my openbox window decoration - as you have found out you can just enter some colours by name.

Thanks for the heads up - .pet should give the correct category information when installing now. 8)

stu90

Re: uRxvtset

#11 Post by stu90 »

L18L wrote:Hi stu90,

thanks for urxvtsetup.pet

Code: Select all

# yad --font
is giving preview of all available fonts/styles/sizes :)

My regards

Here is version 2
Hi L18L,
Thank you for the update - this makes selecting text much easier now, i have included in new 0.3 .pet :)

cheers.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Lucid Puppy - Urxvtset

#12 Post by L18L »

Hi stu90,
you wrote:Unless some one still wants rxvtset i will change this thread focus to Urxvtset
and please note it not just for Lucid, I am with wary, sometimes as user fido.
vovchik wrote:why not simply use yad --color
I am getting to like yad too and one idea has lead to another so I can present version 03a now.
- forces numeric values for geometry and font size
- color chooser and font chooser for preview
- main window opens at cursor position

Transparence, why just on/off ? Colour chooser enables values from 0 to 255.

Restore, reload default values, stored with OK :?:

Thanks to all for feedback
cheers

Edited:
Attachment deleted
Attachments
urxvtset.png
no comment
(31.12 KiB) Downloaded 3871 times
Last edited by L18L on Thu 16 Jun 2011, 07:36, edited 1 time in total.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#13 Post by Flash »

stu90 wrote:... urxvt and rxvt are the same thing in puppy rxvt being a link to urxvt - however there is a mismatch in the rxvt-unicode package where the default desktop icon will open urxvt while the default urxvt menu item will open rxvt ...
Hmm, would that explain the problems with getting all the applications that use rxvt to show the same text and background when they call rxvt?

For example see this thread.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Lucid Puppy - Urxvtset

#14 Post by L18L »

L18L wrote: present version 03a now.
Forget 0.3a completly please.
It is faulty and too complicated, just an example howto NOT use yad. :oops: :oops: :oops:

Correct and simple version coming soon :)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Urxvtset (Lucid and wary)

#15 Post by L18L »

L18L wrote:Correct and simple version coming soon :)
Here it is, v 0.3b

If there was a way to reject values of zero then the text "Make sure..." could be omitted.
Load default or change values and press OK

When the texts will be finished I would like to internationalize this tool.

cheers
Attachments
urxvtset_3b.png
much simpler now
(16.12 KiB) Downloaded 3758 times
urxvtset.0.3b.gz
forget 0.3a please
(1.58 KiB) Downloaded 837 times

stu90

#16 Post by stu90 »

Flash wrote:
stu90 wrote:... urxvt and rxvt are the same thing in puppy rxvt being a link to urxvt - however there is a mismatch in the rxvt-unicode package where the default desktop icon will open urxvt while the default urxvt menu item will open rxvt ...
Hmm, would that explain the problems with getting all the applications that use rxvt to show the same text and background when they call rxvt?

For example see this thread.
Hi Flash,
Im not sure - it seems a few of the puppy scripts/apps have colours for rxvt set in the script which will over ride .xdefaults - i guess you would need to edit out any -fg -bg colours and change the terminal rxvt/urxvt to match which ever you have .xdefaults set up for.

stu90

Re: Urxvtset (Lucid and wary)

#17 Post by stu90 »

L18L wrote:
L18L wrote:Correct and simple version coming soon :)
Here it is, v 0.3b

If there was a way to reject values of zero then the text "Make sure..." could be omitted.
Load default or change values and press OK

When the texts will be finished I would like to internationalize this tool.

cheers
Hi L18L,
Nice find on the colour chooser - i have looked at the yad --help-all numerous times yet completely missed that. :oops:

To be honest im not to sure about the drag and drop separate font preview option - some of my fonts do not display at all / and others incorrectly - i also have no desktop icons other than drives to drag there.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#18 Post by bigpup »

stu90,

urxvtset-0.4.pet
When installed does not put an entry for it in the menu.

Does not seem to install.

I tried L18L's 0.3b version.
When choosing color for foreground or cursor.
After saving settings. They both will have the same color. Based on the one you changed last.

But overall, a very nice program!

stu90

#19 Post by stu90 »

bigpup wrote:stu90,

urxvtset-0.4.pet
When installed does not put an entry for it in the menu.

Does not seem to install.

I tried L18L's 0.3b version.
When choosing color for foreground or cursor.
After saving settings. They both will have the same color. Based on the one you changed last.

But overall, a very nice program!
Oops sorry about that bigpup :oops:

I have removed the old one and re uploaded 0.4 now to then first post with fixed in the comment.

Do you still have the colour problem in 0.4 ?

cheers.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#20 Post by bigpup »

stu90 wrote:Oops sorry about that bigpup :oops:

I have removed the old one and re uploaded 0.4 now to then first post with fixed in the comment.

Do you still have the colour problem in 0.4 ?

cheers.
The new upload of 0.4 works great. no problems now.
Color works good.
Very, very, nice program now. Very easy to use.
Thanks to you both for very needed addition to Puppy.
Attachments
urxvtset4.jpg
(41.9 KiB) Downloaded 974 times

Post Reply