-1

I want to hide the Adwaita cursor from the my XDM login screen. I looked at /etc/X11/xdm/ for a some cursor config, but found nothing.

There is my ~/.Xresources:

xlogin.Login.greeting:
xlogin.Login.unsecureGreeting:
xlogin.Login.fail:                Fail.
xlogin.Login.changePasswdMessage: Change.
xlogin.Login.namePrompt:          Username:
xlogin.Login.passwdPrompt:        Password:
xlogin.Login.echoPasswd:          true
xlogin.Login.background:          black
xlogin.Login.foreground:          white
xlogin.Login.failColor:           #cccccc
xlogin.Login.inpColor:            black
xlogin.Login.promptColor:         #aaaaaa
xlogin.Login.face:                courier:size=13:style=Bold
xlogin.Login.failFace:            courier:size=13:style=Bold
xlogin.Login.promptFace:          courier:size=13:style=Normal
xlogin.Login.greetFace:           courier:size=13
xlogin.Login.width:               400
xlogin.Login.y:                   400

For a reference, on the my login screen there are the 2 cursors: I-beam cursor (inside the field, which I enter now) and "unattached" cursor, which remains in the system after the login. I mean the second cursor (as I mentioned earlier, it has the Adwaita theme).

Is there a possibility to hide this cursor from the login screen?

1 Answer 1

1

X cursors are defined by a theme. In .Xresources you can set the theme with:

Xcursor.theme: cursor-theme

I am not aware of the ability to set individual cursor shapes, but you could always craft your own theme for that. You can also set a size:

Xcursor.size: 16

Maybe setting an invalid size will make the cursor go away so you don't need to mangle with the theme.

Finally, the theme can also be overriden by the environmental variable XCURSOR_THEME. If it doesn't work and the settings in .Xresources don't as well, a call to xrdb might be needed, which can be done in /etc/X11/xdm/Xsetup_0. As you can pass the file to read, this might be the best way to make the cursor disappear only within the login prompt and not during the regular X session.

6
  • Thanks, but I want also hide I-Beam cursor from xdm login screen.
    – Kassi
    Dec 9, 2018 at 16:47
  • Well that's what I am talking about! This cursor is part of the cursor theme, just like the regular pointer and others.
    – ypnos
    Dec 9, 2018 at 18:43
  • Hm... ok. I will deal with it... Thanks!
    – Kassi
    Dec 9, 2018 at 19:10
  • 1
    Hi, @anjnkmr! You can't do it with a config. You'll have to climb into the XDM source.
    – Kassi
    Oct 6, 2020 at 17:48
  • 1
    Or you use a cursor theme consisting of invisible (transparent) cursors.
    – ypnos
    Oct 6, 2020 at 21:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.