dot dot dotfiles
1#!/usr/bin/bash
2
3if ([ "$1" == "" ] || [ "$1" == "help" ]); then
4 echo -e "${SYM} ${ARG}no arguments or 'help'${NC} : ${TXT}Display this help.${NC}"
5 echo -e "${SYM} ${ARG}us${NC} : ${TXT}US keyboard${NC}"
6 echo -e "${SYM} ${ARG}gb${NC} : ${TXT}GB keyboard.${NC}"
7 echo -e "${SYM} ${ARG}de${NC} : ${TXT}DE keyboard${NC}"
8 echo -e "${SYM} ${ARG}c${NC} : ${TXT}Colemak keyboard${NC}"
9elif [ "$1" == "us" ]; then
10 setxkbmap us
11elif [ "$1" == "gb" ]; then
12 setxkbmap gb
13elif [ "$1" == "de" ]; then
14 setxkbmap de
15elif [ "$1" == "c" ]; then
16 # setxkbmap -v us -variant colemak_dh
17 setxkbmap -v us -variant colemak
18elif [ "$1" == "list" ]; then
19 setxkbmap -print -verbose 10
20else
21 echo "keymap only accepts 'gb', de', 'c', or 'list'"
22 exit 1
23fi