Sponsored Content
Special Forums Windows & DOS: Issues & Discussions "Striping" the background of an Rxvt/Urxvt window in Cygwin Post 302314776 by SilversleevesX on Sunday 10th of May 2009 06:11:39 AM
Old 05-10-2009
"Striping" the background of an Rxvt/Urxvt window in Cygwin

To get this:

Image

out of Cygwin's rxvt, you have to tweak your
/cygwin/etc/x11/app-defaults/rxvt file, which is here:
Image

like this:
Image

More often than not, you'll have to insert the whole line beginning with "Rxvt*backgroundPixmap:" .

Then I strongly suggest making a shortcut to it in your home folder, like this:

Image

... then restart rxvt (safest way, though not always quickest) and enjoy your new background.

BZT

PS: Here is a red background that looks pretty good when run in rxvt.

Image

Last edited by SilversleevesX; 05-10-2009 at 07:39 AM.. Reason: had a picture to add.
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Red Hat

Unable to type anything on "cu" serial terminal window

Hi, I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in screen. But I couldn't type anything on "cu" terminal window. Any help is highly appreciated. ... (1 Reply)
Discussion started by: suryaemlinux
1 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. Solaris

Trap signal on Window Manager "X" button clicked?

Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method? About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
Discussion started by: HandsOGold
2 Replies

5. Web Development

Attaching " Thank You " pop-up window in php form mail code

Dear Sir, I have got a php mail form code. Using this code, I want to use the JavaScript for " Thank You " pop-up window in the php form mail code. Where do I add the pop-up JavaScript for "thank you" ? My code is as follows: <?php //--------------------------Set these... (1 Reply)
Discussion started by: swapan
1 Replies

6. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

7. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
UPSSTATS.HTML(5)						    NUT Manual							  UPSSTATS.HTML(5)

