diff options
| author | David Kaufmann <astra@ionic.at> | 2012-05-05 23:38:32 +0200 |
|---|---|---|
| committer | David Kaufmann <astra@ionic.at> | 2012-05-05 23:38:32 +0200 |
| commit | 6cd1677edc7e95d1bea1fbd4090fe6ccb3d7ff8c (patch) | |
| tree | 44a0375b426d79c3f208a851e110302387327c03 | |
| parent | 83d3aca982ea668fd9ad25eb537927f60854a9a4 (diff) | |
| download | config-6cd1677edc7e95d1bea1fbd4090fe6ccb3d7ff8c.tar.gz | |
fix functions for changing keyboard layouts
| -rw-r--r-- | skel/.zshrc.local | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/skel/.zshrc.local b/skel/.zshrc.local index c010b32..361e506 100644 --- a/skel/.zshrc.local +++ b/skel/.zshrc.local @@ -66,6 +66,18 @@ asdf() { } # just press 'asdf' key to toggle from neon layout to us keyboard layout fdsa() { + echo -n 'Switching to de keyboard layout: ' + [[ -z "$DISPLAY" ]] && $SUDO loadkeys de &>/dev/null || setxkbmap de &>/dev/null + echo 'Done' +} + +uiae() { + echo -n 'Switching to us keyboard layout: ' + [[ -z "$DISPLAY" ]] && $SUDO loadkeys us &>/dev/null || setxkbmap us &>/dev/null + echo 'Done' +} + +eaiu() { echo -n 'Switching to de keyboard layout: ' [[ -z "$DISPLAY" ]] && $SUDO loadkeys de &>/dev/null || setxkbmap de &>/dev/null echo 'Done' @@ -73,7 +85,7 @@ fdsa() { neo() { echo -n 'Switching to neo keyboard layout: ' - [[ -z "$DISPLAY" ]] && $SUDO loadkeys neo &>/dev/null || setxkbmap de neo -option &>/dev/null + [[ -z "$DISPLAY" ]] && $SUDO loadkeys de neo &>/dev/null || setxkbmap de neo -option &>/dev/null echo 'Done' } eaiu() { |
