From 6435f84baf4e089a52a2a32b42b3c23e6d3ece44 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 15 Mar 2015 13:19:21 +0100 Subject: add +keyboard command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- gotrc-examples/commands | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gotrc-examples') 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 __ -- cgit v1.2.3-70-g09d2