OSDN Git Service

add nokeylayout option
authorpaperbenni <paperbenni@gmail.com>
Thu, 10 Dec 2020 16:32:08 +0000 (17:32 +0100)
committerpaperbenni <paperbenni@gmail.com>
Thu, 10 Dec 2020 16:32:08 +0000 (17:32 +0100)
autostart.sh

index 33e88f2..6e96b7e 100755 (executable)
@@ -250,8 +250,10 @@ if ! islive; then
         fi
     fi
 
-    KEYLAYOUT="$(iconf layout:us)"
-    setxkbmap -layout "$KEYLAYOUT"
+    if ! iconf nokeylayout; then
+        KEYLAYOUT="$(iconf layout:us)"
+        setxkbmap -layout "$KEYLAYOUT"
+    fi
 
     if ! iconf -i noconky; then
         shuf /usr/share/instantwidgets/tooltips.txt | head -1 >~/.cache/tooltip