LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Include on X boot... xinitrc (https://www.linuxquestions.org/questions/linux-newbie-8/include-on-x-boot-xinitrc-77880/)

Ctawp 07-31-2003 09:55 PM

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?

Tinkster 07-31-2003 11:11 PM

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

jrdioko 07-31-2003 11:19 PM

How about this:

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

Geared towards Fluxbox but I found it helpful.

-JMagi

Ctawp 07-31-2003 11:32 PM

Anybody mind posting a mockup .xinitrc file? I'm not having too much luck.

Tinkster 08-01-2003 12:19 AM

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


Ctawp 08-01-2003 09:56 AM

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?

Tinkster 08-01-2003 05:19 PM

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


All times are GMT -5. The time now is 03:49 PM.