You are not logged in.
Pages: 1
Hello again Arch Forums!
I've configured xbindkeys to my tastes, but I have to start it manually every time I reboot. I already have xbindkeys in my ~/.xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
xbindkeysAs the xbindkeys wiki page says, but It still won't run when my session is started.
How do I get my ~/.xinitrc to run it?
Last edited by SwitchDhole (2015-03-25 15:03:26)
Offline
You should pick a WM and add it to your ~/.xinitrc. What are you using atm?
https://wiki.archlinux.org/index.php/Xinitrc
Offline
If your WM is starting, then xinitrc is clearly not being used. I gather you use a display manager to start X, right? Which one?
Some display managers use a .desktop file, or some other session file in place of xinitrc - you should put the xbindkeys command there.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
You should pick a WM and add it to your ~/.xinitrc.
I use Gnome Display Manager with awesome.
I added
session=${1:-awesome}to my ~/.xinitrc, but it had no effect after rebooting.
Some display managers use a .desktop file, or some other session file in place of xinitrc - you should put the xbindkeys command there.
I added
awful.util.spawn_with_shell("xbindkeys")to my rc.lua, restarted Awesome, and it worked!
Offline
Pages: 1