You are not logged in.

#1 2019-08-06 15:24:43

Redo11
Member
Registered: 2019-08-06
Posts: 2

Keyboard specific macros/multi keyboard

Hello! I have thinking about keyboard custom macros like in www.youtube.com/watch?v=Arn8ExQ2Gjg and www.youtube.com/watch?v=lIFE7h3m40U, but Linux != windows but I have done some progress already! Now i have configured that one keyboard have qwerty and the other one dvorak:
$ xinput -list
$ (select the secound keyboard ids)
$ setxkbmap -device id dvorak
$ setxkbmap -device id+1 dvorak
$ setxkbmap -device id+2 dvorak

Now i need help setting up macros or custom key presses. Like executing bash script linked to specific key. Or just a little guide how to make a keyboard map with macro keys, which none of my keyboards have. Also key presses macro would be helpful for apps that don't support macro keys or apps i can't interact with terminal(games).

Thank you for any help. I know a lot of people who are even able to switch to linux to get that working well, becouse windows solution need basic knowledge about lua and AHK scripting.

Ps. Sorry for English mistakes.

Last edited by Redo11 (2019-08-06 15:25:14)

Offline

#2 2019-08-06 20:14:56

seth
Member
Registered: 2012-09-03
Posts: 12,959

Re: Keyboard specific macros/multi keyboard

https://wiki.archlinux.org/index.php/Xbindkeys
https://www.archlinux.org/packages/comm … 4/xdotool/

Edit: Those are generic solutions, some/many desktop environments provide their own global shortcut system and may also be able to emulate keyboard events.

Last edited by seth (2019-08-06 20:15:58)

Offline

#3 2019-08-06 20:51:23

Redo11
Member
Registered: 2019-08-06
Posts: 2

Re: Keyboard specific macros/multi keyboard

but do they support multi keyboard? i know that on linux it is much easier but still im don't know

Offline

#4 2019-08-07 06:48:56

seth
Member
Registered: 2012-09-03
Posts: 12,959

Re: Keyboard specific macros/multi keyboard

No, that actually works with key symbols - it's agnostic reg. the source.
I briefly looked into one of those videos and the regular shortcut daemons won't help you here.

An xinput2 daemon would be able to discriminate the key event source, https://eugene619.github.io/automatisat … board.html suggests that https://github.com/thkala/actkbd does that but I've never used that daemon and it's neither in the repos nor the AUR.

Offline

Board footer

Powered by FluxBB