xbindkeys support from xautomation

Ask for new features here.

Moderator: Pablo

Post Reply
logistiker
Member
Posts: 43
Joined: Mon Nov 02, 2009 8:35 pm

xbindkeys support from xautomation

Post by logistiker » Sun Nov 15, 2009 10:38 pm

This should be pretty simple to add support for. I imagine something similar to xmodmap like this:

In minimyth.conf:

Code: Select all

MM_X_FETCH_XBINDKEYSRC='yes'
and this 25xbindkeysrc in /etc/X11/xinit/xinitrc.d:

Code: Select all

################################################################################
# xbindkeys
#
# Loads the X bindkeys map file named /etc/X11/xbindkeysrc, if the file exists.
################################################################################

if /usr/bin/test -e /etc/X11/xbindkeysrc ; then
    /usr/bin/xbindkeys -f /etc/X11/xbindkeysrc
fi
It then fetches the xbindkeysrc file and puts it in /etc/X11. Then you just need to add the /usr/bin/xbindkeys binary to minimyth. I've tested this with a tarball and it works perfectly.


Use case for remotes like ps3 remote with an eject button:

#Map eject command to XF86Eject key
"/usr/bin/eject -T"
XF86Eject

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: xbindkeys support from xautomation

Post by Pablo » Mon Nov 16, 2009 12:00 am

I have added the package X11/xbindkeys. In addition, as suggested, I have modified the init scripts to fetch and use the xbindkeysrc based on the value of MM_X_FETCH_XBINDKEYSRC. The change has been committed to SVN and will be in the next build (73b1)
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply