Rename keyboard layout, ignore more files
parent
f411d00623
commit
dd1388f109
|
@ -68,9 +68,9 @@ bindsym $mod+Pause exec swaylock -f --color 000000 --font "IBM Plex Sans" --imag
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||||
# Read `man 5 sway-input` for more information about this section.
|
# Read `man 5 sway-input` for more information about this section.
|
||||||
input * {
|
input * {
|
||||||
xkb_layout "custom,custom"
|
xkb_layout "ambrose,us"
|
||||||
xkb_variant "dvp,basic"
|
xkb_variant "dvp,"
|
||||||
xkb_options "altwin:swap_lalt_lwin,ctrl:nocaps,lv3:ralt_switch"
|
xkb_options "lv3:ralt_switch"
|
||||||
scroll_factor 3
|
scroll_factor 3
|
||||||
}
|
}
|
||||||
# Switch keyboard layouts
|
# Switch keyboard layouts
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
.audacity*
|
.audacity*
|
||||||
.bash*
|
.bash*
|
||||||
.cache
|
.cache
|
||||||
|
.cargo/registry
|
||||||
|
.cargo/.package-cache
|
||||||
.config/*
|
.config/*
|
||||||
!.config/contain
|
!.config/contain
|
||||||
!.config/containers
|
!.config/containers
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
!.config/yabai
|
!.config/yabai
|
||||||
!.config/yadm
|
!.config/yadm
|
||||||
.dbus
|
.dbus
|
||||||
|
.esd_auth
|
||||||
.gem
|
.gem
|
||||||
.ghidra
|
.ghidra
|
||||||
.gnupg/*
|
.gnupg/*
|
||||||
|
@ -52,6 +55,7 @@
|
||||||
!.local/share/yadm/archive
|
!.local/share/yadm/archive
|
||||||
.mc/share
|
.mc/share
|
||||||
.mozilla
|
.mozilla
|
||||||
|
.npm
|
||||||
.password-store
|
.password-store
|
||||||
.pki
|
.pki
|
||||||
!.pwn
|
!.pwn
|
||||||
|
|
|
@ -41,3 +41,40 @@ yadm clone git@github.com:serverwentdown/env.git
|
||||||
```sh
|
```sh
|
||||||
git clone git@makerforce.io:ambrose/pass.git ~/.password-store
|
git clone git@makerforce.io:ambrose/pass.git ~/.password-store
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### GNOME Keyboard
|
||||||
|
|
||||||
|
First, copy the custom layout:
|
||||||
|
|
||||||
|
```
|
||||||
|
cp ~/.xkb/symbols/ambrose /usr/share/X11/xkb/symbols/ambrose
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, open `/usr/share/X11/xkb/rules/evdev.xml` in an editor and add this block in `<layoutList>`:
|
||||||
|
|
||||||
|
```
|
||||||
|
<layout>
|
||||||
|
<configItem>
|
||||||
|
<name>ambrose</name>
|
||||||
|
<shortDescription>amb</shortDescription>
|
||||||
|
<description>English (Ambrose)</description>
|
||||||
|
<languageList>
|
||||||
|
<iso639Id>eng</iso639Id>
|
||||||
|
</languageList>
|
||||||
|
</configItem>
|
||||||
|
<variantList>
|
||||||
|
<variant>
|
||||||
|
<configItem>
|
||||||
|
<name>dvp</name>
|
||||||
|
<description>English (Ambrose, Programmer Dvorak)</description>
|
||||||
|
</configItem>
|
||||||
|
</variant>
|
||||||
|
<variant>
|
||||||
|
<configItem>
|
||||||
|
<name>basic</name>
|
||||||
|
<description>English (Ambrose, Qwerty)</description>
|
||||||
|
</configItem>
|
||||||
|
</variant>
|
||||||
|
</variantList>
|
||||||
|
</layout>
|
||||||
|
```
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
.audacity*
|
.audacity*
|
||||||
.bash*
|
.bash*
|
||||||
.cache
|
.cache
|
||||||
|
.cargo/registry
|
||||||
|
.cargo/.package-cache
|
||||||
.config/*
|
.config/*
|
||||||
!.config/contain
|
!.config/contain
|
||||||
!.config/containers
|
!.config/containers
|
||||||
|
@ -28,6 +30,7 @@
|
||||||
!.config/yabai
|
!.config/yabai
|
||||||
!.config/yadm
|
!.config/yadm
|
||||||
.dbus
|
.dbus
|
||||||
|
.esd_auth
|
||||||
.gem
|
.gem
|
||||||
.ghidra
|
.ghidra
|
||||||
.gnupg/*
|
.gnupg/*
|
||||||
|
@ -52,6 +55,7 @@
|
||||||
!.local/share/yadm/archive
|
!.local/share/yadm/archive
|
||||||
.mc/share
|
.mc/share
|
||||||
.mozilla
|
.mozilla
|
||||||
|
.npm
|
||||||
.password-store
|
.password-store
|
||||||
.pki
|
.pki
|
||||||
!.pwn
|
!.pwn
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
hidden partial modifier_keys
|
||||||
|
xkb_symbols "lctrl_escape" {
|
||||||
|
key <LCTL> { [ Escape ] };
|
||||||
|
};
|
||||||
|
|
||||||
|
hidden partial modifier_keys
|
||||||
|
xkb_symbols "caps_lctrl" {
|
||||||
|
replace key <CAPS> { [ Control_L, Control_L ] };
|
||||||
|
modifier_map Control { <CAPS>, <LCTL> };
|
||||||
|
};
|
||||||
|
|
||||||
|
hidden partial modifier_keys
|
||||||
|
xkb_symbols "swap_lalt_lwin" {
|
||||||
|
key <LALT> { type[Group1] = "ONE_LEVEL",
|
||||||
|
symbols[Group1] = [ Super_L ] };
|
||||||
|
key <LWIN> { [ Alt_L, Meta_L ] };
|
||||||
|
};
|
||||||
|
|
||||||
|
partial alphanumeric_keys
|
||||||
|
xkb_symbols "basic" {
|
||||||
|
include "us(basic)"
|
||||||
|
name[Group1]= "English (Ambrose, Qwerty)";
|
||||||
|
|
||||||
|
include "ambrose(lctrl_escape)"
|
||||||
|
include "ambrose(caps_lctrl)"
|
||||||
|
include "ambrose(swap_lalt_lwin)"
|
||||||
|
};
|
||||||
|
|
||||||
|
default partial alphanumeric_keys
|
||||||
|
xkb_symbols "dvp" {
|
||||||
|
include "us(dvp)"
|
||||||
|
name[Group1]= "English (Ambrose, Programmer Dvorak)";
|
||||||
|
|
||||||
|
include "ambrose(lctrl_escape)"
|
||||||
|
include "ambrose(caps_lctrl)"
|
||||||
|
include "ambrose(swap_lalt_lwin)"
|
||||||
|
};
|
|
@ -1,30 +0,0 @@
|
||||||
hidden partial modifier_keys
|
|
||||||
xkb_symbols "lctrl_escape" {
|
|
||||||
key <LCTL> { [ Escape ] };
|
|
||||||
};
|
|
||||||
|
|
||||||
hidden partial modifier_keys
|
|
||||||
xkb_symbols "caps_lctrl" {
|
|
||||||
replace key <CAPS> { [ Control_L, Control_L ] };
|
|
||||||
modifier_map Control { <CAPS>, <LCTL> };
|
|
||||||
};
|
|
||||||
|
|
||||||
partial alphanumeric_keys
|
|
||||||
xkb_symbols "basic" {
|
|
||||||
|
|
||||||
include "us(basic)"
|
|
||||||
name[Group1]= "English (Qwerty)";
|
|
||||||
|
|
||||||
include "custom(lctrl_escape)"
|
|
||||||
include "custom(caps_lctrl)"
|
|
||||||
};
|
|
||||||
|
|
||||||
default partial alphanumeric_keys
|
|
||||||
xkb_symbols "dvp" {
|
|
||||||
|
|
||||||
include "us(dvp)"
|
|
||||||
name[Group1]= "English (Programmer Dvorak)";
|
|
||||||
|
|
||||||
include "custom(lctrl_escape)"
|
|
||||||
include "custom(caps_lctrl)"
|
|
||||||
};
|
|
Loading…
Reference in New Issue