From: Armaan Bhojwani Date: Mon, 31 May 2021 16:34:45 +0000 (-0400) Subject: xmodmap: add config X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=commitdiff_plain;h=63fef0ea1218faf779a5955e19e3e146a29f94de xmodmap: add config --- diff --git a/config.org b/config.org index a74169f..fd1033e 100644 --- a/config.org +++ b/config.org @@ -263,7 +263,8 @@ Define templates for lots of common structure elements. Mostly just used within ("xr" . "src conf :tangle ~/.Xresources") ("tm" . "src conf :tangle ~/.tmux.conf") ("gp" . "src conf :tangle ~/.gnupg/gpg.conf") - ("ag" . "src conf :tangle ~/.gnupg/gpg-agent.conf"))) + ("ag" . "src conf :tangle ~/.gnupg/gpg-agent.conf") + ("xm" . "src conf :tangle ~/.config/xmodmap"))) (add-to-list 'org-structure-template-alist addition))) #+end_src * Autocompletion @@ -1252,3 +1253,28 @@ I use tmux in order to keep my st build light. Still learning how it works. default-cache-ttl 600 allow-emacs-pinentry #+end_src +** Xmodmap +#+begin_src conf :tangle ~/.config/xmodmap + ! + ! Unmap left super + ! + clear mod4 + + ! + ! Turn right alt into super + ! + remove mod1 = Alt_R + add mod4 = Alt_R + + ! + ! Swap caps and control + ! + remove Lock = Caps_Lock + remove Control = Control_L + remove Lock = Control_L + remove Control = Caps_Lock + keysym Control_L = Caps_Lock + keysym Caps_Lock = Control_L + add Lock = Caps_Lock + add Control = Control_L +#+end_src