Skip to content

Commit

Permalink
Linux Workflow Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinyzu committed Apr 9, 2024
1 parent faf2576 commit 7b6ac5e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 42 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ jobs:
- name: Install Chromium Driver
run: python -m playwright install chromium
- name: Test with PyTest
uses: maufrontier/puppeteer-headful@v3
with:
commands: pytest
# - name: Test with PyTest
# run: pytest
run: |
Xvfb -ac :100 -screen 0 1280x1024x16 > /dev/null 2>&1 &
export DISPLAY=:100.0
pytest
Build_Windows:
strategy:
Expand Down
74 changes: 37 additions & 37 deletions cdp_patches/input/os_base/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,43 @@
# Every Common Symbol on a QWERTY Keyboard, Source: https://github.com/python-xlib/python-xlib/blob/4e8bbf8fc4941e5da301a8b3db8d27e98de68666/Xlib/keysymdef/latin1.py
# Dict Source: https://github.com/svenlr/swift-map/blob/main/mainloop.py#L459
symbol_dict = {
'@': 'at',
'`': 'grave',
'\t': 'Tab',
'|': 'bar',
'\n': 'Return',
'\r': 'Return',
'~': 'asciitilde',
'{': 'braceleft',
'[': 'bracketleft',
']': 'bracketright',
'\\': 'backslash',
'_': 'underscore',
'^': 'asciicircum',
'!': 'exclam',
' ': 'space',
'#': 'numbersign',
'"': 'quotedbl',
'%': 'percent',
'$': 'dollar',
"'": 'apostrophe',
'&': 'ampersand',
')': 'parenright',
'(': 'parenleft',
'+': 'plus',
'*': 'asterisk',
'-': 'minus',
',': 'comma',
'/': 'slash',
'.': 'period',
'\\e': 'Escape',
'}': 'braceright',
';': 'semicolon',
':': 'colon',
'=': 'equal',
'<': 'less',
'?': 'question',
'>': 'greater'
"@": "at",
"`": "grave",
"\t": "Tab",
"|": "bar",
"\n": "Return",
"\r": "Return",
"~": "asciitilde",
"{": "braceleft",
"[": "bracketleft",
"]": "bracketright",
"\\": "backslash",
"_": "underscore",
"^": "asciicircum",
"!": "exclam",
" ": "space",
"#": "numbersign",
'"': "quotedbl",
"%": "percent",
"$": "dollar",
"'": "apostrophe",
"&": "ampersand",
")": "parenright",
"(": "parenleft",
"+": "plus",
"*": "asterisk",
"-": "minus",
",": "comma",
"/": "slash",
".": "period",
"\\e": "Escape",
"}": "braceright",
";": "semicolon",
":": "colon",
"=": "equal",
"<": "less",
"?": "question",
">": "greater",
}

layouts_shifted_chars = {
Expand Down

0 comments on commit 7b6ac5e

Please sign in to comment.