From 4844315b793b2984632dcc8c111f829140228b7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 18 Aug 2014 04:41:37 +0200 Subject: add a sv layout for programming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- res/keyboard/layout/sv/programmer | 163 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 res/keyboard/layout/sv/programmer (limited to 'res/keyboard/layout') diff --git a/res/keyboard/layout/sv/programmer b/res/keyboard/layout/sv/programmer new file mode 100644 index 0000000..9bfe055 --- /dev/null +++ b/res/keyboard/layout/sv/programmer @@ -0,0 +1,163 @@ +information + language "Swedish" + country "Sweden" + variant "QWERTY, programmer" +end information + +# This variant is intended to reduce the risk +# repetitive strain injury for programmers. +# Do not forget the caps_is_ctrl mod. + + +include "../common/qwerty" +include "../common/base" + + +function comma/0 + "," +end function +function altcomma/0 + "." +end function + +macro mod_letter/2 + : "\1" + : "\2" + : "\2" + : "\1" +end macro + +mod_letter("å" "Å") +mod_letter("ä" "Ä") +mod_letter("ö" "Ö") + + : + : + : + : + : + : + : + : + : + : + : + : + + +macro key/5 + : "\2" + : "\3" + : "\4" + : "\5" +end macro + +macro key/4 + key("\1" "\1" "\2" "\3" "\3") +end macro + +macro nocaps/2 + : "\2" + : +end macro + +macro nocaps/3 + : "\2" + : "\3" +end macro + +macro caps/3 + : "\2" + : "\3" + : "\3" + : "\2" +end macro + + +key("|" "|" "\\" "/" "`") +key("1" "!" "1" "" "¡") +key("2" "\"" "2" "@" "“") +key("3" "#" "3" "£" "”") +key("4" "$" "4" "¢" "‘") +key("5" "%" "5" "€" "’") +key("6" "&" "6" "¥" "¬") +key("7" "/" "7" "{" "÷") +key("8" "(" "8" "[" "«") +key("9" ")" "9" "]" "»") +key("0" "=" "0" "}" "°") +key("+" "+" "?" "\\" "¿") + : + : "±" + : + + : "^" + : + : "~" + +key("'" "*" "`" "×") +key("<" ">" "|" "\\") + + : "," + : ";" + : + : + + : "." + : ":" + : "·" + : + + : "-" + : "_" + : + : + + +nocaps("q" "[" "<") +nocaps("w" "]" ">") +nocaps("e" "“" "‘") +nocaps("r" "”" "’") +nocaps("t" "/" "*") + : "switch ()" + : "default:" + : "unsigned " + : "signed " + : "else if ()" + : "else" + : "while ()" + : "for ()" + : "continue;" + : "break;" +# - (see earlier) +# ^ (see earlier) + +nocaps("a" "(" "{") +nocaps("s" ")" "}") +nocaps("d" "'" "\"") +nocaps("f" "`" "\\") +nocaps("g" "↑") +# h + : "goto fail;" + : "goto " + : "const " + : "restrict " + : "static " + : "static inline " + : "return " + : "volatile " +# . (see earlier) +# ' (see earlier) + +# < (see earlier) + : "size_t" + : "sizeof()" +# x +nocaps("c" "©" "®") +nocaps("v" "←") +nocaps("b" "↓") +nocaps("n" "→" "–") +nocaps("m" "µ" "—") +# å +# , (see earlier) +# ä + -- cgit v1.2.3-70-g09d2