Results 1 to 3 of 3

Thread: disable mouse pointer / cursor

  1. #1
    Join Date
    Mar 2021
    Beans
    12

    Question disable mouse pointer / cursor

    I'm using LXQt on Lubuntu 20.04.2 LTS, and would like to disable the mouse pointer / cursor. I added the -nocursor option in /etc/X11/xinit/xserverrc, so the exec line is now:
    Code:
    exec /usr/bin/X -nocursor -nolisten tcp "$@"
    saved my changes, and rebooted. This made no difference.
    I prefer to disable the cursor using X server options and not use unclutter. If you know how to do this, I would appreciate your help!

  2. #2
    Join Date
    Mar 2021
    Beans
    12

    Cool Re: disable mouse pointer / cursor

    For other users of the interwebs looking for the same, edit /etc/sddm.conf, add a section as shown below, save and reboot.

    $ sudo vim (or nano, etc.) /etc/sddm.conf

    new section:

    Code:
    [X11]
    ServerArguments=-nocursor -nolisten tcp
    Save changes

    $ reboot now

    I don't know if ServerArguments options are additive/cumulative to options found in /etc/X11/xinit/xserverrc, or if this replaces the arguments. I initially assumed replacement, and had set ServerArguments to '-nocursor -nolisten tcp "$@".' After rebooting, the GUI didn't complete loading. I used the Ctrl+Alt+F2 shortcut to login a text-only environment, modify /etc/sddm.conf, removing "$@" from ServerArguments, and reboot. I'm unsure of the purpose of "$@."

    I found this helpful: https://wiki.archlinux.org/index.php/SDDM

  3. #3
    Join Date
    Mar 2021
    Beans
    12

    Re: disable mouse pointer / cursor

    /etc/X11/xinit/xserverrc is apparently a shell script, and $@ would be an array containing arguments passed to the script. Just a guess, but this probably means ServerArguments you specify in sddm.conf are eventually passed as arguments to xserverrc. If so, including "-nolisten tcp" in ServerArguments is redundant. Of course, adding -nocursor to xserverrc apparently did nothing (see initial post)...

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •