LinuxQuestions.org
Help answer threads with 0 replies.
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 07-31-2003, 09:55 PM   #1
Ctawp
Member
 
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58

Rep: Reputation: 15
Include on X boot... xinitrc


How do you configure the X boot to run a given command? To my knowledge I have no .xinitrc files in my user directories and don't really know how I would go about configuring one. Any easy way to add a command to the X boot?
 
Old 07-31-2003, 11:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Firstly, check what your window manager/
desktop environment has to offer :)

KDE for instance has an Autostart-folder.

Secondly, to create a customized .xinitrc
you can just copy one of the systems ones
and edit it to your liking ;)

Look in /etc/X11/xinit/ and take your pick ;)

Cheers,
Tink
 
Old 07-31-2003, 11:19 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
How about this:

http://www.fluxbox.org/docbook/en/fl...html#APP-SETUP

Geared towards Fluxbox but I found it helpful.

-JMagi
 
Old 07-31-2003, 11:32 PM   #4
Ctawp
Member
 
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58

Original Poster
Rep: Reputation: 15
Anybody mind posting a mockup .xinitrc file? I'm not having too much luck.
 
Old 08-01-2003, 12:19 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Start the window manager:
/sbin/trail.sh&
gkrellm&
lavaps&
/usr/local/bin/tpb&
xscreensaver& 
exec /usr/local/bin/fluxbox
 
Old 08-01-2003, 09:56 AM   #6
Ctawp
Member
 
Registered: Jul 2003
Location: Chicago, IL
Distribution: Fedora Core 4
Posts: 58

Original Poster
Rep: Reputation: 15
So should I just be able to add a line in that says:

xkbset bo 1
(just a command line run command)
and it will run that, or no? (hasn't seemed to work, but I don't exactly know what I'm doing all that much)

Also, is there any way to set it up so that it repeats this command after x seconds/minutes?

Last edited by Ctawp; 08-01-2003 at 10:15 AM.
 
Old 08-01-2003, 05:19 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
xkbset bo 1
(just a command line run command)
and it will run that, or no?
Yes ... before the exec statement, though.

Quote:
Also, is there any way to set it up so that it repeats this command after x seconds/minutes?
Nope. But you can put an
"at" command there.

Cheers,
Tink
 
  


Reply


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
include/linux/types.h and include/linux/posix_types.h kpachopoulos Programming 2 11-26-2005 05:52 AM
Configuring Boot Process on Mandrake 10 to include command "ifup eith0" Bennyjamin Linux - Hardware 3 12-27-2004 04:22 PM
Semi-Newbie seeks distro for a dual boot system. Must include a good package manager Whiskers Linux - Distributions 10 11-12-2004 02:11 AM
.xinitrc unimaginative Linux - Newbie 1 01-03-2004 10:53 PM
.xinitrc mrsolo Linux - Software 5 10-30-2002 10:16 AM


All times are GMT -5. The time now is 12:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration