02-16-2002
xterm colors
I'm a new user to unix and I want to be able to pick and choose different xterm colors via 3rd botton menu. I'm currently pico'd into my .fvwm2rc file and this is what I have under my bottons:
Please advise
############
# Button 1 #
###########################################################################
# #
# We set things up so that if we click on the root-window with our left #
# mouse button, we get a list of window operations (move, resize, etc.) #
# This is also where we logout. #
# #
###########################################################################
AddToMenu Button1 "System Functions" Title
+ "Window Operations" Popup "WindowOps" Nop
+ "Window List" Module FvwmWinList
+ "" Nop
+ "Redraw Screen" Exec xrefresh
+ "Restart Fvwm" Restart fvwm2
+ "Logout" Quit
############
# Button 3 #
###########################################################################
# #
# Button3 (The right mouse button) contains a list of useful programs #
# (xterm, netscape, etc.) #
# #
# You'll notice that the "Rlogin" menu uses an Fvwm "Module" to pop up a #
# fill-in form that passes arguments to the "rlogin" command. This is #
# defined later on in the lines that start with "*Rlogin" #
# #
###########################################################################
AddToMenu Button3 "Utilities" Title
+ "Acroread" Exec acroread
+ "XTerm" Exec xterm -sb -sl 40000 &
+ "Aterm" Exec Aterm -tr -sh 100 -tint blue -sb -sl 2000 -bg 1 -fg 15 -fn 8x16
"Rlogin" Module FvwmForm Rlogin
+ "Netscape" Goto-or-Start Netscape
+ "Remedy" Goto-or-Start aruser
+ "Calculator" Exec xcalc
+ "Man Pages" Exec xman
+ "" Nop
+ "Dept Utils" Popup "DeptUtils" Nop
+ "" Nop
+ "XLock" Exec xlock -mode random &
+ "Logout" Quit
10 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Hello, I am somewhat new to linux. I just installed Red Hat 7.2 and when I try to load gnome or KDE in colors above 8bit it will kind of lock up and display some wierd scrambled cable look. I have an ATI Radeon 7000. I check out my monitor settings they are fine. Is it the graphics card? I set my... (1 Reply)
Discussion started by: Sage3k
1 Replies
2. Linux
When I telnet (ssh) over to my Fedora system, I find the colors horrible. For instance, regular files are white text, which is fine, but directories show up as dark blue which is virtually invisible against the black background). Additionally, when using vi, I find the colors great doing perl... (3 Replies)
Discussion started by: ripley
3 Replies
3. Linux
what dog gone file is setting these colors! i dont see it in bashrc or bash_profile!! anyone know?
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias vi='vim'
alias which='alias | /usr/bin/which... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
4. UNIX for Dummies Questions & Answers
Hey guys,
When I used a Solaris box way back I had directory, file , symbolic link colors, etc... I can't seem to find the .dircolors file and how i set it up for bash on Solaris... anyone remember how to do it?
Thanks! (2 Replies)
Discussion started by: kingdbag
2 Replies
5. UNIX for Dummies Questions & Answers
Is there a way with the bourne shell to have different types of files show up a different color when you do ls? (1 Reply)
Discussion started by: resullivan
1 Replies
6. Shell Programming and Scripting
I want to use
notify_fail ()
{
echo " " >> ${MSG}
echo " Script failed n">> ${MSG}
cat ${MSG}|mailx -s "t1.ksh Success: "name@domain.com"
exit 1
}
I want script failed to show in Red or different colors in the email that i sent to name@domain.com
I serached several sites and also... (1 Reply)
Discussion started by: konark
1 Replies
7. HP-UX
I am using xterm on my HP-UX system (11i). Color is working in xtrem, i can see that with the -color option on ls. When I use vim's syntax high lighting, instead of colors, it uses underline and bold (which looks horrible). I added the following
if &term =~ "xterm"
if has("terminfo")
... (2 Replies)
Discussion started by: kheisler
2 Replies
8. Red Hat
I don't know exactly when or why, maybe running less or some command, my white text on a black background gets inverted and all the text looks like it is "selected", it is white background with black text.
it is very annoying.
I found this solution.;.
export TERM=vt100
vi
This... (0 Replies)
Discussion started by: srhadden
0 Replies
9. UNIX for Dummies Questions & Answers
Hello, I am having an issue with ANSI colors in Redhat linux.
I am running a script where the colours have been set very early on as follows:
# Reset
Color_Off='\033
Later in the script these are used to color define sections of output by reffering to them using:
${White} blah blah blah... (4 Replies)
Discussion started by: Pedro72
4 Replies
10. Shell Programming and Scripting
Hi all,
I used the code given by cfajohnson on this forum to generate background colors for xterm.
Thanks cfajohnson... (sorry wasnt allowed to past the complete url)
n=200 ## adjust to taste: higher value, lighter background n1=$(( 256 - $n )) bg=$( printf "#%x%x%x\n" $(( $RANDOM % $n1 +... (2 Replies)
Discussion started by: carv_13
2 Replies
LEARN ABOUT SUSE
fvwm-menu-xlock
fvwm-menu-xlock(1) Fvwm Utilities fvwm-menu-xlock(1)
NAME
fvwm-menu-xlock - builds xlock menu definition for fvwm
SYNOPSIS
fvwm-menu-xlock [ --help|-h|-? ] [ --version|-V ] [ --name|-n name ] [ --title|-t title ] [ --item format ] [ --icon-title icon ] [
--icon-item icon ] [ --special-first|-s ] [ -- xlock params ]
DESCRIPTION
A simple perl script which parses xlock's output to build an fvwm menu definition of all xlock's modes.
OPTIONS
--help
show the help and exit
--version
show the version and exit
--name name
define menu name in the following argument. Default is "XLockMenu"
--title title
define menu title in the following argument. Default is "XLock Modes".
--item format
define menu item format in the following argument, default is '%n (%d)'. TAB can be specified as ' ', but in .fvwm2rc you should
specify a double backslash or a real TAB.
Format specifiers:
%n - mode name
%d - mode description
%D - mode description without "Shows " prefix if any
These specifiers can receive an optional integer size, positive for right adjusted string or negative for left adjusted, example: %8x;
and optional *num or *-num, which means to leave only the first or last (if minus) num of chars, the num must be greater than 3, since
the striped part is replaced with "...", example: %*30x. Both can be combined: %-10*-20x, this instructs to get only the 20 last char-
acters, but if the length is less then 10 - to fill with up to 10 spaces on the right.
--icon-title icon
--icon-item icon
define menu icon for title and regular item accordingly. Default is no menu icons (equivalent to an empty icon argument).
--wm-icons
define icon names suitable for use with wm-icons package. Currently this is equivalent to: --icon-title '' --icon-item menu/lock.xpm.
--special-first
instructs to include special modes (usually black, bomb and random) first.
Option parameters can be specified either using '=' or in the next argument. Short options are ok if not ambiguous: -h, -t; but be careful
with short options, what is now unambiguous, can became ambiguous in the next versions.
Additional arguments (after --) will be passed to xlock.
Please see the xlock(1) man page for the xlock options.
USAGE
Add these lines to your fvwm configuration file:
PipeRead 'fvwm-menu-xlock --name MenuSSaver --title "Screensaver"
--icon-item mini-bball.xpm --special-first -- -nice 19 -nolock'
PipeRead 'fvwm-menu-xlock --name MenuSLock --title "Lock Screen"
--icon-item mini-rball.xpm --special-first -- -nice 19'
AddToMenu "Utilities" "Screensaver%mini-monitor.xpm%" Popup MenuSSaver
AddToMenu "Utilities" "Screenlock%mini-lock.xpm%" Popup MenuSLock
AUTHORS
Charles K. Hines <chuck_hines@vnet.ibm.com>, initial version.
Mikhael Goikhman <migo@homemail.com>, from 24 Feb 1999.
COPYING
The script is distributed by the same terms as fvwm itself. See GNU General Public License for details.
BUGS
Depends on the output of xlock. Will produce an empty menu if the structure of the output is changed.
Report bugs to fvwm-bug@fvwm.org.
perl v5.8.0 2003-03-15 fvwm-menu-xlock(1)