amerlyq / piony

Radial Menu for Wacom / mouse
GNU General Public License v3.0
2 stars 1 forks source link

Installing & Running under Linux Mint 20.1 Cinnamon (Gnome) #3

Open stefan123t opened 2 years ago

stefan123t commented 2 years ago

Hi @amerlyq,

I found your nice tool piony used for radial menus under Linux with Qt desktop. I am running Linux Mint 20.1 Cinnamon (Gnome based afaik), which does have Qt libraries but somehow it throws some errors during installation.

I downloaded your GIT repo:

mkdir ~/git
cd ~/git
git clone https://github.com/amerlyq/piony.git
cd piony/

make deploy would give me errors without the required xdotool package:

./scripts/deploy: line 17: hash: xdotool: not found
Install 'xdotool' by [sudo apt-get install xdotool] (on Ubuntu/Debian/LinuxMint)\nOr [pacman -S xdotool] (on ArchLinux)
make: *** [Makefile:121: deploy] Error 1

so I installed that and reran make deploy successfully: sudo apt-get install xdotool I.e. the file /tmp/wacom_xbindkeysrc got generated.

I tried to call piony.py manually before with the following error:

$ ./piony.py 
2021-10-13 13:44:18 INFO     piony.system     Client: connection attempt
2021-10-13 13:44:18 INFO     piony.system     Client: The host was not found. Check the host name and port.
Traceback (most recent call last):
  File "./piony.py", line 31, in <module>
    import inject
ModuleNotFoundError: No module named 'inject'

I was missing the inject python module: pip install inject

Now your tool is showing up on the desktop. image

I will need to find out how to configure it, but this issue should serve as a quick installation guide for other potential users.

Kind regards, Stefan

amerlyq commented 2 years ago

Heh, I'm very touched that you had found this project and checked it still works :)

Basically my usage of Wacom over last decade had reduced significantly, centering only on occascional Krita sketches, using xournalpp when explaining diagrams at work, and okular when reviewing pdf work specifications and requirements, so default bindings were "almost enough" to long for piony but tolerate the mild suffering :D

Are you interested in contributing back some minor improvements you find useful to you?)

stefan123t commented 2 years ago

Hi Dmytro, I am looking for a way to configure all the existing buttons on my Wacom tablet. And when checking the documentation for their Windows/Mac Drivers I found that they are offering Radial menu and Grid menus to bind to special commands. Looking at the Wacom Linux driver / configuration options I could only find a way to assign single keypresses to each of those buttons, but no way to open a pop up window. I was recalling Octree CAD, which introduced radial menus a decade ago in order to minimize mouse / hand movement necessary to select options from the by then ubiquituous pull-down menus. Still I was unable to find a way to map those 10 buttons on my tablet to something meaningful I could easily remember. I know that Krita offers such a palette style radial menu to select colors, pencil/brushes, etc. from a visual menu but neither GIMP, nor Blender or Inkscape offer such an option afaik. There is however a small tool which offers some Hotkey options and allows some scripting too, it is called Autokey and I think it could greatly benefit from donating your visual / radial menu code. Maybe you could consider linking / donating your code to their project ? I already referenced some of your documentation for setup as the basic platform Python 3 and xkeybind/xsetwacom etc. should be compatible and complementary: https://github.com/autokey/autokey/issues/284 Kind regards, Stefan