linux logitech mouse

Настройка logitech performance mx под linux с моим конфигом.

Карта кнопок для logitech performance mx:

Если другая мышка то выполнить:

xev | grep button

в появившемся окошке нажимать кнопки по очереди и смотреть коды в консольке.

sudo apt-get install xbindkeys xdotool

xbindkeys — привязывать события к кнопкам чего-либо

xdotool — эмулировать нажатие чего-либо

Что бы посмотреть стандартный конфиг

xbindkeys --defaults > $HOME/.xbindkeysrc

Что бы написать свой конфиг

nano $HOME/.xbindkeysrc

Мой конфиг

"xdotool key ctrl+w"
b:10

"xdotool key ctrl+c"
b:9

"xdotool key ctrl+v"
b:8

"xdotool key alt+Left"
b:6

"xdotool key alt+Right"
b:7

# https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn
"xdotool key ctrl+shift+p"
b:13

Что бы все заработало:

/usr/bin/xbindkeys

В автозагрузку GUI

linux logitech mouse: 3 комментария

  1. To activate the web interface, click the Tools menu in VLC and select Preferences.
    Click the All option under Show settings to view VLC’s advanced settings. Scroll down in the list of advanced settings and select Main interfaces under the Interface header.
    Click the Web check box to enable the HTTP interface.
    Click the Main interfaces and select LUA.
    Set http password to any password.
    Save your settings and restart VLC.

    For Logitech k800 and VLC add to conf:

    "curl -u :luaPass http://localhost:8080/requests/status.xml?command=pl_pause"
    m:0x10 + c:172
    
    "curl -u :luaPass http://localhost:8080/requests/status.xml?command=pl_next"
    m:0x10 + c:171
    
    "curl -u :luaPass http://localhost:8080/requests/status.xml?command=pl_previous"
    m:0x10 + c:173
    
    1. Other keyboard:

      # Ctrl + Alt + z - play/pause
      "curl -u :luaPass http://localhost:8049/requests/status.xml?command=pl_pause"
      m:0xc + c:52
      
      # Ctrl + Alt + > - next
      "curl -u :luaPass http://localhost:8049/requests/status.xml?command=pl_next"
      m:0xc + c:60
      
      # Ctrl + Alt + < - prev
      "curl -u :luaPass http://localhost:8049/requests/status.xml?command=pl_previous"
      m:0xc + c:59
      

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *