Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems starting xbindkeys at kde's boot
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
tehmou
n00b
n00b


Joined: 20 Apr 2005
Posts: 9

PostPosted: Wed Apr 20, 2005 8:00 pm    Post subject: Problems starting xbindkeys at kde's boot Reply with quote

I have gentoo-sources kernel version 2.6.11-r5, and I'm using KDE 3.3.

Ok, this may seem like a silly question, but I'm lost since I've tried everything I've found on the web. The problem is, I don't know how to load xbindkeys at start up; I've tried putting "xbindkeys" and "xbindkeys &" (to run it in background, don't know if it's required) into several files, including ~/.xinitrc, ~/.xsession, ~/.Xsession (not sure if it's capitalized or not), /etc/X11/xinit/xinitrc, and /etc/X11/xdm/xsession one at a time, and I even make a script called "xbindkeys" that only has the line "xbindkeys" into the ~/.kde/Autostart directory (and tried chmod 755, in addition to chmod 700 and chmod +x that I found on the web, on it in case there was something wrong with permissions.) Nevertheless, my xbindkeys still doesn't load at startup: writing xbindkeys in the console, on the other hand, makes everything works perfect, and also executing the script I made in the Autostart directory. I'm just getting a feeling that kde keeps ignoring all the supposed init files there are... or am I doing something awfully wrong here?
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Apr 20, 2005 8:57 pm    Post subject: Reply with quote

I have the following script in my ~/.kde/Autostart/ directory:
Code:
#!/bin/bash

xbindkeys

and that seems to work for me just fine.
Back to top
View user's profile Send private message
tehmou
n00b
n00b


Joined: 20 Apr 2005
Posts: 9

PostPosted: Wed Apr 20, 2005 9:08 pm    Post subject: Reply with quote

BitJam wrote:
I have the following script in my ~/.kde/Autostart/ directory:
Code:
#!/bin/bash

xbindkeys

and that seems to work for me just fine.


Thanks a bunch! Though I have no idea what that first line "#!/bin/bash" does, it seemed to help... I had just skipped it since it was commented in all the samples, I guess. Anyway, thanks again, you don't know how relieved I am to finally get this to work!
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed Apr 20, 2005 9:42 pm    Post subject: Reply with quote

Here is a link that will tell you about #! http://en.wikipedia.org/wiki/Shebang
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu Aug 11, 2005 10:51 am    Post subject: Reply with quote

When kdm starts it sources the file .xprofile in each users directory.
This file is sourced once, not with every konsole, xterm, etc session.

So place xbindkeys, xmodmap etc commands in ~/.xprofile

Example ~/.xprofile
Code:
/usr/bin/xmodmap -e "pointer = 1 2 3 9 10 6 7 8 4 5"
/usr/bin/xmodmap ~/.Xmodmap
/usr/bin/logitech_applet --disable-cc
/usr/bin/xbindkeys &
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum