LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2004, 03:13 AM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
xinitrc won't execute xmodmap!


Hi!

I'm trying to make xinitrc to execute
xmodmap -e "pointer = 1 2 3 6 7 4 5"

But it just won't work. Here is my xinitrc.gnome:

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

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

# merge in defaults and keymaps

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

if [ -f $sysmodmap ]; then
/usr/X11R6/bin/xmodmap $sysmodmap
fi

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

if [ -f $usermodmap ]; then
/usr/X11R6/bin/xmodmap $usermodmap
fi

# This nag screen isn't going to save anybody.
export NAUTILUS_OK_TO_RUN_AS_ROOT=1

# Start the window manager:
exec gnome-session


Here is my /opt/xinit/Xmodmap:
-e "pointer = 1 2 3 6 7 4 5"

What am I doing wrong? Is there any other way to execute scripts? I know gnome does provide for this. Can't remember where is it now. Thanks in advance
 
Old 03-17-2004, 03:26 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Well I managed to get gnome-session to execute it for me by using
Startup program
Used that to call /opt/xinit/mxscroll (script file) :
#!/usr/bin
/usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"

I still prefer if xinitrc can fix it for me cause, now I have to click on the dropline-gnome splash screen so that it will go away after gnome comes up.
 
  


Reply



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
xmodmap chrismiceli Linux - Software 2 06-29-2006 03:18 AM
xmodmap help pitt30 Slackware 11 01-14-2005 04:54 AM
xinitrc in libranet? how do i execute a command on x startup? bleargh Linux - Software 6 12-11-2004 11:00 PM
xmodmap not working in .xinitrc kmeehl Slackware 1 12-03-2004 05:14 PM
can xmodmap be used to execute programs? vexer Linux - General 1 10-02-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:49 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
Open Source Consulting | Domain Registration