From 105b93fc4932117f1a83e2eb4e2dc5e6de861d40 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 8 Apr 2015 11:39:29 +0100 Subject: [PATCH] keyboard: add uk (gb) helper to change layouts Signed-off-by: Alejandro Mery --- files/bin/uk | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 files/bin/uk diff --git a/files/bin/uk b/files/bin/uk new file mode 100755 index 0000000..761b282 --- /dev/null +++ b/files/bin/uk @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -n "$DISPLAY" ]; then + setxkbmap -layout gb +else + sudo loadkeys -u -q gb +fi