Skip to content

Commit

Permalink
Complete doc for keyboard macro
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 5, 2024
1 parent 4a1c989 commit 5d14c0f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions doc/Documentation SellYourSaas - Developer station - EN.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,17 @@ Edit the macro file *~/.xbindkeysrc* to add your macro instruction
#keystate_capslock = enable
# Macro 1 to ouptu string to show then Enter
"xte 'usleep 300000' 'str string to show' 'key Return'"
"xte 'usleep 300000' 'str stringtoshow' 'key Return'"
m:0x11 + c:61
Shift+Mod2 + exclam + Release
#
# End of xbindkeys configuration
---------------

Note: You can also edit the macro file using xbindkeys-config
Replace the "stringtoshow" with your sentence to ouput.

Note: Because, the stringtoshow must be entered in Qwerty, it is easier to have it recorded by editing the macro file with xbindkeys-config


To test the macro file, run:
Expand All @@ -194,6 +196,17 @@ and type the command key onto another terminal.
If it's ok, you can launch at startup the command *xbindkeys*.


=== Add alias

Add at the end of */etc/bash.bashrc*, add alias to get a fast ps result and exclude some commands from the history:

[source, bash]
---------------
alias psld='ps -fax -eo user:12,pid,ppid,pcpu,pmem,vsz:12,size:12,tty,start_time:6,utime,time,context,cmd'
HISTIGNORE='-*'
---------------


=== Installation of the sound output switcher ===

[source,bash]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ printf '[client]\nprotocol=tcp' >> /etc/skel/.my.cnf

=== Add alias

Add at the end of */etc/bash.bashrc*:
Add at the end of */etc/bash.bashrc*, add alias to get a fast ps result and exclude some commands from the history:

[source, bash]
---------------
Expand Down

0 comments on commit 5d14c0f

Please sign in to comment.