logo

dotfiles

My dotfiles, one branch per machine
commit: 07b75997a39c4696d42509c9e9eeba6497dcc69f
parent: 6f8f63d077f13c16c68034c51a893a5ad0a0d8df
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  1 Oct 2019 08:53:39 +0200

.profile: Load my us-variant only if present

Diffstat:

M.profile7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -57,7 +57,12 @@ chmod 0700 "${XDG_RUNTIME_DIR}" #export XKB_DEFAULT_RULES="" #export XKB_DEFAULT_MODEL="" export XKB_DEFAULT_LAYOUT="us,ru" -export XKB_DEFAULT_VARIANT="lanodan,phonetic" +if grep lanodan '/usr/share/X11/xkb/symbols/us' >/dev/null 2>/dev/null +then + export XKB_DEFAULT_VARIANT="lanodan,phonetic" +else + export XKB_DEFAULT_VARIANT=",phonetic" +fi # grp:alt_shift_toggle conflicts with shift:both_capslock export XKB_DEFAULT_OPTIONS="compose:menu,grp:alt_shift_toggle,terminate:ctrl_alt_bksp,keypad:pointerkeys,ctrl:nocaps,lv3:ralt_switch"