You are not logged in.

#1 2015-03-25 14:32:54

SwitchDhole
Member
Registered: 2015-02-01
Posts: 51

[SOLVED] Xbindkeys not starting with WM

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

xbindkeys

As 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

#2 2015-03-25 14:44:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Xbindkeys not starting with WM

You should pick a WM and add it to your ~/.xinitrc. What are you using atm?
https://wiki.archlinux.org/index.php/Xinitrc

Offline

#3 2015-03-25 14:48:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] Xbindkeys not starting with WM

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

#4 2015-03-25 15:03:04

SwitchDhole
Member
Registered: 2015-02-01
Posts: 51

Re: [SOLVED] Xbindkeys not starting with WM

karol wrote:

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.

Trilby wrote:

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

Board footer

Powered by FluxBB