UrxvtControl-1.3

Miscellaneous tools
Message
Author
radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

UrxvtControl-1.3

#1 Post by radky »

System Requirements
rxvt-unicode (urxvt), gtkdialog4 (0.7.21 or greater), xdialog, perl (optional)

Purpose and Base Features
UrxvtControl provides graphical access to common configuration options of the rxvt-unicode (urxvt) terminal emulator. The user interface automatically adjusts to the available options supported by the installed version of urxvt. For example, the default urxvt 9.05 of most Puppies released since 2008 does not (as compiled) provide native support for Perl plugins. However, urxvt 9.20 of tahrpup-6.x supports useful plugins (extensions) such as tabs, clickable URLs and auto-copy of selected text to the X-Clipboard.

UrxvtControl Options
•Color of Foreground (Text) and Background
•Color of Cursor, URLs and Underline (urxvt >= 9.19 is required for cursor color independent of underline color)
•Tabs (on/off) and Tab Color (Perl plugin support required, such as urxvt 9.20 in tahrpup 6.x)
•Font Name and Style Attributes (Default:fixed-width monospace fonts)
•Font Size (Default:15 Range:10-24)
•Font Antialiasing (on/off)
•Font Hinting (on/off)
•Font Spacing (Default:0 Range:-5 .. 0) Note: requires urxvt >= 9.07
•Interface Width (Default:80 Range:50-200)
•Interface Height (Default:24 Range:10-80)
•Borderless (on/off) Note: This option is window-manager dependent. For example, supported by openbox, but not by JWM).
•Transparency (on/off)
•Transparency Shading (Default:85, Darken (0 .. 100) or lighten (-1 .. -100))
•Scroll Bar (on/off)
•Scroll Side (right or left)
•Scroll Style (rxvt and plain, plus next and xterm in supported compilations of urxvt - such as tahrpup 6.x)
•Scroll Width (Default:10 Range:7-20) Note: This option applies only to rxvt, plain and xterm scroll styles.
•Scrollback buffer (Default:1000 Range:0-65535) Note: Large scrollback buffers require more system memory.

For your convenience, the 'Tabs' option may be enabled or disabled without changing the status of other Perl extensions, or you can select the tray 'Plugin' button to completely enable/disable Perl extensions. The 'Restore' button will reload the original urxvt configuration settings that were in place before the first-run of UrxvtControl. If required, the 'Edit' button will provide quick access to /root/.Xdefaults for viewing or manual editing of the urxvt configuration settings. For a tooltip status report, please hover the mouse pointer over the interface header text (Urxvt Terminal Control).

Caveats for the resize-font and tabbed plugins

Window:
The tabbed plugin interferes with the capacity of the resize-font plugin to correctly resize the terminal window when the font size changes on-the-fly. Consequently, this may require manual resizing of the window to view all text. However, if the tabbed plugin is disabled (Tabs=off in UrxvtControl), the resize-font plugin maintains the correct aspect ratio of the terminal window.

Text:
When the resize-font plugin is enabled, text displayed in the terminal may truncate when a maximized urxvt window is restored to the original size. Also, decreasing text to a very small size (1-2 px) may result in complete loss of visible text.

rxvt-unicode changelog
http://dist.schmorp.de/rxvt-unicode/Changes

Download
http://www.smokey01.com/radky/UrxvtControl-1.3.pet

Locales
French: http://murga-linux.com/puppy/viewtopic. ... 331#828331 (thanks ASRI éducation)
Russian: http://murga-linux.com/puppy/viewtopic. ... 57#1005657 (thanks Pro)

Main Interface with Perl plugin support (tahrpup and xenialpup)
Image

Main Interface without Perl plugin support (most Pups since 2008)
Image

Transparent urxvt with multiple tab windows and clickable URL in tahrpup
Image
Last edited by radky on Wed 19 Dec 2018, 04:47, edited 11 times in total.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#2 Post by radky »

UrxvtControl-1.3
- Add support for 'scrollWithBuffer:true' which enables active scrollback to buffered terminal text
- Add perl-extension support for changing urxvt font-size by hotkey (resize-font plugin)
- Add Resize option to the main GUI (enable/disable resize-font plugin)
- The resize-font plugin provides the following keyboard shortcuts
• Ctrl+Up: Increase font size of the current terminal
• Ctrl+Down: Decrease font size of the current terminal
• Ctrl+equal: Reset font size to original numerical value
• Ctrl+slash: Show current font resource in popup dialog

