aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-15 13:19:21 +0100
committerMattias Andrée <maandree@operamail.com>2015-03-15 13:19:21 +0100
commit6435f84baf4e089a52a2a32b42b3c23e6d3ece44 (patch)
tree46d555a73877f6dbb28062badb315cec45613031 /gotrc-examples
parentadd support for more escapes in issue-file (diff)
downloadgates-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/commands11
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 __