Shell echokeymap to print the visual layout of a keymap upon it symbol file.

master
Pierre Neidhardt 2013-06-13 09:20:28 +02:00
parent 7f4bbe27cb
commit 7795ece42b
2 changed files with 12 additions and 2 deletions

View File

@ -374,6 +374,16 @@ pgex ()
ps aux | grep "$(echo "$@" | sed 's/./[&]/;q')"
}
## Keymap view in terminal
echokeymap ()
{
if [ $# -ne 1 ]; then
1="$HOME/.xkb/symbols/usex"
fi
awk '/━|┃|│|─/ {gsub(/^\/\/ /, ""); print $0}' "$1"
}
##==============================================================================
## Pacman functions
##==============================================================================