grafik: flat an Mine angepasst
This commit is contained in:
parent
0e0741d1e1
commit
db235f56d2
@ -1,3 +1,5 @@
|
||||
#you can use this line if you have vou and mine installed (not included with xkeyboard-config)
|
||||
#VARIANTS=neo bone neo_qwertz neo_qwerty koy adnw vou mine
|
||||
VARIANTS=neo bone neo_qwertz neo_qwerty koy adnw
|
||||
LAYERS=1 2 3 4 5 6 Pseudoebene
|
||||
VERSIONS=numpad tkl
|
||||
|
@ -332,8 +332,9 @@ text.nubkey { fill:#eee; }
|
||||
<text x="252" class="key">{{ AC08 }}</text>
|
||||
<text x="288" class="key">{{ AC09 }}</text>
|
||||
<text x="324" class="key">{{ AC10 }}</text>
|
||||
{% if swap_m3r_ä %}
|
||||
{% if vou %}
|
||||
<text x="396" class="key">{{ BKSL }}</text>
|
||||
{% elif mine %}
|
||||
{% else %}
|
||||
<text x="360" class="key">{{ AC11 }}</text>
|
||||
{% endif %}
|
||||
@ -389,5 +390,10 @@ text.nubkey { fill:#eee; }
|
||||
|
||||
<text x="20" y="26" class="dead" id="t1">{{ TLDE }}</text>
|
||||
<text x="452" y="26" class="dead" id="t2">{{ AE12 }}</text>
|
||||
{% if mine %}
|
||||
<text x="480" y="98" class="dead" id="t3">{{ BKSL }}</text>
|
||||
<text x="470" y="62" class="key" id="t3">{{ AD12 }}</text>
|
||||
{% else %}
|
||||
<text x="470" y="62" class="dead" id="t3">{{ AD12 }}</text>
|
||||
{% endif %}
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -13,7 +13,9 @@ if len(sys.argv) == 1:
|
||||
layout = sys.argv[1]
|
||||
templatename = "base.svg.template"
|
||||
numpad = True if len(sys.argv) == 3 and sys.argv[2] == "numpad" else False
|
||||
swap_m3r_ä = True if layout == "de vou" else False
|
||||
swap_m3r_ä = True if layout == "vou" or layout == "mine" else False
|
||||
vou = True if layout == "vou" else False
|
||||
mine = True if layout == "mine" else False
|
||||
|
||||
os.system("setxkbmap de " + layout + " -print | xkbcomp -xkb - /tmp/keymaptmp 2>/dev/null")
|
||||
# TODO: actually write/generate a proper parser for xkbmaps
|
||||
@ -52,6 +54,8 @@ with open('/tmp/keymap', 'r') as file:
|
||||
layerdict[x] = " pressed"
|
||||
layerdict["numpad"] = numpad
|
||||
layerdict["swap_m3r_ä"] = swap_m3r_ä
|
||||
layerdict["vou"] = vou
|
||||
layerdict["mine"] = mine
|
||||
versionstring = "-numpad" if numpad else "-tkl"
|
||||
out = open(layout + "-" + layernames[layer] + versionstring + ".svg", "w")
|
||||
with open(templatename) as templatefile:
|
||||
|
Loading…
Reference in New Issue
Block a user