dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 4d402ae1dfaf4209baf691f3baa2897ea086fe1c
parent 524ba74c755c853518e6582c531b678091544ac4
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri, 13 Mar 2020 11:51:53 +0000

switch kb script

Diffstat:
Abin/bin/switchkb | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/bin/bin/switchkb b/bin/bin/switchkb @@ -0,0 +1,15 @@ +#!/usr/bin/zsh + +if [ "$1" = "" ] ; then + echo "which language, gb or us?" + exit 0 +else + lang=$1 +fi + +kill $(pidof xcape) +setxkbmap -option +setxkbmap -option ctrl:nocaps $lang +xcape -e 'Control_L=Escape' + +echo "keyboard is switched to $lang"