NAME
upsstats.html - HTML template for Network UPS Tools upsstats DESCRIPTION
This file is used by upsstats.cgi(8) to generate status pages. Certain commands are recognized, and will be replaced with various status elements on the fly. FORMATTING
Commands can be placed anywhere on a line, but must start and end with @. Any extra characters before or after the commands will be passed through unchanged. It is allowed to use more than one command on a single line, as long as each command has its own start and end character. If you need to use the @ sign, use @ to prevent it from being treated as a start character. BLOCK CONTROL
Some commands begin blocks - sections of the template that will be included, excluded, or repeated depending on certain parameters. BLOCK CONTROL - ITERATION @FOREACHUPS@ Starts a block that will be repeated for each MONITOR directive in the hosts.conf(5). This is how you can generate pages that monitor all of your systems simultaneously. @ENDFOR@ Ends a FOREACHUPS block. BLOCK CONTROL - MATCHING SPECIFIC CASES @IFSUPP var@* Starts a block that will only be printed if the variable var is supported by the current UPS. This is generally used to suppress "not supported" messages by avoiding the label and variable call entirely. @IFEQ var value@ Starts a block if the value returned from the variable var matches value. @IFBETWEEN varlow varhigh varvalue@ Starts a block if the value returned by the variable varvalue is between the values returned by the variables varlow and varhigh. @ELSE@ If the previous IF-command did not match, perform this instead. @ENDIF@ Ends an IF/ELSE-block. BLOCK CONTROL - ADVANCED EXPRESSIONS Even though the parser is pretty limited, it's still possible to create rather advanced expressions. The key to this is the fact that multiple block control commands are AND:ed. This is illustrated with an example (more examples are available in upsstats.html). @IFSUPP ambient.humidity@ @IFSUPP ambient.temperature@ This UPS knows both ambient temperature and humidity. @ELSE@ @IFSUPP ambient.humidity@ This UPS only knows ambient humidity. @ELSE@ @IFSUPP ambient.temperature@ This UPS only knows ambient temperature. @ELSE@ This UPS knows nothing, how annoying. @ENDIF@ OTHER COMMANDS
@AMBTEMP@ Insert the ambient temperature in the current temperature scale. @DATE format@ Insert the current date and time. The format string is passed to strftime, so almost anything is possible. See strftime(3) for possible values. @DEGREES@ Insert the entity for degrees (o) and either C or F depending on the current temperature scale. @HOST@ Insert the designation of the host being monitored, like myups@localhost. @HOSTDESC@ Insert the hout's description from hosts.conf(5). @HOSTLINK@ Insert a link to upsstats.cgi with the "host" variable set to the current UPS. This is only useful within a FOREACHUPS block. @IMG varname @ Insert an IMG SRC to upsimage.cgi(8) for one of these status variables: battery.charge Battery charge - a percentage battery.voltage The charge on the battery in volts input.frequency Incoming utility frequency (Hz) input.voltage Incoming utility voltage input.L1-L2.voltage Incoming voltage, L1-L2 (3phase) input.L2-L3.voltage Incoming voltage, L2-L3 (3phase) input.L3-L1.voltage Incoming voltage, L3-L1 (3phase) output.frequency Outgoing utility frequency (Hz) output.voltage Outgoing voltage (from the UPS) output.L1-L2.voltage Outgoing voltage, L1-L2 (3phase) output.L2-L3.voltage Outgoing voltage, L2-L3 (3phase) output.L3-L1.voltage Outgoing voltage, L3-L1 (3phase) output.L1.power.percent UPS load, L1 (3phase) output.L2.power.percent UPS load, L2 (3phase) output.L3.power.percent UPS load, L3 (3phase) ups.load UPS load - percentage ups.temperature UPS temperature extra is where you can put additional definitions. Right now the valid definitions are colors for various parts of the bars drawn by upsimage.cgi. Possible color names are: back_col background color scale_num_col scale number color summary_col summary color (number at the bottom) ok_zone_maj_col major scale color for the normal ("ok") zone ok_zone_min_col minor scale color for the normal ("ok") zone neutral_zone_maj_col major scale color for the neutral zone neutral_zone_min_col minor scale color for the neutral zone warn_zone_maj_col major scale color for the warning zone warn_zone_min_col minor scale color for the warning zone bar_col the color of the bar in the middle All colors are hex triplets - 0xff0000 is red, 0x00ff00 is green, and 0x0000ff is blue. Examples: @IMG battery.charge@ @IMG battery.charge back_col=0xff00ff bar_col=0xaabbcc@ @IMG input.voltage ok_zone_maj_col=0x123456@ @REFRESH@ Insert the META header magic for refreshing the page if that variable has been set by the browser. This needs to be in the HEAD section of the page. @STATUS@ Expand the abbreviations in the ups.status variable - OL becomes "On line", OB becomes "On battery", and so on. @STATUSCOLOR@ Insert red, green, or yellow color triplets depending on the severity of the current UPS status. Normal operations are green, warnings like voltage trim/boost or "off" are yellow, and other events like being on battery or having a low battery are red. @VAR varname@ Insert the current value of the status variable varname on the host being monitored, or "Not supported". @RUNTIME@ Inserts the current runtime, in hh:mm:ss format. @TEMPC@ Use the Celsius scale for temperature data (default). @TEMPF@ Use the Fahrenheit scale for temperature data. @UPSTEMP@ Insert the UPS temperature in the current scale. @BATTTEMP@ Insert the battery temperature in the current scale. @UTILITYCOLOR@ Obsoleted. Use IFBETWEEN instead (see example in upsstats.html). @VERSION@ Insert the version number of the software. OTHER TEMPLATES
upsstats.cgi(8) will also open a file called upsstats-single.html if you call it with "host=" set in the URL. That file uses the same rules and techniques documented here. SEE ALSO
upsstats.cgi(8), upsimage.cgi(8) Internet resources: The NUT (Network UPS Tools) home page: http://www.networkupstools.org/ Network UPS Tools 05/22/2012 UPSSTATS.HTML(5)
All times are GMT -4. The time now is 09:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy