XFCE & i3 mouse settings

Hi,

I have XFCE and have installed i3 alongside

I am having problems with my mouse settings in i3:

The mouse cursor theme changes between apps and is not what I set it to

The following no longer work in my i3 config:

# Left-handed mouse
exec -no-startup-id xmodmap -e "pointer = 3 2 1"

# Touchpad Indicator
 exec -no-startup-id touchpad-indicator

However, xmodmap -e "pointer = 3 2 1" does then work from a terminal

I have then opened via terminal the following apps:

xfce4-mouse-settings
lxappearance
touchpad-indicator

The latter seems to only work when I have last opened (via terminal in i3) lxappearance rather than
xfce4-mouse-settings (I think, but its difficult to work out what is happening)

All very confusing

As a sinister Left Hander, this is important for me :slight_smile:

Any ideas, please?

I dont want to install the i3 version of Manjaro,although i am sure it is very good.

For i3, try setting the cursor theme with lxappearance and not with xfce4-mouse-settings.

You are missing a “-” character in front of --no-startup-id. It should look like this:

# Left-handed mouse
exec --no-startup-id xmodmap -e "pointer = 3 2 1"

# Touchpad Indicator
exec --no-startup-id touchpad-indicator

Thanks!

DOH! I missed that extra “-”. I must have deleted it as it was working before.
Now mouse buttons work
touchpad-indicator is not working though as there is no tray icon and although the touchpad is off, it doesnt come back on when I disconnect the mouse as it should

However, starting it from a terminal does work, with:

$ touchpad-indicator
/usr/bin/touchpad-indicator:29: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f70fcffa080>
/usr/share/touchpad-indicator/touchpad_indicator.py:30: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
#####################################################
#####################################################
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	21.2.4
Codename:	Qonos
Version:	x86_64
#####################################################

Touchpad-Indicator version: 1.0.4-0extras14.04.0-src
#####################################################
syndaemon: no process found

WRT the mouse cursor, I do try to use lxappearance
I have just worked out that when I change the cursor theme it does work on an empty desktop but not on the apps, and when I reboot it reverts back to the other theme.

More tries:

  1. touchpad-indicator started from my rofi menu no problem

I then exited touchpad-indicator and tried starting it from a terminal, but got the following errors:

$ touchpad-indicator
/usr/bin/touchpad-indicator:29: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
<gettext.GNUTranslations object at 0x7f0c909aa080>
/usr/share/touchpad-indicator/touchpad_indicator.py:30: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  from gi.repository import AppIndicator3 as appindicator
#####################################################
#####################################################
LSB Version:	n/a
Distributor ID:	ManjaroLinux
Description:	Manjaro Linux
Release:	21.2.4
Codename:	Qonos
Version:	x86_64
#####################################################

Touchpad-Indicator version: 1.0.4-0extras14.04.0-src
#####################################################
syndaemon: no process found
Traceback (most recent call last):
  File "/usr/bin/touchpad-indicator", line 42, in <module>
    main()
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 468, in main
    tpi=TouchpadIndicator()
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 112, in __init__
    self.on_mouse_plugged_change(self.on_mouse_plugged)
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 133, in on_mouse_plugged_change
    self.launch_watchdog()
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 220, in launch_watchdog
    self.set_touch_enabled(False)
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 158, in set_touch_enabled
    self.show_notification('disabled')
  File "/usr/share/touchpad-indicator/touchpad_indicator.py", line 175, in show_notification
    self.notification.show()
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Notifications was not provided by any .service files (2)

Then tried again in terminal and it worked as in previous post.

Re Touchpad-indicator:
I installed touchpad-indicator-git from AUR (only option given by yay) which required uninstalling touchpad-indicator-brx (not sure where I installed that from, maybe Pamac within XFCE)
Now that works :slight_smile:

Re: Mouse cursor theme:
lxappearance is not changing the mouse icon theme when I select it - when I close lxappearance and then imediately reopen it, the selected theme has reverted to the original one