commit 903410cf0470db1088bf0d60a85a3a6cfbe07ef4
parent c69ad46d3be563e00974e0952264e0a89814df2e
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 10 Sep 2013 14:23:52 +0200
changed layout file placement
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bin/keyboard-layout-switch.sh b/bin/keyboard-layout-switch.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# the language is written to ./.kbd-layout
-LAYOUTFILE="./.kbd-layout"
+LAYOUTFILE="$HOME/.kbd-layout"
# define two languages
LANG1="us"
@@ -9,6 +9,7 @@ LANG2="dk"
# write the file if it doesn't exist
if [ ! -f $LAYOUTFILE ]; then
+ echo 'echo "us" > $LAYOUTFILE'
echo "us" > $LAYOUTFILE
setxkbmap $LANG1
exit