--- xbindkeys-1.8.6.orig/debian/NEWS +++ xbindkeys-1.8.6/debian/NEWS @@ -0,0 +1,17 @@ +xbindkeys (1.8.5-1) unstable; urgency=low + + * xbindkeys now delivers a script to automatically start with the X + session. xbindkeys will run automagically when + - there is a /etc/xbindkeysrc, or + - there is a ${HOME}/.xbindkeys, or + - there is a ${HOME}/.xbindkeysrc.scm. + + The config files are checked in the above mentioned order, the last + one found wins. + + If a user does not want this behaviour he can turn it off for himself + by creating the file .xbindkeys.noauto in his homedir. He then has to + manage xbindkeys startup on his own. + + -- Joerg Jaspert Sat, 28 May 2011 18:27:57 +0200 + --- xbindkeys-1.8.6.orig/debian/README.Debian +++ xbindkeys-1.8.6/debian/README.Debian @@ -0,0 +1,59 @@ +xbindkeys for Debian +-------------------- + +You may want to install the xbindkeys_config Package to have a GUI for +the Setup of xbindkeys. + +xbindkeys autostart +------------------- +Within systems following the Freedesktop standard of application +autostart, xbindkeys should load automatically. In other environments +the user has to take care of this themself, either by just adding +xbindkeys to their .xsession - or by calling +/usr/bin/xbindkeys_autostart via whatever way their environment provides. + +Using xbindkeys_autostart instead of calling xbindkeys directly adds +the possibility to easily disable xbindkeys by touching +~/.xbindkeys.noauto, other than that there is no difference. + +Modifier keys +------------- +If you have a modifier Key which is not known to xbindkeys by its name +you can go "The Hard Way": + +====== +First, be sure that it generates events in 'xev'. Run 'xev' from a terminal +emulator, and hit the modifier key. If it generates text, then you're set to +use it with xbindkeys. + +The output 'xev' gives is important. When you push down the modifier key, it +generates a "KeyPress" event. When you release it, it generates a +"KeyRelease" event. Note that the "KeyRelease" event is the important one. The +"state" field in this paragraph is what we need to give xbindkeys. Here's some +example output of my setup: + +KeyPress event, serial 28, synthetic NO, window 0x1a00001, + root 0x40, subw 0x0, time 3415640395, (89,156), root:(929,614), + state 0x10, keycode 115 (keysym 0xffed, Hyper_L), same_screen YES, + XLookupString gives 0 characters: "" + +KeyRelease event, serial 28, synthetic NO, window 0x1a00001, + root 0x40, subw 0x0, time 3415640637, (89,156), root:(929,614), + state 0x30, keycode 115 (keysym 0xffed, Hyper_L), same_screen YES, + XLookupString gives 0 characters: "" + +So, we care about the KeyRelease event. The state is set to "0x30". So, in +~/.xbindkeysrc, we have: + +"xterm &" + m:0x30 + F1 + +There we go, now I can use my un-named modifier key with xbindkeys. For what +it's worth, my "un-named modifier key" is the left Windows key. +====== + +Today these Modifier Keys are known by name: +Control, Shift, Mod1 (Alt), Mod2 (NumLock), Mod3 (CapsLock), Mod4, +Mod5 (Scroll). + + -- Joerg Jaspert , Sun, 16 Feb 2014 13:24:12 +0100 --- xbindkeys-1.8.6.orig/debian/changelog +++ xbindkeys-1.8.6/debian/changelog @@ -0,0 +1,203 @@ +xbindkeys (1.8.6-1) unstable; urgency=medium + + * New upstream version + - Bug fix: Do not grab keysym not mapped on keyboard. + Prevent a AnyKey grab, this should (Closes: #447026) + * Bug fix: "New release blocks seahorse" (Closes: #628654). + We now put the autostart script elsewhere and place a file in + /etc/xdg/autostart. In the common Desktop Environments this should + have xbindkeys still start automatically, but without the problems the + old way of using /etc/X11/Xsession.d gave us. + Users whose environment does not make use of /etc/xdg/autostart do + need to manually start xbindkeys, either by just running it from their + xsession or by executing /usr/bin/xbindkeys_autostart + * Bug fix: "Please update homepage in man page", thanks to Mathieu + Malaterre (Closes: #640477). + * Bug fix: "[xbindkeys] xbindkeys defaults file should only be + examples", thanks to Dean Evans (Closes: #657965). + * Update guile version + + -- Joerg Jaspert Sun, 16 Feb 2014 13:59:57 +0100 + +xbindkeys (1.8.5-1) unstable; urgency=low + + * New upstream version (Closes: #628165). + * Bug fix: "xbindkeys crashes upon second keypress due to memory + corruption", thanks to Josh D (Closes: #613429). + * Bug fix: "xbindkeys single-handedly wastes a watt of power polling for + a nonexistent file", thanks to Steve Langasek (Closes: #581509). + * Bug fix: "configure.ac has additional whitespaces which confuse + autoconf", thanks to booiiing (Closes: #537826). + * Bug fix: "Does not provide a method to run for all users", thanks to + Evan Giles (Closes: #332319). + * Bug fix: "Crashes upon Guile GC", thanks to J\.P\. Larocque (Closes: + #516328). + * Bug fix: "only the first entry in xbindkeysrc works until the file is + edited", thanks to Celejar (Closes: #445718). + + -- Joerg Jaspert Sat, 28 May 2011 20:35:39 +0200 + +xbindkeys (1.8.3-1) unstable; urgency=low + + * New upstream version (Closes: #542533) + - Fix watch file to point current site (Closes: #449685) + - Added Homepage field to control file. + * debian/menu + - Fixed quotation of needs field + - Section fixed to "Applications/Accessibility" (Closes: #444890) + While it's a generic tool, not specifically targeted to any subset + of users, it may certainly help also people with disabilities or + with unusual systems. + * Added compat file, set to level 7 + * debian/control + - Removed obsolete x-dev from Build-Depends: x11-proto-core-dev is + already pulled by libx11-dev. (Closes: #515463) + - Set debhelper versioned dependency to match compat + - Added autotools-dev for fixing ancient config.{sub,guess} + - Updated Standards-Version to 3.8.3 with no other changes required + - Added ${misc:Depends} to binary package + - Added myself to uploaders + * debian/rules + - Added targets to fix ancient config.{sub,guess} files + - Replaced dh_clean -k with dh_prep for compat level 7 + - Reformatted and removed template coments, + * Fixed changelog spelling errors reported by lintian. + + -- Ricardo Mones Sat, 16 Jan 2010 00:34:06 +0100 + +xbindkeys (1.8.2-1) unstable; urgency=low + + * New upstream version (Closes: #346423, #388690) + - Enable a full access to the xbindkeys internal from the guile + scheme configuration file. A grabbed key can start a shell command + or run a scheme function. This enable to do more powerful things + inside xbindkeys whitout the need of an external shell script + (like double click, timed double click or keys combinations). + - Configuration files are reloaded on the fly when they have + changed so there is no more need to send a HUP signal to reload + them + - Changes to grab keys in all display screens and not only in the + default root window (Xinerama support). + * ACK 1.7.1-1.1 NMU, thanks to Steinar H. Gunderson (Closes: #349111). + * Bug fix: "xbindkeys: It's not to be called "X Windows" + ;-)", thanks to Jan Minar (Closes: #270207). + * Bug fix from upstream: "xbindkeys doesn't work", thanks to BaBL + (Closes: #405015). + * Update description with the new guile stuff. + + -- Joerg Jaspert Sat, 15 Sep 2007 00:29:59 +0200 + +xbindkeys (1.7.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Replace build-dependency on xlibs-dev with an explicit build-dependency + on each required package. (Closes: #346820) + + -- Steinar H. Gunderson Sat, 21 Jan 2006 02:36:25 +0100 + +xbindkeys (1.7.1-1) unstable; urgency=low + + * New Upstream. + - Add guile/scheme configuration file style. + - Some minor fixes. + * Added guile-1.6-dev to Build-Depends. + * Standards 3.6.1.0. + + -- Joerg Jaspert Thu, 11 Mar 2004 22:08:30 +0100 + +xbindkeys (1.6.4-1) unstable; urgency=low + + * New Upstream release + * Standards 3.5.10 now + + -- Joerg Jaspert Sun, 8 Jun 2003 13:59:18 +0200 + +xbindkeys (1.6.3-1) unstable; urgency=low + + * New Upstream release. + - Remove chdir ("/tmp") in daemonize function. + + -- Joerg Jaspert Fri, 15 Nov 2002 16:12:09 +0100 + +xbindkeys (1.6.1-1) unstable; urgency=low + + * New Upstream Version: + - Minor buggfix : use strtol instead atoi for use with + hexadecimal number. + - Complete daemonzie function + + -- Joerg Jaspert Tue, 12 Nov 2002 11:16:18 +0100 + +xbindkeys (1.6.0-1) unstable; urgency=low + + * New Upstream Version: + - Release event for keys and buttons. + - Don't use threads any more (use fork+exec instead) + - Better daemonize function + - Simplification of configure.in (better test for X) + - Don't use sscanf any more + * Upstream said this bug is no more (tested on some machines, some + users with wmaker reported success to). + I tested it with wmaker too. Plain standard config of wmaker, but it + worked. So this (closes: #146215) + * Standards 3.5.7 now. + * Cleaned up rules file. + + -- Joerg Jaspert Sun, 10 Nov 2002 22:31:17 +0100 + +xbindkeys (1.5.5-1) unstable; urgency=low + + * New Upstream Version: + - Change: better identification of modifiers with --key and + --mulitkey options. + + -- Joerg Jaspert Thu, 16 May 2002 15:50:16 +0200 + +xbindkeys (1.5.4-2) unstable; urgency=low + + * Ok, now README.Debian describes better what to do if the Modifier + Key Name is not known to xbindkeys. Thx to David B. Harris + for the patch. This now really (closes: #146776) + + -- Joerg Jaspert Mon, 13 May 2002 23:10:17 +0200 + +xbindkeys (1.5.4-1) unstable; urgency=low + + * New Upstream Version + - add warning when a key is unknown in .xbindkeysrc. + + -- Joerg Jaspert Mon, 13 May 2002 16:35:00 +0200 + +xbindkeys (1.5.3-1) unstable; urgency=low + + * New Upstream Version: + - Bugfix: if the keycode is unknow then xbindkeys don't asign a + key with keycode=0. + - Change: The default RC file don't use the Menu key wich cause + problems. (closes: #146130) + * Added Text how to handle unknown Keys to README.Debian. (closes: #146776) + * Corrected description, (closes: #146174) + + -- Joerg Jaspert Mon, 13 May 2002 14:22:19 +0200 + +xbindkeys (1.5.2-2) unstable; urgency=low + + * Description changed. (closes: #146174) + + -- Joerg Jaspert Tue, 7 May 2002 20:21:55 +0200 + +xbindkeys (1.5.2-1) unstable; urgency=low + + * New upstream version. + * This release does not error out if a defined Key Shortcut is already + in use. It just prints a warning, ignores the Shortcut and goes on to + work with the rest of your Shortcuts. (closes: #145511) + + -- Joerg Jaspert Sun, 5 May 2002 20:12:43 +0200 + +xbindkeys (1.5.1-1) unstable; urgency=low + + * Initial Release (closes: #145232) + + -- Joerg Jaspert Tue, 30 Apr 2002 18:53:28 +0200 + --- xbindkeys-1.8.6.orig/debian/compat +++ xbindkeys-1.8.6/debian/compat @@ -0,0 +1 @@ +9 --- xbindkeys-1.8.6.orig/debian/control +++ xbindkeys-1.8.6/debian/control @@ -0,0 +1,24 @@ +Source: xbindkeys +Section: x11 +Priority: optional +Maintainer: Joerg Jaspert +Uploaders: Ricardo Mones +Build-Depends: debhelper (>= 9), libx11-dev, libxt-dev, guile-2.0-dev, autotools-dev +Standards-Version: 3.9.5 +Homepage: http://www.nongnu.org/xbindkeys/ + +Package: xbindkeys +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: wish, xbindkeys-config +Description: Associate a combination of keys or mouse buttons with a shell command + xbindkeys is a program that allows you to launch shell commands with + your keyboard or your mouse under the X Window System. + It links commands to keys or mouse buttons, using a configuration file. + It's independent of the window manager and can capture all keyboard keys + (ex: Power, Wake...). + . + It optionally supports a guile-based configuration file layout, which enables + you to access all xbindkeys internals, so you can have key combinations, + double clicks or timed double clicks take actions. Also all functions that work + in guile will work for xbindkeys. --- xbindkeys-1.8.6.orig/debian/copyright +++ xbindkeys-1.8.6/debian/copyright @@ -0,0 +1,36 @@ +This package was debianized by Joerg Jaspert on +Tue, 30 Apr 2002 18:47:21 +0200. + +It was downloaded from http://www.nongnu.org/xbindkeys/xbindkeys.html + +Upstream Authors: + Philippe Brochard + + Marcello Mathias Herreshoff for the guile support. + + + Patrick Leslie Polzer for the help on the Xinerama patch. + + + Edwin Stang for a bug fix in the event loop. + + +Copyright: + Copyright (C) 2001-2007 by Philippe Brochard + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. --- xbindkeys-1.8.6.orig/debian/dirs +++ xbindkeys-1.8.6/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +/etc/xdg/autostart --- xbindkeys-1.8.6.orig/debian/docs +++ xbindkeys-1.8.6/debian/docs @@ -0,0 +1,4 @@ +BUGS +NEWS +README +TODO --- xbindkeys-1.8.6.orig/debian/examples +++ xbindkeys-1.8.6/debian/examples @@ -0,0 +1,5 @@ +debian/xbindkeysrc1 +debian/xbindkeysrc2 +xbindkeysrc +xbindkeysrc.scm +xbindkeysrc-combo.scm --- xbindkeys-1.8.6.orig/debian/install +++ xbindkeys-1.8.6/debian/install @@ -0,0 +1,2 @@ +debian/xbindkeys_autostart usr/bin +debian/xbindkeys.desktop /etc/xdg/autostart --- xbindkeys-1.8.6.orig/debian/maintscript +++ xbindkeys-1.8.6/debian/maintscript @@ -0,0 +1,2 @@ +rm_conffile /etc/X11/Xsession.d/98xbindkeys 1.8.6-1~ + --- xbindkeys-1.8.6.orig/debian/manpages +++ xbindkeys-1.8.6/debian/manpages @@ -0,0 +1,2 @@ +xbindkeys.1 +xbindkeys_show.1 --- xbindkeys-1.8.6.orig/debian/menu +++ xbindkeys-1.8.6/debian/menu @@ -0,0 +1,6 @@ +?package(xbindkeys):needs="X11" \ + section="Applications/Accessibility" \ + title="xbindkeys" \ + command="/usr/bin/xbindkeys" \ + hints="Keys,Bind" \ + longtitle="XBindKeys - associate keys or mouse buttons with shell commands." --- xbindkeys-1.8.6.orig/debian/rules +++ xbindkeys-1.8.6/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with autotools_dev --- xbindkeys-1.8.6.orig/debian/source/format +++ xbindkeys-1.8.6/debian/source/format @@ -0,0 +1 @@ +1.0 --- xbindkeys-1.8.6.orig/debian/watch +++ xbindkeys-1.8.6/debian/watch @@ -0,0 +1,3 @@ +version = 3 +http://www.nongnu.org/xbindkeys/xbindkeys-(.*)\.tar\.gz + --- xbindkeys-1.8.6.orig/debian/xbindkeys.desktop +++ xbindkeys-1.8.6/debian/xbindkeys.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=xbindkeys +Comment=Start xbindkeys +Exec=xbindkeys_autostart +Terminal=false +Type=Application +Categories= +GenericName= --- xbindkeys-1.8.6.orig/debian/xbindkeys_autostart +++ xbindkeys-1.8.6/debian/xbindkeys_autostart @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e +set -u +set -E + +PROG="/usr/bin/xbindkeys" +NOAUTO="${HOME}/.xbindkeys.noauto" + +# This file autostarts xbindkeysrc if the user (or system) has a config +# for it AND does NOT Have a .xbindkeys.noauto in his homedir. + +# we only run if there is no NOAUTO file +if ! [[ -f ${NOAUTO} ]] && [[ -x ${PROG} ]]; then + # User config wins over system config + # guile config wins over classic config + for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do + if [[ -f ${cfile} ]] || [[ -L ${cfile} ]]; then + CONF="${cfile}" + fi + done + + # Run $PROG - if it has been configured + if [ -n "${CONF}" ]; then + $PROG -f $CONF + fi +fi --- xbindkeys-1.8.6.orig/debian/xbindkeysrc1 +++ xbindkeys-1.8.6/debian/xbindkeysrc1 @@ -0,0 +1,153 @@ +########################### +# xbindkeys configuration # +########################### +# +# Version: 1.5.1 +# +# If you edit this file, do not forget to uncomment any lines +# that you change. +# The pound(#) symbol may be used anywhere for comments. +# +# To specify a key, you can use 'xbindkeys --key' or +# 'xbindkeys --multikey' and put one of the two lines in this file. +# +# The format of a command line is: +# "command to start &" +# associated key +# +# Please, don't forget the '&' at the end of the command, +# if not xbindkeys will launch only one command at the same time +# +# +# A list of keys is in /usr/include/X11/keysym.h and in +# /usr/include/X11/keysymdef.h +# The XK_ is not needed. +# +# List of modifier (on my keyboard): +# Control, Shift, Mod1 (Alt), Mod2 (NumLock), +# Mod3 (CapsLock), Mod4, Mod5 (Scroll). +# + + +# By defaults, xbindkeys does not pay attention with the modifiers +# NumLock, CapsLock and ScrollLock. +# Uncomment the lines above if you want to pay attention to them. + +#keystate_numlock = enable +#keystate_capslock = enable +#keystate_scrolllock= enable + + +# Dictionary and translator +# xsel and dillo can be found on freshmeat +"dillo http://www.dictionary.com/search?q=$(xsel -p)" + control+alt+b:2 + +"dillo "http://babel.altavista.com/?urltext=$(xsel -p | tr ' ' '+')&lp=en_fr" &" + control+alt+b:3 + + +# Utility +"xbindkeys_show &" +shift + Menu + mod2 + +"movemouse -x 512 -y 765 &" +Multi_key + mod2 + +"movemouse -x 512 -y 765 &" +Menu + mod2 + +# Wake key +"xnc &" +c:227 + mod2 + +"xnc &" +c:227 + mod2 + control + +# Sleep key +"/home/phil/bin/black &" + m:0x10 + c:223 + +# Power key +"/home/phil/bin/tk_halt &" + m:0x10 + c:222 + + +# web browser +"nt &" +control+Multi_key+mod2 + +"dl &" +shift+control+Multi_key+mod2 + + +# Editors +"emacs &" + Menu + Mod2 + control + +"rxvt &" + control+Menu+mod2 + shift + + +"xmms &" + shift+ Multi_key +mod2 + +"xchat &" + Control+Mod2 + asterisk + + +# CD Player +"/home/phil/bin/pcd_show &" +F9+mod2 + +"pcd y &" +control+KP_Insert + +"pcd s &" +control+ KP_Delete + +"pcd n&" +control+KP_Right + +"pcd u &" +control+KP_Left + +"pcd t&" +control+KP_Begin + +"pcd e&" +control+KP_Down + +"pcd c&" +control+KP_Up + +"pcd f&" +control+alt+KP_Right + +"pcd w&" +control+alt+KP_Left + + +"pcd y -d /dev/cdwrite &" +control+KP_Insert+shift + +"pcd s -d /dev/cdwrite &" +control+ KP_Delete+shift + +"pcd n -d /dev/cdwrite&" +control+KP_Right+shift + +"pcd u -d /dev/cdwrite &" +control+KP_Left+shift + +"pcd t -d /dev/cdwrite&" +control+KP_Begin+shift + +"pcd e -d /dev/cdwrite&" +control+KP_Next + +"pcd c -d /dev/cdwrite&" +control+KP_Prior + +# +# End of xbindkeys configuration --- xbindkeys-1.8.6.orig/debian/xbindkeysrc2 +++ xbindkeys-1.8.6/debian/xbindkeysrc2 @@ -0,0 +1,160 @@ +########################### +# xbindkeys configuration # +########################### +# +# Version: 1.2.0 +# +# If you edit this, do not forget to uncomment any lines that you change. +# The pound(#) symbol may be used anywhere for comments. +# +# A list of keys is in /usr/include/X11/keysym.h and in +# /usr/include/X11/keysymdef.h +# The XK_ is not needed. +# +# List of modifier (on my keyboard): +# Control, Shift, Mod1 (Alt), Mod2 (NumLock), +# Mod3 (CapsLock), Mod4, Mod5 (Scroll). +# +# Another way to specifie a key is to use 'xev' and set the +# keycode with c:nnn or the modifier with m:nnn where nnn is +# the keycode or the state returned by xev +# +# This file is created by xbindkey_config +# The structure is : +# # Remark +# "command" +# m:xxx + c:xxx +# Shift+... +# + + + +#xbindkeys_show +"xbindkeys_show&" + m:0x10 + c:117 + Mod2 + Menu + +#Le terminal +"Eterm --scrollbar 0 --menubar 0 &" + m:0x14 + c:36 + Control+Mod2 + Return + +#Xmms fwd +"xmms -r&" + m:0x10 + c:144 + Mod2 + NoSymbol + +#Xmms play/pause +"xmms -t&" + m:0x10 + c:162 + Mod2 + NoSymbol + +#Xmms stop +"xmms -s&" + m:0x10 + c:164 + Mod2 + NoSymbol + +#Xmms next +"xmms -f&" + m:0x10 + c:153 + Mod2 + NoSymbol + +#Restart Musique +"xmms -p&" + m:0x14 + c:162 + Control+Mod2 + NoSymbol + +#Mail +"/usr/local/mozilla/mozilla -mail&" + m:0x10 + c:236 + Mod2 + NoSymbol + +#Mozilla +"/usr/local/mozilla/mozilla www&" + m:0x10 + c:178 + Mod2 + NoSymbol + +#Mount Cdrom +"mount /cdrom&" + m:0x14 + c:96 + Control+Mod2 + F12 + +#Eject Cdrom +"eject /cdrom&" + m:0x15 + c:96 + Control+Shift+Mod2 + F12 + +#Execute Video +"mplayer-vol /cdrom/*&" + m:0x18 + c:96 + Alt+Mod2 + F12 + +#Mount Graveur +"mount /graveur&" + m:0x14 + c:95 + Control+Mod2 + F11 + +#Eject Graveur +"eject /graveur&" + m:0x15 + c:95 + Control+Shift+Mod2 + F11 + +#Config +"xbindkeys_config&" + m:0x18 + c:9 + Alt+Mod2 + Escape + +#Xlock +"xlock&" + m:0x10 + c:223 + Mod2 + NoSymbol + +#Wmakerconf +"wmakerconf&" + m:0x10 + c:230 + Mod2 + NoSymbol + +#WPrefs +"/usr/X11R6/GNUstep/Apps/WPrefs.app/WPrefs&" + m:0x14 + c:230 + Control+Mod2 + NoSymbol + +#Quake 3(win-q) +"quake3&" + m:0x50 + c:38 + Mod2+Mod4 + q + +#Gftp (win-g) +"gftp&" + m:0x50 + c:42 + Mod2+Mod4 + g + +#Vol +5% +"(echo "vol Vol +")| smixer -s -&" + m:0x10 + c:176 + Mod2 + NoSymbol + +#Vol -5% +"(echo "vol Vol -")| smixer -s -&" + m:0x10 + c:174 + Mod2 + NoSymbol + +#Coupe le son +"(echo "vol Vol 0")| smixer -s -&" + m:0x10 + c:160 + Mod2 + NoSymbol + +#Netscape +"netscape www&" + m:0x14 + c:178 + Control+Mod2 + NoSymbol + +#Loki Demo +"loki_demos&" + m:0x50 + c:46 + Mod2+Mod4 + l + +#Mignight Commander +"xterm -T "Mignight Commander" -e mc&" + m:0x50 + c:47 + Mod2+Mod4 + m --- xbindkeys-1.8.6.orig/options.c +++ xbindkeys-1.8.6/options.c @@ -300,12 +300,12 @@ printf (" control+shift + q\n"); printf ("\n"); printf ("# set directly keycode (here control + f with my keyboard)\n"); - printf ("\"xterm\"\n"); - printf (" c:41 + m:0x4\n"); + printf ("#\"xterm\"\n"); + printf ("# c:41 + m:0x4\n"); printf ("\n"); printf ("# specify a mouse button\n"); - printf ("\"xterm\"\n"); - printf (" control + b:2\n"); + printf ("#\"xterm\"\n"); + printf ("# control + b:2\n"); printf ("\n"); printf ("#\"xterm -geom 50x20+20+20\"\n"); printf ("# Shift+Mod2+alt + s\n"); @@ -405,10 +405,10 @@ printf ("(xbindkey '(control shift q) \"xbindkeys_show\")\n"); printf ("\n"); printf (";; set directly keycode (here control + f with my keyboard)\n"); - printf ("(xbindkey '(\"m:0x4\" \"c:41\") \"xterm\")\n"); + printf (";; (xbindkey '(\"m:0x4\" \"c:41\") \"xterm\")\n"); printf ("\n"); printf (";; specify a mouse button\n"); - printf ("(xbindkey '(control \"b:2\") \"xterm\")\n"); + printf (";; (xbindkey '(control \"b:2\") \"xterm\")\n"); printf ("\n"); printf (";;(xbindkey '(shift mod2 alt s) \"xterm -geom 50x20+20+20\")\n"); printf ("\n"); @@ -423,41 +423,41 @@ printf ("\n"); printf ("\n"); printf (";; Extra features\n"); - printf ("(xbindkey-function '(control a)\n"); - printf (" (lambda ()\n"); - printf (" (display \"Hello from Scheme!\")\n"); - printf (" (newline)))\n"); - printf ("\n"); - printf ("(xbindkey-function '(shift p)\n"); - printf (" (lambda ()\n"); - printf (" (run-command \"xterm\")))\n"); + printf (";; (xbindkey-function '(control a)\n"); + printf (";; (lambda ()\n"); + printf (";; (display \"Hello from Scheme!\")\n"); + printf (";; (newline)))\n"); + printf ("\n"); + printf (";; (xbindkey-function '(shift p)\n"); + printf (";; (lambda ()\n"); + printf (";; (run-command \"xterm\")))\n"); printf ("\n"); printf ("\n"); printf (";; Double click test\n"); - printf ("(xbindkey-function '(control w)\n"); - printf (" (let ((count 0))\n"); - printf (" (lambda ()\n"); - printf (" (set! count (+ count 1))\n"); - printf (" (if (> count 1)\n"); - printf (" (begin\n"); - printf (" (set! count 0)\n"); - printf (" (run-command \"xterm\"))))))\n"); + printf (";; (xbindkey-function '(control w)\n"); + printf (";; (let ((count 0))\n"); + printf (";; (lambda ()\n"); + printf (";; (set! count (+ count 1))\n"); + printf (";; (if (> count 1)\n"); + printf (";; (begin\n"); + printf (";; (set! count 0)\n"); + printf (";; (run-command \"xterm\"))))))\n"); printf ("\n"); printf (";; Time double click test:\n"); printf (";; - short double click -> run an xterm\n"); printf (";; - long double click -> run an rxvt\n"); - printf ("(xbindkey-function '(shift w)\n"); - printf (" (let ((time (current-time))\n"); - printf (" (count 0))\n"); - printf (" (lambda ()\n"); - printf (" (set! count (+ count 1))\n"); - printf (" (if (> count 1)\n"); - printf (" (begin\n"); - printf (" (if (< (- (current-time) time) 1)\n"); - printf (" (run-command \"xterm\")\n"); - printf (" (run-command \"rxvt\"))\n"); - printf (" (set! count 0)))\n"); - printf (" (set! time (current-time)))))\n"); + printf (";; (xbindkey-function '(shift w)\n"); + printf (";; (let ((time (current-time))\n"); + printf (";; (count 0))\n"); + printf (";; (lambda ()\n"); + printf (";; (set! count (+ count 1))\n"); + printf (";; (if (> count 1)\n"); + printf (";; (begin\n"); + printf (";; (if (< (- (current-time) time) 1)\n"); + printf (";; (run-command \"xterm\")\n"); + printf (";; (run-command \"rxvt\"))\n"); + printf (";; (set! count 0)))\n"); + printf (";; (set! time (current-time)))))\n"); printf ("\n"); printf ("\n"); printf (";; Chording keys test: Start differents program if only one key is\n"); @@ -466,23 +466,23 @@ printf (";; If key2 is pressed start cmd-k2\n"); printf (";; If both are pressed start cmd-k1-k2 or cmd-k2-k1 following the\n"); printf (";; release order\n"); - printf ("(define (define-chord-keys key1 key2 cmd-k1 cmd-k2 cmd-k1-k2 cmd-k2-k1)\n"); - printf (" \"Define chording keys\"\n"); - printf (" (let ((k1 #f) (k2 #f))\n"); - printf (" (xbindkey-function key1 (lambda () (set! k1 #t)))\n"); - printf (" (xbindkey-function key2 (lambda () (set! k2 #t)))\n"); - printf (" (xbindkey-function (cons 'release key1)\n"); - printf (" (lambda ()\n"); - printf (" (if (and k1 k2)\n"); - printf (" (run-command cmd-k1-k2)\n"); - printf (" (if k1 (run-command cmd-k1)))\n"); - printf (" (set! k1 #f) (set! k2 #f)))\n"); - printf (" (xbindkey-function (cons 'release key2)\n"); - printf (" (lambda ()\n"); - printf (" (if (and k1 k2)\n"); - printf (" (run-command cmd-k2-k1)\n"); - printf (" (if k2 (run-command cmd-k2)))\n"); - printf (" (set! k1 #f) (set! k2 #f)))))\n"); + printf (";; (define (define-chord-keys key1 key2 cmd-k1 cmd-k2 cmd-k1-k2 cmd-k2-k1)\n"); + printf (";; \"Define chording keys\"\n"); + printf (";; (let ((k1 #f) (k2 #f))\n"); + printf (";; (xbindkey-function key1 (lambda () (set! k1 #t)))\n"); + printf (";; (xbindkey-function key2 (lambda () (set! k2 #t)))\n"); + printf (";; (xbindkey-function (cons 'release key1)\n"); + printf (";; (lambda ()\n"); + printf (";; (if (and k1 k2)\n"); + printf (";; (run-command cmd-k1-k2)\n"); + printf (";; (if k1 (run-command cmd-k1)))\n"); + printf (";; (set! k1 #f) (set! k2 #f)))\n"); + printf (";; (xbindkey-function (cons 'release key2)\n"); + printf (";; (lambda ()\n"); + printf (";; (if (and k1 k2)\n"); + printf (";; (run-command cmd-k2-k1)\n"); + printf (";; (if k2 (run-command cmd-k2)))\n"); + printf (";; (set! k1 #f) (set! k2 #f)))))\n"); printf ("\n"); printf ("\n"); printf (";; Example:\n"); @@ -491,13 +491,13 @@ printf (";; Shift + b:1 then Shift + b:3 start gv\n"); printf (";; Shift + b:3 then Shift + b:1 start xpdf\n"); printf ("\n"); - printf ("(define-chord-keys '(shift \"b:1\") '(shift \"b:3\")\n"); - printf (" \"xterm\" \"rxvt\" \"gv\" \"xpdf\")\n"); + printf (";; (define-chord-keys '(shift \"b:1\") '(shift \"b:3\")\n"); + printf (";; \"xterm\" \"rxvt\" \"gv\" \"xpdf\")\n"); printf ("\n"); printf (";; Here the release order have no importance\n"); printf (";; (the same program is started in both case)\n"); - printf ("(define-chord-keys '(alt \"b:1\") '(alt \"b:3\")\n"); - printf (" \"gv\" \"xpdf\" \"xterm\" \"xterm\")\n"); + printf (";; (define-chord-keys '(alt \"b:1\") '(alt \"b:3\")\n"); + printf (";; \"gv\" \"xpdf\" \"xterm\" \"xterm\")\n"); printf ("\n"); printf ("\n"); printf (";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\n"); --- xbindkeys-1.8.6.orig/xbindkeys.1 +++ xbindkeys-1.8.6/xbindkeys.1 @@ -178,7 +178,7 @@ .LP .SH "HOMEPAGE" .nf -http://hocwp.free.fr/xbindkeys +http://www.nongnu.org/xbindkeys/xbindkeys.html .fi .LP --- xbindkeys-1.8.6.orig/xbindkeys_show.1 +++ xbindkeys-1.8.6/xbindkeys_show.1 @@ -24,7 +24,7 @@ .LP .SH "HOMEPAGE" .nf -http://hocwp.free.fr/xbindkeys +http://www.nongnu.org/xbindkeys/xbindkeys.html .fi .LP --- xbindkeys-1.8.6.orig/xbindkeysrc +++ xbindkeys-1.8.6/xbindkeysrc @@ -43,12 +43,12 @@ control+shift + q # set directly keycode (here control + f with my keyboard) -"xterm" - c:41 + m:0x4 +#"xterm" +# c:41 + m:0x4 # specify a mouse button -"xterm" - control + b:2 +#"xterm" +# control + b:2 #"xterm -geom 50x20+20+20" # Shift+Mod2+alt + s --- xbindkeys-1.8.6.orig/xbindkeysrc.scm +++ xbindkeys-1.8.6/xbindkeysrc.scm @@ -67,15 +67,15 @@ (xbindkey '(control shift q) "xbindkeys_show") ;; set directly keycode (here control + f with my keyboard) -(xbindkey '("m:0x4" "c:41") "xterm") +;; (xbindkey '("m:0x4" "c:41") "xterm") ;; specify a mouse button -(xbindkey '(control "b:2") "xterm") +;; (xbindkey '(control "b:2") "xterm") ;;(xbindkey '(shift mod2 alt s) "xterm -geom 50x20+20+20") ;; set directly keycode (control+alt+mod2 + f with my keyboard) -(xbindkey '(alt "m:4" mod2 "c:0x29") "xterm") +;; (xbindkey '(alt "m:4" mod2 "c:0x29") "xterm") ;; Control+Shift+a release event starts rxvt ;;(xbindkey '(release control shift a) "rxvt") @@ -85,41 +85,41 @@ ;; Extra features -(xbindkey-function '(control a) - (lambda () - (display "Hello from Scheme!") - (newline))) - -(xbindkey-function '(shift p) - (lambda () - (run-command "xterm"))) +;; (xbindkey-function '(control a) +;; (lambda () +;; (display "Hello from Scheme!") +;; (newline))) + +;; (xbindkey-function '(shift p) +;; (lambda () +;; (run-command "xterm"))) ;; Double click test -(xbindkey-function '(control w) - (let ((count 0)) - (lambda () - (set! count (+ count 1)) - (if (> count 1) - (begin - (set! count 0) - (run-command "xterm")))))) +;; (xbindkey-function '(control w) +;; (let ((count 0)) +;; (lambda () +;; (set! count (+ count 1)) +;; (if (> count 1) +;; (begin +;; (set! count 0) +;; (run-command "xterm")))))) ;; Time double click test: ;; - short double click -> run an xterm ;; - long double click -> run an rxvt -(xbindkey-function '(shift w) - (let ((time (current-time)) - (count 0)) - (lambda () - (set! count (+ count 1)) - (if (> count 1) - (begin - (if (< (- (current-time) time) 1) - (run-command "xterm") - (run-command "rxvt")) - (set! count 0))) - (set! time (current-time))))) +;; (xbindkey-function '(shift w) +;; (let ((time (current-time)) +;; (count 0)) +;; (lambda () +;; (set! count (+ count 1)) +;; (if (> count 1) +;; (begin +;; (if (< (- (current-time) time) 1) +;; (run-command "xterm") +;; (run-command "rxvt")) +;; (set! count 0))) +;; (set! time (current-time))))) ;; Chording keys test: Start differents program if only one key is @@ -128,23 +128,23 @@ ;; If key2 is pressed start cmd-k2 ;; If both are pressed start cmd-k1-k2 or cmd-k2-k1 following the ;; release order -(define (define-chord-keys key1 key2 cmd-k1 cmd-k2 cmd-k1-k2 cmd-k2-k1) - "Define chording keys" - (let ((k1 #f) (k2 #f)) - (xbindkey-function key1 (lambda () (set! k1 #t))) - (xbindkey-function key2 (lambda () (set! k2 #t))) - (xbindkey-function (cons 'release key1) - (lambda () - (if (and k1 k2) - (run-command cmd-k1-k2) - (if k1 (run-command cmd-k1))) - (set! k1 #f) (set! k2 #f))) - (xbindkey-function (cons 'release key2) - (lambda () - (if (and k1 k2) - (run-command cmd-k2-k1) - (if k2 (run-command cmd-k2))) - (set! k1 #f) (set! k2 #f))))) +;; (define (define-chord-keys key1 key2 cmd-k1 cmd-k2 cmd-k1-k2 cmd-k2-k1) +;; "Define chording keys" +;; (let ((k1 #f) (k2 #f)) +;; (xbindkey-function key1 (lambda () (set! k1 #t))) +;; (xbindkey-function key2 (lambda () (set! k2 #t))) +;; (xbindkey-function (cons 'release key1) +;; (lambda () +;; (if (and k1 k2) +;; (run-command cmd-k1-k2) +;; (if k1 (run-command cmd-k1))) +;; (set! k1 #f) (set! k2 #f))) +;; (xbindkey-function (cons 'release key2) +;; (lambda () +;; (if (and k1 k2) +;; (run-command cmd-k2-k1) +;; (if k2 (run-command cmd-k2))) +;; (set! k1 #f) (set! k2 #f))))) ;; Example: @@ -153,13 +153,13 @@ ;; Shift + b:1 then Shift + b:3 start gv ;; Shift + b:3 then Shift + b:1 start xpdf -(define-chord-keys '(shift "b:1") '(shift "b:3") - "xterm" "rxvt" "gv" "xpdf") +;; (define-chord-keys '(shift "b:1") '(shift "b:3") +;; "xterm" "rxvt" "gv" "xpdf") ;; Here the release order have no importance ;; (the same program is started in both case) -(define-chord-keys '(alt "b:1") '(alt "b:3") - "gv" "xpdf" "xterm" "xterm") +;; (define-chord-keys '(alt "b:1") '(alt "b:3") +;; "gv" "xpdf" "xterm" "xterm") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;