Skip to content

Commit

Permalink
Update shipped layout files to use the new layout syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaiya committed Aug 11, 2022
1 parent 768de57 commit 2ec886b
Show file tree
Hide file tree
Showing 103 changed files with 243 additions and 13 deletions.
Binary file modified data/keyd-application-mapper.1.gz
Binary file not shown.
Binary file modified data/keyd.1.gz
Binary file not shown.
56 changes: 43 additions & 13 deletions docs/keyd.scdoc
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,39 @@ and not
[layer2]
```

## Layouts

A layout is a special kind of layer intended for modifying alpha keys. Unlike
layers, layouts cannot have any associated modifiers, and only one layout may
be active at a given time. The current layout can be set using the _setlayout_
action.

For convenience, keyd ships with a number of common letter layouts in
/usr/share/keyd/layouts. Before including these, it is instructive to inspect them.
Non-english layouts include a dedicated shift layer (making order of inclusion
important) and *require the use of keyd's compose definitions* (see *Unicode
Support*)

E.G

```
# Include the shipped colemak layout.
include layouts/colemak

[global]
default_layout = mylayout

[mylayout:layout]
a = b
b = c
#etc...

[control]
1 = setlayout(customlayout)
2 = setlayout(colemak)
```


## Unicode Support

If keyd encounters a valid UTF8 sequence as a right hand value, it will try and
Expand Down Expand Up @@ -361,17 +394,17 @@ E.G
[ids]
*

# Add our shared custom bindings.
include common

# Appends bindings to the main layer
# defined in /etc/keyd/common (order matters)
[main]
include layouts/dvorak
f11 = toggle(colemak)
capslock = layer(capslock)

[colemak]
include layouts/colemak
capslock = backspace
[capslock]
1 = setlayout(colemak)
2 = setlayout(dvorak)

/etc/keyd/common:
[main]
Expand All @@ -385,7 +418,7 @@ E.G
k = up
l = right

/etc/keyd/layouts/dvorak:
/usr/share/keyd/layouts/dvorak:
a = a
s = o
...
Expand All @@ -400,12 +433,6 @@ Limitations:
- Included files should not end in .conf.


For convenience, keyd ships with a number of common letter layouts in
/usr/share/keyd/layouts. Before including these, it is instructive to inspect them.
Non-english layouts include a dedicated shift layer (making order of inclusion
important) and *require the use of keyd's compose definitions* (see *Unicode
Support*)

# GLOBALS

A special section called _[global]_ may be defined in the file
Expand Down Expand Up @@ -464,7 +491,10 @@ arguments.
corresponding modifiers while held.

*layer(<layer>)*
Activates the given layer for the duration of the keypress.
Activate the given layer for the duration of the keypress.

*setlayout(<layout>)*
Set the current layout.

*toggle(<layer>)*
Permanently toggle the state of the given layer.
Expand Down
2 changes: 2 additions & 0 deletions layouts/af
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[af:layout]

' = گ
, = و
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/al
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[al:layout]

' = [
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/am
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[am:layout]

' = ր
, = խ
. = շ
Expand Down
2 changes: 2 additions & 0 deletions layouts/ara
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ara:layout]

' = ط
, = و
. = ز
Expand Down
2 changes: 2 additions & 0 deletions layouts/at
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[at:layout]

' = ä
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/au
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[au:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/az
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[az:layout]

' = ə
, = ç
. = ş
Expand Down
2 changes: 2 additions & 0 deletions layouts/ba
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ba:layout]

' = ć
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/bd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[bd:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/be
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[be:layout]

' = ù
, = ;
. = :
Expand Down
2 changes: 2 additions & 0 deletions layouts/bg
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[bg:layout]

' = ч
, = р
. = л
Expand Down
2 changes: 2 additions & 0 deletions layouts/br
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[br:layout]

, = ,
. = .
/ = ;
Expand Down
2 changes: 2 additions & 0 deletions layouts/brai
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[brai:layout]

shift = layer(brai_shift)

[brai_shift:S]
2 changes: 2 additions & 0 deletions layouts/bt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[bt:layout]

' = ཛ
, = ས
. = ཧ
Expand Down
2 changes: 2 additions & 0 deletions layouts/bw
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[bw:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/by
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[by:layout]

' = э
, = б
. = ю
Expand Down
2 changes: 2 additions & 0 deletions layouts/ca
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ca:layout]

, = ,
. = .
/ = é
Expand Down
2 changes: 2 additions & 0 deletions layouts/cd
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[cd:layout]

' = ɔ
, = ;
. = :
Expand Down
2 changes: 2 additions & 0 deletions layouts/ch
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ch:layout]

' = ä
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/cm
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[cm:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/cn
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[cn:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/colemak
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[colemak:layout]

w = w
, = ,
s = r
Expand Down
2 changes: 2 additions & 0 deletions layouts/cz
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[cz:layout]

' = §
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/de
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[de:layout]

' = ä
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/dk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[dk:layout]

' = ø
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/dvorak
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[dvorak:layout]

t = y
h = d
a = a
Expand Down
2 changes: 2 additions & 0 deletions layouts/dz
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[dz:layout]

' = ù
, = ;
. = :
Expand Down
2 changes: 2 additions & 0 deletions layouts/ee
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ee:layout]

' = ä
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/epo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[epo:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/es
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[es:layout]

, = ,
. = .
/ = -
Expand Down
2 changes: 2 additions & 0 deletions layouts/et
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[et:layout]

' = ፦
, = ፣
. = ፤
Expand Down
2 changes: 2 additions & 0 deletions layouts/fi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[fi:layout]

' = ä
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/fo
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[fo:layout]

' = ø
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/fr
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[fr:layout]

' = ù
, = ;
. = :
Expand Down
2 changes: 2 additions & 0 deletions layouts/gb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[gb:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/ge
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ge:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/gh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[gh:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/gn
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[gn:layout]

' = ߯
, = ؛
. = ،
Expand Down
2 changes: 2 additions & 0 deletions layouts/gr
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[gr:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/hr
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[hr:layout]

' = ć
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/hu
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[hu:layout]

' = á
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/id
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[id:layout]

, = ،
. = .
/ = /
Expand Down
2 changes: 2 additions & 0 deletions layouts/ie
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ie:layout]

' = '
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/il
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[il:layout]

' = ,
, = ת
. = ץ
Expand Down
2 changes: 2 additions & 0 deletions layouts/in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[in:layout]

' = ट
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/iq
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[iq:layout]

' = ط
, = و
. = ز
Expand Down
2 changes: 2 additions & 0 deletions layouts/ir
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[ir:layout]

' = گ
, = و
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/is
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[is:layout]

, = ,
. = .
/ = þ
Expand Down
2 changes: 2 additions & 0 deletions layouts/it
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[it:layout]

' = à
, = ,
. = .
Expand Down
2 changes: 2 additions & 0 deletions layouts/jp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[jp:layout]

' = :
, = ,
. = .
Expand Down
Loading

0 comments on commit 2ec886b

Please sign in to comment.