luisbocanegra / plasma-cursor-eyes

Rolling eyes that follow your mouse pointer for the KDE Plasma Desktop (X11 or Wayland). A small demo of getting KWin Script output from a Widget using D-Bus and Python
https://store.kde.org/p/2183752
GNU General Public License v3.0
6 stars 1 forks source link

Does not work in Arch Linux: Eye is stuck at fixed place #1

Closed archisman-panigrahi closed 4 months ago

archisman-panigrahi commented 4 months ago

Here is my recent journalctl log.

Apr 29 02:46:17 Tang-desktop plasmashell[6375]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:07 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:06 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:05 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:04 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/AppletConfiguration.qml:142:5: QML Connections: Detected function "onSettingValueChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_updatesPerSecondDefault
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_updatesPerSecond
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_qdbusExecutableDefault
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_qdbusExecutable
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_pythonExecutableDefault
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_pythonExecutable
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_enableDebugDefault
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_bgFillPanel
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configDebugging.qml:7:1: QML SimpleKCM: Created graphical object was not placed in the graphics scene.
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:03 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:02 Tang-desktop rtkit-daemon[673]: Supervising 7 threads of 5 processes of 1 users.
Apr 29 02:46:02 Tang-desktop rtkit-daemon[673]: Supervising 7 threads of 5 processes of 1 users.
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.82 y:3.25
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1245.00 y:1042.00
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Iris x:2.84 y:3.22
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Eye x:1218.00 y:1042.00
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: Cursor position x:-1 y:-1
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: qml: CURSOR_EYES_WIDGET: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/AppletConfiguration.qml:142:5: QML Connections: Detected function "onSettingValueChanged" in Connections element. This is probably intended to be a signal handler but no signal of the target matches the name.
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_updatesPerSecondDefault
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_qdbusExecutableDefault
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_pythonExecutableDefault
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_enableDebugDefault
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_enableDebug
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml: Setting initial properties failed: SimpleKCM does not have a property called cfg_bgFillPanel
Apr 29 02:46:02 Tang-desktop plasmashell[6375]: file:///home/archisman/.local/share/plasma/plasmoids/luisbocanegra.cursor.eyes/contents/ui/configGeneral.qml:7:1: QML SimpleKCM: Created graphical object was not placed in the graphics scene.

I am using X11.

luisbocanegra commented 4 months ago

It requires the KWin script to be installed and enabled, install.sh installs both.

luisbocanegra commented 4 months ago

That change was done to reduce cpu usage, now kwin tells the cursor position to the widget through the D-Bus service.py instead of loading my own enough times per second for it to be smooth

archisman-panigrahi commented 4 months ago

I already ran ./install.sh (before getting this error). What else do I need to configure?

luisbocanegra commented 4 months ago

Enable the KWin script, if the eyes still do not move, enable debug, disable the script and enable it again and share the journalctl output pleae

image

luisbocanegra commented 4 months ago

Hi, just noticed I had a typo in the install directory, should appear in KWin script settings after pulling the latest change and running install.sh again :)

archisman-panigrahi commented 4 months ago

Now it is working!! Thank you

luisbocanegra commented 4 months ago

You're welcome! Let me know how it goes and if you notice too much CPU usage with the default 30 updates per second, if is too much I may consider the possibility of using a compiled plugin in addition to the KWin Script method, will have to learn some C++ first but I think is doable.

archisman-panigrahi commented 4 months ago

Sure, I will let you know. So far I don't find any significant increase with CPU use, but this computer has a relatively powerful CPU.