LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-20-2010, 12:41 PM   #1
Andrew Dufresne
LQ Newbie
 
Registered: Sep 2009
Distribution: Fedroa 10
Posts: 27

Rep: Reputation: 16
How to set properties for xterm and screen for each user?


Hi,

I use xterm with a particular font size and type. But every time I start xterm I have to give them in arguments
Code:
xterm -fa terminus -fs 12
Is there some configuration file where I can out the above parameters and xterm will pick them itself. But I don't want these properties to be set globally. Every user should be able to set it for himself.

I have searched all the hidden folders and rc files in my home folder, but didn't find anyone related to xterm. What should I do?

Similarly every time I start screen, I have to issue
Quote:
:caption always
:caption string %w

Can I make it automatic by editing some configuration file?

Is there any way through which every xterm I start will have a screen session already open in it?

Any help would be greatly appreciated!

 
Old 03-20-2010, 01:19 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
create a .screenrc file in your home directory
http://www.mattcutts.com/blog/screen...tips-screenrc/

Use .bashrc to alias your xterm command
http://tldp.org/LDP/abs/html/sample-bashrc.html

alias xterm2='xterm -fa terminus -fs 12 -e screen &'

You have to log out and back in to use the alias.
 
1 members found this post helpful.
Old 03-23-2010, 12:47 AM   #3
Andrew Dufresne
LQ Newbie
 
Registered: Sep 2009
Distribution: Fedroa 10
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by smoker View Post
create a .screenrc file in your home directory
http://www.mattcutts.com/blog/screen...tips-screenrc/

Use .bashrc to alias your xterm command
http://tldp.org/LDP/abs/html/sample-bashrc.html

alias xterm2='xterm -fa terminus -fs 12 -e screen &'

You have to log out and back in to use the alias.

Thanks smoker, your reply was very helpful.

I found that & is unnecessary in
Quote:
alias xterm2='xterm -fa terminus -fs 12 -e screen'
With the help of the link your gave, my .screenrc now contains

Quote:
caption always "%{kB}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kB}%?%+Lw%?"
hardstatus alwayslastline "%{BW}%16=%l %{BW}%50=%d/%m/%Y %{BW}%80=%c%="
vbell off
One more thing, I use Window Maker instead of GNOME or others. In its main menu there is an option of xterm, but when I clicked on it, it will gave me the default xterm, without using properties that I set above.

A little grep and find, solved the problem:
Open file
Quote:
~/GNUstep/Defaults/WMRootMenu
Search for xterm, under applications, the file is not really hard to understand, and add the parameters there.

Quote:
(XTerm, EXEC, "xterm -fa terminus -fs 12 -bg white -fg black -e screen"),
Regards


 
  


Reply

Tags
screen, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
set network card properties littledrop Slackware 3 10-18-2009 05:57 PM
How to set xterm title to gnu screen session name WindAndTiger Linux - Software 5 05-07-2009 12:33 AM
cannot adjust screen properties kostis Linux - Desktop 1 01-14-2007 01:43 PM
Unable to set focus to the user name field in login screen using keyboard alone Lindaramachandr Linux - General 3 12-29-2004 10:43 AM
Slack: how to set screen Resolution and add a user? linuxfond Slackware 8 02-11-2004 01:39 AM


All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration