[hackers] Re: [svkbd][PATCH] dvorak layout

From: նորայր <norayr_AT_arnet.am>
Date: Sat, 4 Feb 2023 23:31:50 +0400

please excuse me and ignore this, i guess i did something wrong, sorry!

will update with a newer patch a bit later!

On Sat, 4 Feb 2023 23:23:41 +0400
norayr chilingarian <norayr_AT_arnet.am> wrote:

> From: Norayr Chilingarian <norayr_AT_arnet.am>
>
> ---
> layout.mobile-intl.h | 70 +++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 69 insertions(+), 1 deletion(-)
>
> diff --git a/layout.mobile-intl.h b/layout.mobile-intl.h
> index 95173b2..18fbc6f 100644
> --- a/layout.mobile-intl.h
> +++ b/layout.mobile-intl.h
> _AT_@ -67,6 +67,74 @@ static Key keys_en[KEYS] = {
> { "↲ Enter", 0, XK_Return, 2 },
> };
>
> +static Key keys_dvorak[KEYS] = {
> + { "Esc", "", XK_Escape, 1 },
> + { "1", "!", XK_1, 1 },
> + { "2", "_AT_", XK_2, 1 },
> + { "3", "#", XK_3, 1 },
> + { "4", "$", XK_4, 1 },
> + { "5", "%", XK_5, 1 },
> + { "6", "^", XK_6, 1 },
> + { "7", "&", XK_7, 1 },
> + { "8", "*", XK_8, 1 },
> + { "9", "(", XK_9, 1 },
> + { "0", ")", XK_0, 1 },
> + { "-", "_", XK_minus, 1 },
> +
> + { 0 }, /* New row */
> +
> + { "↹", 0, XK_Tab, 0.75 },
> + { ";", ":", XK_colon, 1 },
> + { ",", "<", XK_comma, 1 },
> + { ".", ">", XK_period, 1 },
> + { 0, 0, XK_p, 1 },
> + { 0, 0, XK_y, 1 },
> + { 0, 0, XK_f, 1 },
> + { 0, 0, XK_g, 1 },
> + { 0, 0, XK_c, 1 },
> + { 0, 0, XK_r, 1 },
> + { 0, 0, XK_l, 1 },
> + { "/", "?", XK_slash, .75 },
> +
> + { 0 }, /* New row */
> +
> + { "^", 0, XK_Control_L, 1 },
> + { 0, 0, XK_a, 1 },
> + { 0, 0, XK_o, 1 },
> + { 0, 0, XK_e, 1 },
> + { 0, 0, XK_u, 1 },
> + { 0, 0, XK_i, 1 },
> + { 0, 0, XK_d, 1 },
> + { 0, 0, XK_h, 1 },
> + { 0, 0, XK_t, 1 },
> + { 0, 0, XK_n, 1 },
> + { 0, 0, XK_s, 1 },
> + { "-", "_", XK_minus, 1 },
> +
> + { 0 }, /* New row */
> +
> + { "⇧", 0, XK_Shift_L, 1.5 },
> + { "'", "\"", XK_apostrophe, 1 },
> + { 0, 0, XK_q, 1 },
> + { 0, 0, XK_j, 1 },
> + { 0, 0, XK_k, 1 },
> + { 0, 0, XK_x, 1 },
> + { 0, 0, XK_b, 1 },
> + { 0, 0, XK_m, 1 },
> + { 0, 0, XK_w, 1 },
> + { 0, 0, XK_v, 1 },
> + { 0, 0, XK_z, 1 },
> + { "⌫", 0, XK_BackSpace, 1 },
> +
> + { 0 }, /* New row */
> + { "↺", 0, XK_Cancel, 1},
> + { "Alt", 0, XK_Alt_L, 1 },
> + { "", 0, XK_space, 4 },
> + { "↓", 0, XK_Down, 1 },
> + { "↑", 0, XK_Up, 1 },
> + { "↲ Enter", 0, XK_Return, 2 },
> +};
> +
> static Key keys_minimal[KEYS] = {
> { 0, "☺", XK_q, 1 },
> { 0, 0, XK_w, 1 },
> _AT_@ -634,7 +702,7 @@ static Key keys_dialer[KEYS] = {
> { 0 }, /* Last item (double 0) */
> };
>
> -#define LAYERS 7
> +#define LAYERS 8
> static char* layer_names[LAYERS] = {
> "en",
> "symbols",
> --
> 2.38.2
>


-- 
There are two ways of constructing a software design.  One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare
Received on Sat Feb 04 2023 - 20:31:50 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 04 2023 - 20:36:33 CET