commit abf87e4db46f5f300a0eeedd93b9d451e7a89aaa
parent c603626efbbbfa69f3e00727669da3d100106b52
Author: oscarbenedito <oscar@obenedito.org>
Date:   Wed, 22 Jan 2020 16:20:42 +0100

Swapping Esc and Caps

Diffstat:
Mdot_bash_aliases.tmpl.md | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/dot_bash_aliases.tmpl.md b/dot_bash_aliases.tmpl.md @@ -120,5 +120,16 @@ I used to have the following alias for deploying the website. It is not needed a alias deploy_website="~/.scripts/deploy-website.sh" ``` +## Setup at college + +Not really an alias, but will be needed to swith Caps Lock and Escape. +``` file dot_bash_aliases.tmpl +{{- if eq .chezmoi.hostname "fme-desktop" }} +setxkbmap -option "caps:swapescape" +{{- end }} +``` + +On other machines it is set up by modifying the file `/etc/default/keyboard`, specifically the line with `XKBOPTIONS="caps:swapescape". + ## License This file is licensed under the CC0 1.0 Universal license and therefore is part of the public domain. To the extent possible under law, Oscar Benedito, who associated CC0 with this work, has waived all copyright and related or neighboring rights to this work. You can find a copy of the CC0 license [here](https://gitlab.com/oscarbenedito/dotfiles/blob/master/CC0-1.0).