Page 1 of 1

[SOLVED] Keyboard Macros

Posted: Fri Sep 21, 2018 11:21 pm
by gandhiisback
Whenever I press the ctrl+j key I would like it to be handled as ctrl+c (copy to clipboard). I would still like j to type j and c to type c. I have tried the shortcuts menu, AutoKey and xdotool to no avail. Thanks!

Re: Keyboard Macros

Posted: Sat Sep 22, 2018 5:49 am
by N3wb
Install xclip using command:

Code: Select all

sudo apt-get install xclip
Then in keyboard settings, add custom shortcut with program name xclip (or fullname /usr/bin/xclip) and set keyboard combo as Ctrl+J

Re: Keyboard Macros

Posted: Sat Sep 22, 2018 2:07 pm
by gandhiisback
N3wb wrote:
Sat Sep 22, 2018 5:49 am
Install xclip using command:

Code: Select all

sudo apt-get install xclip
Then in keyboard settings, add custom shortcut with program name xclip (or fullname /usr/bin/xclip) and set keyboard combo as Ctrl+J
Thanks for the suggestion N3wb it does answer my original question, however I would also like ctrl+j to work as ctrl+c in a terminal. I also plan on remapping other ctrl keys that are unrelated to the clipboard as well. I am trying to replace the functionality of my AutoHotKey scripts from windows.

Re: Keyboard Macros

Posted: Sat Sep 22, 2018 11:45 pm
by N3wb
gandhiisback wrote:
Sat Sep 22, 2018 2:07 pm
N3wb wrote:
Sat Sep 22, 2018 5:49 am
Install xclip using command:

Code: Select all

sudo apt-get install xclip
Then in keyboard settings, add custom shortcut with program name xclip (or fullname /usr/bin/xclip) and set keyboard combo as Ctrl+J
Thanks for the suggestion N3wb it does answer my original question, however I would also like ctrl+j to work as ctrl+c in a terminal. I also plan on remapping other ctrl keys that are unrelated to the clipboard as well. I am trying to replace the functionality of my AutoHotKey scripts from windows.
This link could be helpful: https://askubuntu.com/questions/620626/ ... thing-else
I think for your overall task, you'd need to remap them all individually.

Re: Keyboard Macros

Posted: Sun Sep 23, 2018 1:20 pm
by gandhiisback
N3wb wrote:
Sat Sep 22, 2018 11:45 pm
gandhiisback wrote:
Sat Sep 22, 2018 2:07 pm
N3wb wrote:
Sat Sep 22, 2018 5:49 am
Install xclip using command:

Code: Select all

sudo apt-get install xclip
Then in keyboard settings, add custom shortcut with program name xclip (or fullname /usr/bin/xclip) and set keyboard combo as Ctrl+J
Thanks for the suggestion N3wb it does answer my original question, however I would also like ctrl+j to work as ctrl+c in a terminal. I also plan on remapping other ctrl keys that are unrelated to the clipboard as well. I am trying to replace the functionality of my AutoHotKey scripts from windows.
This link could be helpful: https://askubuntu.com/questions/620626/ ... thing-else
I think for your overall task, you'd need to remap them all individually.
Thanks for all the help. Here is the solution I ended up using in case anyone else has a similar need.
https://github.com/tbocek/dvorak