[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xbindkeys alternative?

You can use the Guile scheme configuration. Use the define-chord-keys function as defined in the default config.

$ xbindkeys --defaults-guile>  ~/.xbindkeysrc.scm

Then in the .xbindkeysrc.scm file, define something like, for example, number '1' key and right-mouse click:

; Using arbitary keypress with mouse button combination.
; This opens firefox or xterm, depending on what key/button is released first
(define-chord-keys '("c:10") '("b:3")
  "" "" "firefox" "xterm")

The downside is that it overrides the normal function of the key/button.

Reply to: