From e573b3020c032400eed60b649a2cbf55266e6bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 30 Jun 2016 16:03:25 +0200 Subject: Add current configurations from old repository --- config/i3/scripts/keyboard_layout | 2 ++ config/i3/scripts/keyboard_switch | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100755 config/i3/scripts/keyboard_layout create mode 100755 config/i3/scripts/keyboard_switch (limited to 'config/i3/scripts') diff --git a/config/i3/scripts/keyboard_layout b/config/i3/scripts/keyboard_layout new file mode 100755 index 0000000..90b82e4 --- /dev/null +++ b/config/i3/scripts/keyboard_layout @@ -0,0 +1,2 @@ +#!/bin/bash +setxkbmap -query | awk '/layout/{print $2}' diff --git a/config/i3/scripts/keyboard_switch b/config/i3/scripts/keyboard_switch new file mode 100755 index 0000000..7ba27f8 --- /dev/null +++ b/config/i3/scripts/keyboard_switch @@ -0,0 +1,14 @@ +#!/bin/bash +active=`~/.config/i3/scripts/keyboard_layout` + +case "$active" in + us) + setxkbmap cz_qwerty + ;; + cz_qwerty) + setxkbmap us + ;; +esac + +# Send update to i3blocks +pkill -RTMIN+11 i3blocks -- cgit v1.2.3