diff options
| author | Mattias Andrée <maandree@operamail.com> | 2015-03-15 13:19:21 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2015-03-15 13:19:21 +0100 |
| commit | 6435f84baf4e089a52a2a32b42b3c23e6d3ece44 (patch) | |
| tree | 46d555a73877f6dbb28062badb315cec45613031 /gotrc-examples | |
| parent | add support for more escapes in issue-file (diff) | |
| download | gates-of-tartaros-6435f84baf4e089a52a2a32b42b3c23e6d3ece44.tar.gz gates-of-tartaros-6435f84baf4e089a52a2a32b42b3c23e6d3ece44.tar.bz2 gates-of-tartaros-6435f84baf4e089a52a2a32b42b3c23e6d3ece44.tar.xz | |
add +keyboard command
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples')
| -rw-r--r-- | gotrc-examples/commands | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gotrc-examples/commands b/gotrc-examples/commands index 851da12..0d57eca 100644 --- a/gotrc-examples/commands +++ b/gotrc-examples/commands @@ -44,6 +44,16 @@ _login_commands () export LANG="en_GB.UTF-8" fi adjbacklight + elif [ "${user}" = "+keyboard" ]; then + echo "Enter keyboard layout: (e.g. sv-latin1)" + read -r layout + if [ ! "$(echo ${layout})" = "" ]; then + loadkeys -C "/dev/${tty}" -- ${layout} + if [ ! $? = 0 ]; then + echo 'Press ENTER to continue...' + read + fi + fi elif [ "${user}" = "+1" ]; then echo "Enter parameters: (e.g. tty7 TERM=linux)" read -r params @@ -58,6 +68,7 @@ Recognised commands include: +backlight Adjust the backlight +time Print the current date and time +battery Print information relevant for your battery status ++keyboard Select keyboard layout for the TTY (This may effect all TTY:s) +1 Open a new gates-of-tartaros in another TTY EOF read __ |
