Retourner au contenu associé (entrée de forum : un xmodmap contextuel)
Posté par jerome le 06 octobre 2004 à 10:48. En réponse au message un xmodmap contextuel. Évalué à 2.
;; lets rewrite key events before they're sent to apps (define-match-window-setter 'keymap-trans (lambda (w prop value) (declare (unused prop)) (let ((keymap (or (window-get w 'keymap) (window-put w 'keymap (copy-sequence window-keymap))))) (mapcar (lambda (pair) ; pair of from and to keys (bind-keys keymap (car pair) (lambda () (interactive) (synthesize-event (lookup-event (cadr pair)) (input- focus))))) value)))) ;; remap some keys: (add-window-matcher 'WM_CLASS "Xchat/xchat" '(keymap-trans . (("C-f" "Right") ("C-l" "C-f"))))
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# So tu utilisais un environnement décent ...
Posté par jerome . En réponse au message un xmodmap contextuel. Évalué à 2.
Il parait que certains autres environnements de grande qualité comme FVWM (+) ou d'autres moins qualitatif comme KDE (khotkeys) permettent aussi de le faire.