LINUX.ORG.RU

Как переназначить кнопки


0

1

Имеется дистрибутив федора 15 и планшет genius, необходимо перезначить клавиши на пере чтобы они генерировали события мыши, тогда им станет возможно пользоваться в гимпе. Там нужных настроечных функций, увы, не предусмотрено.

★★★★★

Ответ на: комментарий от ChALkeR

xev видит его кнопки как кнопки 9 и 10, но тут вырисовывается другая проблема: везде подробно расписано, как через xbindkeys эмулировать клавиатуру а про эмуляцию мыши информация крайне скудна.

Napilnik ★★★★★
() автор топика
Ответ на: комментарий от Napilnik

Точно так же. Я через xbindkeys к кнопкам своего дарёного логитека привязал всякое разное, и всё было хорошо. Проблем с нехваткой документации не обнаружил.

ChALkeR ★★★★★
()
Ответ на: комментарий от Napilnik

Napilnik

везде подробно расписано, как через xbindkeys эмулировать клавиатуру а про эмуляцию мыши информация крайне скудна.

xdotool

megabaks ★★★★
()
Ответ на: комментарий от megabaks

Если запустить из консоли
xdotool mousedown 1
то срабатывает нормально, а из .xbindkeysrc именно эта комманда - никак.

Napilnik ★★★★★
() автор топика
Ответ на: комментарий от megabaks
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.5
#
# 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
#
#
# 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:
#   Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
#   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#

# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events

# 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

# Examples of commands:

"xbindkeys_show" 
  control+shift + q

# set directly keycode (here control + f with my keyboard)
"xterm"
  c:41 + m:0x4

# specify a mouse button
"xterm"
  control + b:2

#"xterm -geom 50x20+20+20"
#   Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
#  alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a  release event starts rxvt
#"rxvt"
#  release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
#  Control + b:2 + Release

#"xdotool key Control+Insert"

#"xdotool key A"

#"xdotool mousedown 1"

#"xdotool mousemove  100 100"
#"xdotool mousedown 1 && xdotool mouseup 1"

"xdotool mousedown 1"
b:9

#"konsole"
#b:8

"xdotool mouseup 1"
b:10

#"konsole"
#b:2

##################################
# End of xbindkeys configuration 
##################################
Napilnik ★★★★★
() автор топика
Ответ на: комментарий от megabaks

Да, тыкался много раз. Даже «xdotool mousemove 100 100» срабатывало - курсор прыгал, а простое нажатие кнопки сделать не удалось. Из под рута запустил - тоже не получилось, значит не в правах дело.

Napilnik ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.