Closed cmoang closed 9 years ago
On 06/04/2015 06:55 PM, cmoang wrote:
I have problems running
screenkey
. Any ideas?
Looks like some minor difference in arguments for gettext.install when using python3.
I was able to reproduce it here as well.
I'll fix it in the next few days. You can try with 2.7 meanwhile.
Unfortunately, xlib or xcb support in python3 is lacking (there are two unofficial ports, both not packaged), so this might actually take time to fix... Python 2.7 is required.
Sorry to bring this up again. After cloning the project, I still get some errors:
$ python2 ./screenkey -p fixed -g $(slop -n -f '%g')
Traceback (most recent call last):
File "./screenkey", line 98, in <module>
main()
File "./screenkey", line 90, in main
sc.Screenkey(logger=logger, options=options, show_settings=args.show_settings)
File "/home/screenkey/screenkey/Screenkey/screenkey.py", line 127, in __init__
self.on_change_mode()
File "/home/screenkey/screenkey/Screenkey/screenkey.py", line 330, in on_change_mode
recent_thr=self.options.recent_thr)
File "/home/screenkey/screenkey/Screenkey/listenkbd.py", line 115, in __init__
self.keymap = modmap.get_keymap_table()
File "/home/screenkey/screenkey/Screenkey/modmap.py", line 33, in get_keymap_table
keymap_table = cmd_keymap_table()
File "/home/screenkey/screenkey/Screenkey/modmap.py", line 18, in cmd_keymap_table
'LC_ALL': 'C'})
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
TypeError: execve() arg 3 contains a non-string value
$ python2 --version # on Arch Linux
Python 2.7.10
Any ideas?
Can you try again with the latest master?
Wow it works!!!! I am so relieved! Thank you so much! For network stumblers, this:
xmodmap: unable to open display ':0
doesn't happen after an xhost +
( https://wiki.archlinux.org/index.php/Xhost ).
Last, this is not important for me, but in key combinations with Alt or Ctrl, "Shift" is not captured: Ctrl+Shift+Up is shown correctly as Ctrl+Shift+(up arrow)
, but Ctrl+Shift+a is shown incorrectly as Ctrl+A
.
That is, Shift is captured if the third key is a key like Tab, Backspace, PgUp, etc. but not with letters.
xhost +
is probably not what you want. The error was caused by a missing XAUTHORITY
, which is normally generated by the X display manger at startup (you probably need xorg-xauth
to be installed).
As for shift, it's intended. If there's a letter, "shift" modifies the letter directly to make it capital in order to make the key stream more readable.
But I agree in some situations it might be helpful to make it visible. I will add a note for this.
FYI, I added issue #4 to keep track of this.
I have problems running
screenkey
. Any ideas?