commit c247720ae49d166686ae23a7b9bd0e1dfb3b446b
Author: Norayr Chilingarian <[email protected]>
AuthorDate: Sun Jan 29 19:22:46 2023 +0400
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Sun Jan 29 17:33:13 2023 +0100
armenian layout
diff --git a/layout.am.h b/layout.am.h
new file mode 100644
index 0000000..eb0a376
--- /dev/null
+++ b/layout.am.h
@@ -0,0 +1,85 @@
+#define KEYS 63
+static Key keys_am[] = {
+ { "Õ","Õ", XK_Armenian_exclam, 1 },
+ { "Ö","Õ", XK_Armenian_fe, 1 },
+ { "Õ±","Õ", XK_Armenian_dza, 1 },
+ { "Ö","â", XK_Armenian_hyphen, 1 },
+ { ",","Õ", XK_comma, 1 },
+ { "Ö","â¦", XK_Armenian_full_stop, 1 },
+ { "Õ","%", XK_Armenian_question, 1 },
+ { "â¤","Ö", XK_Armenian_ligature_ew, 1 },
+ { "Õ","Õ", XK_Armenian_accent, 1 },
+ { ")","(", XK_parenright, 1 },
+ { "Ö
","Õ", XK_Armenian_o, 1 },
+ { "Õ§","Ô·", XK_Armenian_e, 1 },
+ { "Õ²","Õ", XK_Armenian_ghat, 1 },
+ { "<-", 0, XK_BackSpace, 2 },
+ { "Del", 0, XK_Delete, 1},
+ { 0 }, /* New row */
+ { "->|", 0, XK_Tab, 1 },
+ { "Õ³", "Õ", XK_Armenian_tche, 1 },
+ { "Ö", "Õ", XK_Armenian_pyur, 1 },
+ { "Õ¢", "Ô²", XK_Armenian_ben, 1 },
+ { "Õ½", "Õ", XK_Armenian_se, 1 },
+ { "Õ´", "Õ", XK_Armenian_men, 1 },
+ { "Õ¸", "Õ", XK_Armenian_vo, 1 },
+ { "Ö", "Õ", XK_Armenian_vyun, 1 },
+ { "Õ¯","Ô¿", XK_Armenian_ken, 1 },
+ { "Õ¨", "Ô¸", XK_Armenian_at, 1 },
+ { "Õ©", "Ô¹", XK_Armenian_to, 1 },
+ { "Õ®", "Ô¾", XK_Armenian_tsa, 1 },
+ { "Ö", "Õ", XK_Armenian_tso, 1 },
+ { "Return", 0, XK_Return, 3 },
+ { 0 }, /* New row */
+ { 0, 0, XK_Caps_Lock, 2 },
+ { "Õ»", "Õ", XK_Armenian_je, 1 },
+ { "Õ¾", "Õ", XK_Armenian_vev, 1 },
+ { "Õ£", "Ô³", XK_Armenian_gim, 1 },
+ { "Õ¥", "Ôµ", XK_Armenian_yech, 1 },
+ { "Õ¡", "Ô±", XK_Armenian_ayb, 1 },
+ { "Õ¶", "Õ", XK_Armenian_nu, 1 },
+ { "Õ«", "Ô»", XK_Armenian_ini, 1 },
+ { "Õ¿", "Õ", XK_Armenian_tyun, 1 },
+ { "Õ°", "Õ", XK_Armenian_ho, 1 },
+ { "Õº", "Õ", XK_Armenian_pe, 1 },
+ { "Ö", "Õ", XK_Armenian_re, 1 },
+ { "\\","/", XK_backslash, 1 },
+ { 0 }, /* New row */
+ { 0, 0, XK_Shift_L, 3 },
+ { "Õª", "Ôº", XK_Armenian_zhe, 1 },
+ { "Õ¤", "Ô´", XK_Armenian_da, 1 },
+ { "Õ¹", "Õ", XK_Armenian_cha, 1 },
+ { "Õµ", "Õ
", XK_Armenian_hi, 1 },
+ { "Õ¦", "Ô¶", XK_Armenian_za, 1 },
+ { "Õ¬", "Ô¼", XK_Armenian_lyun, 1 },
+ { "Ö", "Õ", XK_Armenian_ke, 1 },
+ { "Õ", "Ô½", XK_Armenian_khe, 1 },
+ { "Õ·", "Õ", XK_Armenian_sha, 1 },
+ { "Õ¼", "Õ", XK_Armenian_ra, 1 },
+ { 0, 0, XK_Shift_R, 2 },
+ { 0 }, /* New row */
+ { "Ctrl", 0, XK_Control_L, 2 },
+ { "Alt", 0,XK_Alt_L, 2 },
+ { "", 0,XK_space, 5 },
+ { "Alt", 0,XK_Alt_R, 2 },
+ { "Ctrl", 0,XK_Control_R, 2 },
+};
+
+Buttonmod buttonmods[] = {
+ { XK_Shift_L, Button2 },
+ { XK_Alt_L, Button3 },
+};
+
+#define OVERLAYS 1
+static Key overlay[OVERLAYS] = {
+ { 0, 0, XK_Cancel },
+};
+
+#define LAYERS 1
+static char* layer_names[LAYERS] = {
+ "am",
+};
+
+static Key* available_layers[LAYERS] = {
+ keys_am,
+};
diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h
index 6b877ed..95173b2 100644
--- a/layout.mobile-intl.h
+++ b/layout.mobile-intl.h
@@ -474,6 +474,68 @@ static Key keys_navigation[KEYS] = {
{ 0 }, /* Last item (double 0) */
};
+static Key keys_am[KEYS] = {
+ { "Õ","Õ", XK_Armenian_exclam, 1 },
+ { "Ö","Õ", XK_Armenian_fe, 1 },
+ { "Õ±","Õ", XK_Armenian_dza, 1 },
+ { "Ö","â", XK_Armenian_hyphen, 1 },
+ { ",","Õ", XK_comma, 1 },
+ { "Ö","â¦", XK_Armenian_full_stop, 1 },
+ { "Õ","%", XK_Armenian_question, 1 },
+ { "â¤","Ö", XK_Armenian_ligature_ew, 1 },
+ { "Õ","Õ", XK_Armenian_accent, 1 },
+ { ")","(", XK_parenright, 1 },
+ { "Ö
","Õ", XK_Armenian_o, 1 },
+ { "Õ§","Ô·", XK_Armenian_e, 1 },
+ { "Õ²","Õ", XK_Armenian_ghat, 1 },
+ { 0 }, /* New row */
+
+ { "Õ³", "Õ", XK_Armenian_tche, 1 },
+ { "Ö", "Õ", XK_Armenian_pyur, 1 },
+ { "Õ¢", "Ô²", XK_Armenian_ben, 1 },
+ { "Õ½", "Õ", XK_Armenian_se, 1 },
+ { "Õ´", "Õ", XK_Armenian_men, 1 },
+ { "Õ¸", "Õ", XK_Armenian_vo, 1 },
+ { "Ö", "Õ", XK_Armenian_vyun, 1 },
+ { "Õ¯","Ô¿", XK_Armenian_ken, 1 },
+ { "Õ¨", "Ô¸", XK_Armenian_at, 1 },
+ { "Õ©", "Ô¹", XK_Armenian_to, 1 },
+ { "Õ®", "Ô¾", XK_Armenian_tsa, 1 },
+ { "Ö", "Õ", XK_Armenian_tso, 1 },
+ { 0 }, /* New row */
+
+ { "Õ»", "Õ", XK_Armenian_je, 1 },
+ { "Õ¾", "Õ", XK_Armenian_vev, 1 },
+ { "Õ£", "Ô³", XK_Armenian_gim, 1 },
+ { "Õ¥", "Ôµ", XK_Armenian_yech, 1 },
+ { "Õ¡", "Ô±", XK_Armenian_ayb, 1 },
+ { "Õ¶", "Õ", XK_Armenian_nu, 1 },
+ { "Õ«", "Ô»", XK_Armenian_ini, 1 },
+ { "Õ¿", "Õ", XK_Armenian_tyun, 1 },
+ { "Õ°", "Õ", XK_Armenian_ho, 1 },
+ { "Õº", "Õ", XK_Armenian_pe, 1 },
+ { "Ö", "Õ", XK_Armenian_re, 1 },
+ { 0 }, /* New row */
+
+ { "123", 0, XK_Mode_switch, 1 },
+ { "Õª", "Ôº", XK_Armenian_zhe, 1 },
+ { "Õ¤", "Ô´", XK_Armenian_da, 1 },
+ { "Õ¹", "Õ", XK_Armenian_cha, 1 },
+ { "Õµ", "Õ
", XK_Armenian_hi, 1 },
+ { "Õ¦", "Ô¶", XK_Armenian_za, 1 },
+ { "Õ¬", "Ô¼", XK_Armenian_lyun, 1 },
+ { "Ö", "Õ", XK_Armenian_ke, 1 },
+ { "Õ", "Ô½", XK_Armenian_khe, 1 },
+ { "Õ·", "Õ", XK_Armenian_sha, 1 },
+ { "Õ¼", "Õ", XK_Armenian_ra, 1 },
+ { "â«Bksp", 0, XK_BackSpace, 2 },
+
+ { 0 }, /* New row */
+ { "âº", 0, XK_Cancel, 1},
+ { "Shift", 0, XK_Shift_L, 2 },
+ { "", 0, XK_space, 2 },
+ { "â² Enter", 0, XK_Return, 2 },
+};
static Key keys_ru[KEYS] = {
{ "Esc", 0, XK_Escape, 1 },
@@ -572,14 +634,15 @@ static Key keys_dialer[KEYS] = {
{ 0 }, /* Last item (double 0) */
};
-#define LAYERS 6
+#define LAYERS 7
static char* layer_names[LAYERS] = {
"en",
"symbols",
"navigation",
"dialer",
"minimal",
- "ru",
+ "am",
+ "ru"
};
static Key* available_layers[LAYERS] = {
@@ -588,7 +651,8 @@ static Key* available_layers[LAYERS] = {
keys_navigation,
keys_dialer,
keys_minimal,
- keys_ru
+ keys_am,
+ keys_ru,
};
Buttonmod buttonmods[] = {