| Author |
Message |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 07 Jun 2011, 09:58 Post subject:
Urxvtset Subject description: Setup GUI for urxvt terminal - tested on Lucid, Wary |
|
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.php?p=536533#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.
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.
-----------------------------------------------------------------
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
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.php?mode=attach&id=40921
 |
| Description |
urxvtset-0.5.pet
|

Download |
| Filename |
urxvtset-0.5.pet |
| Filesize |
2.49 KB |
| Downloaded |
284 Time(s) |
| Description |
Fixed - urxvtset-0.4.pet
|

Download |
| Filename |
urxvtset-0.4.pet |
| Filesize |
2.18 KB |
| Downloaded |
228 Time(s) |
| Description |
urxvtset.pet
|

Download |
| Filename |
urxvtset-0.3.pet |
| Filesize |
2.05 KB |
| Downloaded |
201 Time(s) |
| Description |
rxvtset-0.1
|

Download |
| Filename |
rxvtset-0.1.pet |
| Filesize |
1.81 KB |
| Downloaded |
208 Time(s) |
Last edited by stu90 on Tue 21 Jun 2011, 07:17; edited 7 times in total
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Mon 13 Jun 2011, 01:55 Post subject:
|
|
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?
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Mon 13 Jun 2011, 05:19 Post subject:
Lucid Puppy - Rxvtset Subject description: working in wary as fido too |
|
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? |
did show it in action.
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Mon 13 Jun 2011, 06:55 Post subject:
|
|
| 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
| Description |
|

Download |
| Filename |
urxvtset-0.1.pet |
| Filesize |
1.81 KB |
| Downloaded |
196 Time(s) |
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Mon 13 Jun 2011, 09:33 Post subject:
uRxvtset Subject description: v2 |
|
Hi stu90,
thanks for urxvtsetup.pet
is giving preview of all available fonts/styles/sizes
My regards
Here is version 2
| Code: | #!/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
|
 |
| Description |
combobox |
| Filesize |
12.34 KB |
| Viewed |
1587 Time(s) |

|
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Mon 13 Jun 2011, 13:07 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Mon 13 Jun 2011, 13:28 Post subject:
color |
|
| 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
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Mon 13 Jun 2011, 14:47 Post subject:
Re: color |
|
| 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  |
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.
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1230 Location: Ukraine
|
Posted: Mon 13 Jun 2011, 15:03 Post subject:
color selection |
|
Dear L18L,
Following in your footsteps (yad --font), why not simply use
for color selection?
I am getting to like yad....
With kind regards,
vovchik
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 14 Jun 2011, 21:31 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 14 Jun 2011, 21:34 Post subject:
Re: uRxvtset Subject description: v2 |
|
| L18L wrote: | Hi stu90,
thanks for urxvtsetup.pet
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.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Wed 15 Jun 2011, 14:25 Post subject:
Re: Lucid Puppy - Urxvtset Subject description: Setup GUI for urxvt terminal |
|
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
| Description |
no comment |
| Filesize |
31.12 KB |
| Viewed |
1491 Time(s) |

|
Last edited by L18L on Thu 16 Jun 2011, 03:36; edited 1 time in total
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9846 Location: Arizona USA
|
Posted: Wed 15 Jun 2011, 23:09 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Thu 16 Jun 2011, 02:39 Post subject:
Re: Lucid Puppy - Urxvtset Subject description: Setup GUI for urxvt terminal |
|
| L18L wrote: | | present version 03a now. |
Forget 0.3a completly please.
It is faulty and too complicated, just an example howto NOT use yad.
Correct and simple version coming soon
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1715 Location: Burghaslach, Germany
|
Posted: Thu 16 Jun 2011, 03:02 Post subject:
Re: Urxvtset (Lucid and wary) Subject description: Setup GUI for urxvt terminal |
|
| 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
| Description |
much simpler now |
| Filesize |
16.12 KB |
| Viewed |
1438 Time(s) |

|
| Description |
forget 0.3a please
|

Download |
| Filename |
urxvtset.0.3b.gz |
| Filesize |
1.58 KB |
| Downloaded |
188 Time(s) |
|
|
Back to top
|
|
 |
|