Please see caveats in the first post concerning urxvt plugins (resize-font and tabbed).

UrxvtControl-1.2
- Adjust GUI widget width for non-English locales

UrxvtControl-1.1
- improved gettext for internationalization (thanks ASRI éducation)
Last edited by radky on Sat 18 Mar 2017, 04:17, edited 6 times in total.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#3 Post by radky »

Files required for urxvt perl extensions are not included in the initial base release of tahrpup 6.0, but are in the devx.

This pet contains the perl files required by tahrpup for urxvt plugins such as tabs, clickable URLs and automatic copy of selected text to the X-clipboard.
Attachments
tahrpup_urxvt_perlmodules.pet
(167.22 KiB) Downloaded 740 times

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#4 Post by radky »

Re. BK's Quirky April and April64:

Although the default urxvt terminal of Quirky April/April64 is current (v9.20), it does not support background transparency (or perl plugins).

Consequently, setting the transparency option to 'On' in UrxvtControl has no effect on the urxvt terminal of Quirky April/April64.
Last edited by radky on Fri 23 Jan 2015, 14:48, edited 1 time in total.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
neerajkolte
Posts: 516
Joined: Mon 10 Feb 2014, 07:05
Location: Pune, India.

#5 Post by neerajkolte »

Tested in Fatdog64-700 beta2.

Works nicely.
Liked the transparent look.
Thanks

- Neeraj.
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.â€￾
- Amara’s Law.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#6 Post by radky »

Thank you Neeraj. :)

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#7 Post by 666philb »

missed you posting this .... added to the next tahrpup

thanks
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

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

#8 Post by Flash »

I tried UrxvtControl in Slacko 5.9.3. After installing it, I found I could not copy & paste into a console the way I'm used to (highlight to copy, then simultaneous left & right click to paste.) I couldn't find a way to paste, so I uninstalled it. :(
Also, it would really be great if each font in the drop-down list of fonts were shown in its own font. That may not be possible, but if it is it sure would make the app a winner in my book. (That and the copy/paste thing.) :)

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#9 Post by radky »

Hi Flash,

UrxvtControl changes only the urxvt section of /root/.Xdefaults. No other system files are modified.

In Puppy, setting the mouse to paste text into the terminal by "simultaneous right/left clicking" is controlled by the InputDevice section of /etc/X11/xorg.conf.

Code: Select all

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2" #mouse0protocol
	Option	    "Device" "/dev/mouse"
	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection
Remove the two 'Option' hash marks

and change

Code: Select all

	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
to

Code: Select all

	Option      "Emulate3Buttons"
	Option      "Emulate3Timeout" "50"
Then restart X

Or, you can go to the Puppy Input Wizard -> Type of mouse -> select "Middle button emulated on 2-button mouse" and then restart X.

--

The font list of UrxvtControl is generated by the fc-list command (run this in a terminal see the font list).

The "font name:style" format in the generated list is the same basic format used in UrxvtControl and in the urxvt configuration section of /root/.Xdefaults.

For example:

Code: Select all

Nimbus Mono L:style=Regular
Thanks for your comments Flash. I hope you will give UrxvtControl another try. :)

PS - you can also paste into the terminal by using the middle (wheel) button of the mouse, or by the Shift+Insert keyboard sequence. Additionally, in urxvt 9.20 (if compiled with perl support), you can enjoy auto-copy of selected text to the X-clipboard, for pasting to other programs. This feature is available in the updated tahrpup 6.0.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
nic007
Posts: 3408
Joined: Sun 13 Nov 2011, 12:31
Location: Cradle of Humankind

#10 Post by nic007 »

Flash wrote:I tried UrxvtControl in Slacko 5.9.3. After installing it, I found I could not copy & paste into a console the way I'm used to (highlight to copy, then simultaneous left & right click to paste.) I couldn't find a way to paste, so I uninstalled it. :(
Also, it would really be great if each font in the drop-down list of fonts were shown in its own font. That may not be possible, but if it is it sure would make the app a winner in my book. (That and the copy/paste thing.) :)
Middle-button to paste into terminal?

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

#11 Post by Flash »

I use a Kensington Orbit trackball that doesn't have a middle button, only a scroll ring which does nothing but turn, and the left and right clickers.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#12 Post by radky »

Flash wrote:I use a Kensington Orbit trackball that doesn't have a middle button, only a scroll ring which does nothing but turn, and the left and right clickers.
Flash,

Did you try the following for 'simultaneous left & right click to paste' :?: :?:

