mojotaya.blogg.se

Razer tartarus v2 keypad layout outline
Razer tartarus v2 keypad layout outline








razer tartarus v2 keypad layout outline

Xkbcomp -I$HOME/xbindkeys\ profiles/xkb -i $tartarus_id -synch - $DISPLAY 2>/dev/null # Remap Razer Tartarus to selected profile

razer tartarus v2 keypad layout outline

# Get xinput device id for Razer Tartarus # Set profile variable to argument (or default if none) The code works fine when in its own script I tried moving the contents of my tartarusProfile script into the autoProfileSwitch script (the reason for the unused tartarus_id variable and the commented out lines directly under the call to tartarusProfile), but kept receiving a "sed couldn't flush stdout: Broken pipe" error for some reason.

razer tartarus v2 keypad layout outline

Xinput set-button-map $i $proteus_profile #xkbcomp -I$HOME/xbindkeys\ profiles/xkb -i $tartarus_id -synch -$DISPLAY 2>/dev/null Xbindkeys -f $HOME/xbindkeys\ profiles/$xbindkeys_profile xbindkeysrc run a different script for each key/key-combination that checks the active window before deciding which command to send, but with a 13-button mouse and a 21-button keypad, the number of necessary scripts would quickly get out of hand, especially once I start adding combinations. I've chosen to accomplish this by having the script constantly running in the background in an infinite loop that checks to see if the active window is different from the last check. I've been trying to write a bash script that makes use of xbindkeys, xkb, and xinput set-button-map in order to automatically change the layouts of my Razer Tartarus keypad and Logitech G502 Proteus mouse based on the currently active window.

RAZER TARTARUS V2 KEYPAD LAYOUT OUTLINE UPDATE

UPDATE - Fully working script located at the bottom of my answer for anyone who isn't interested in the process of getting there.










Razer tartarus v2 keypad layout outline