From 7cb25d136664491e2d1de4cd8b7154868cbfe6be Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Tue, 30 Jun 2020 01:56:00 +0300 Subject: [PATCH] Adding keyboard layout switching --- config/openbox/kblayout.sh | 4 ++++ config/openbox/rc.xml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 config/openbox/kblayout.sh diff --git a/config/openbox/kblayout.sh b/config/openbox/kblayout.sh new file mode 100755 index 0000000..666a922 --- /dev/null +++ b/config/openbox/kblayout.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +(setxkbmap -query | grep -q "layout:\s\+us") && setxkbmap fi || setxkbmap us + diff --git a/config/openbox/rc.xml b/config/openbox/rc.xml index d6ac1a1..860e44a 100644 --- a/config/openbox/rc.xml +++ b/config/openbox/rc.xml @@ -335,6 +335,11 @@ rofi -show calc + + + /home/siina/.config/openbox/kblayout.sh + +