Something went wrong. Try again.
dot dot dotfiles
Something went wrong. Try again.
123456789101112131415161718192021222324#!/usr/bin/bash
if ([ "$1" == "" ] || [ "$1" == "help" ]); then echo -e "${SYM} ${ARG}no arguments or 'help'${NC} : ${TXT}Display this help.${NC}" echo -e "${SYM} ${ARG}us${NC} : ${TXT}US keyboard${NC}" echo -e "${SYM} ${ARG}gb${NC} : ${TXT}GB keyboard.${NC}" echo -e "${SYM} ${ARG}de${NC} : ${TXT}DE keyboard${NC}" echo -e "${SYM} ${ARG}c${NC} : ${TXT}Colemak keyboard${NC}"elif [ "$1" == "us" ]; then setxkbmap uselif [ "$1" == "gb" ]; then setxkbmap gbelif [ "$1" == "de" ]; then setxkbmap deelif [ "$1" == "c" ]; then # setxkbmap -v us -variant colemak_dh setxkbmap -v us -variant colemakelif [ "$1" == "list" ]; then setxkbmap -print -verbose 10else echo "keymap only accepts 'gb', de', 'c', or 'list'" exit 1fi