From 5d14c0fda114994f3d551b97bf7ae72974ed11fd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 5 Feb 2024 12:44:25 +0100 Subject: [PATCH] Complete doc for keyboard macro --- ...llYourSaas - Developer station - EN.asciidoc | 17 +++++++++++++++-- ... Master and Deployment Servers - EN.asciidoc | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/Documentation SellYourSaas - Developer station - EN.asciidoc b/doc/Documentation SellYourSaas - Developer station - EN.asciidoc index e094d5dec..85032c4a3 100644 --- a/doc/Documentation SellYourSaas - Developer station - EN.asciidoc +++ b/doc/Documentation SellYourSaas - Developer station - EN.asciidoc @@ -172,7 +172,7 @@ 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 @@ -180,7 +180,9 @@ Edit the macro file *~/.xbindkeysrc* to add your macro instruction # 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: @@ -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] diff --git a/doc/Documentation SellYourSaas - Master and Deployment Servers - EN.asciidoc b/doc/Documentation SellYourSaas - Master and Deployment Servers - EN.asciidoc index 357f3856b..1d9ba51fb 100644 --- a/doc/Documentation SellYourSaas - Master and Deployment Servers - EN.asciidoc +++ b/doc/Documentation SellYourSaas - Master and Deployment Servers - EN.asciidoc @@ -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] ---------------