Puppy Input Wizard -> Type of mouse -> select "Middle button emulated on 2-button mouse" and then restart X.
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#13 Post by ASRI éducation »

Tested with Precise-CE.
All seems to be ok.
Thank you radky!
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

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

#14 Post by Flash »

radky wrote:Did you try the following for 'simultaneous left & right click to paste':

Puppy Input Wizard -> Type of mouse -> select "Middle button emulated on 2-button mouse" and then restart X.
I could never figure out what that would do. Will it make the simultaneous clicking of both left and right mouse buttons act as a middle button? Because that's what urxvt already does -- except after I install UrxvtControl. :?

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#15 Post by radky »

Flash wrote:I could never figure out what that would do. Will it make the simultaneous clicking of both left and right mouse buttons act as a middle button?
Yes, in Linux, the X server can emulate the middle mouse button by simultaneous pressing of left and right mouse buttons.

In Puppy, this configuration option is set in /etc/X11/xorg.conf as described above.

The simple way to implement this feature, for the conventional mouse, is to go to the Puppy Input Wizard -> select "Type of mouse" -> select "Middle button emulated on 2-button mouse" and then restart X.

I tested this in your current distro (Slacko 5.9.3):

1 - On first boot, simultaneous pressing of the left and right buttons of my wireless Logitech mouse did not paste text into the terminal.
2 - After I changed the mouse setting in /etc/X11/xorg.conf through the Puppy Input Wizard as described above, simultaneous pressing of left and right mouse buttons will paste text correctly into the terminal, with or without UrxvtControl installed.
3 - Possibly your Kensington Orbit trackball does not interact as expected with the X-server settings in /etc/X11/xorg.conf.
4 - UrxvtControl makes no changes to /etc/X11/xorg.conf, and has no direct impact on mouse button functions that are controlled by the X server.
Attachments
Puppy-Input-Wizard.png
(5.67 KiB) Downloaded 2875 times
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#16 Post by radky »

UrxvtControl-1.1. See first post
- improved gettext for internationalization (thanks ASRI éducation)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#17 Post by ASRI éducation »

radky wrote:UrxvtControl-1.1. See first post
- improved gettext for internationalization (thanks ASRI éducation)
urxvtcontrol.mo fr
Regards
Attachments
urxvtcontrol_mo_fr_20150214.tar.gz
(4.01 KiB) Downloaded 412 times
Projet ASRI éducation => [url=http://asri-education.org/]Association[/url] | [url=http://forum.asri-education.org/]Forum[/url] | [url=http://dl01.asri-education.org/]Dépôt[/url] | [url=http://kids.asri-education.org/]Espace kids[/url]

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#18 Post by radky »

UrxvtControl-1.2. See first post.
- Adjust GUI widget width for non-English locales
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

User avatar
OscarTalks
Posts: 2196
Joined: Mon 06 Feb 2012, 00:58
Location: London, England

#19 Post by OscarTalks »

Hello radky,

Many thanks for all your work.
I have installed UrxvtControl-1.2 into my personal remaster of Dpup Wheezy 3.5.2.11 which remains my most-frequently-used Puppy.

Also I wanted to try compiling the latest version of urxvt which is 9.22 so I did that with configure options --enable-everything --disable-startup-notifications (are these used or needed for anything in Puppy?).

Then I used your perl modules .pet as a guide to figure out which perl files I needed to move from the devx into the main Puppy .iso

Are you aware of any pitfalls that I might encounter with this urxvt upgrade or do you have any other advice or suggestions?

Otherwise everything seems OK so far. I will report any issues that may arise as I continue to test it out. Thanks again.
Oscar in England
Image

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#20 Post by radky »

@OscarTalks,

Thanks for your comments.

I'm currently testing the tahrpup64 6.0.5.3 beta which also has urxvt 9.22.

As shown below, the urxvt in tahrpup64 was compiled with all the configure options you could possibly require and works great with UrxvtControl.

Code: Select all

rxvt-unicode (urxvt) v9.22 - released: 2016-01-23
options: perl,xft,styles,combining,blink,iso14755,unicode3,
encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,
pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,cursorBlink,
pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
I see no functional utility for the startup-notication option in urxvt, but I do find the perl extensions very useful, particularly the multi-tab interface and auto-copy of selected text to the X-Clipboard.

At the moment, I'm not aware of any problems with the upgrade to urxvt 9.22.

-------

PS - Dpup Wheezy 3.5.2.11 was a great release by pemasu. I fully understand why it may be your favorite Puppy. :)
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]

Post Reply