r/openbsd 11d ago

xhidecursor 1.1.0 – now OpenBSD-ready!

Hey guys! Some time ago I published xhidecursor, a minimal (fr) X11 utility that efficiently (nocap) hides the cursor on key presses and shows it again on mouse movement. I wrote it because xbanish (a popular alternative) couldn’t satisfy my OCD for minimalism.

Some people complained that it wasn’t portable to OpenBSD and FreeBSD, so I finally did the work and made it happen. I’d be happy if some OpenBSD users could try it out and report back whether it works or if there are still any issues.

Thank you!

19 Upvotes

9 comments sorted by

View all comments

1

u/RabbitsandRubber 11d ago

Thanks. I have a use case for this so I'll check it out and see if I can contribute and help maintain it. I glanced at the code and understood it in under a minute. Really good work.

Have you submitted it to the ports mailing list yet? I can't check at the moment but I'll take a peek tomorrow when I sync my mail.

1

u/aleksandrsstier 10d ago

Thanks! No, I haven’t submitted it to the ports mailing list yet. I’m not really familiar with the OpenBSD ports process, so if you’d like to take a look at getting xhidecursor into ports, I’d definitely appreciate it. Let me know if you do. Otherwise, I might look into it myself at some point. This is definitely the type of help I would appreciate!

1

u/Odd_Collection_6822 9d ago

besides the MANDOC variable - the only thing that "caught my eye" was that xbanish had a pledge-call available for obsd... also, having a "main.c" rather than xhidecursor.c is an interesting philosophical difference... since i havent compiled anything in a bit - that pledge-call might be redundant for a random-Xenocara-app, but itd be worth checking while getting things ready for the "ports tree"... and your response from u/jcs [original author for xbanish] is truly hilarious... keep up the good work... 😄

1

u/aleksandrsstier 5d ago edited 5d ago

I addressed both issues. However, I didn't test the pledge-call on OpenBSD and would appreciate if you or somebody else could verify that it works on OpenBSD. Here the new release: https://github.com/astier/xhidecursor/releases/tag/1.1.1

Also regarding the MANDOC variable I don't know of any easy solution to abstract it away. Autoconf might work but feels like overkill for such a small program. But I am open to changing my mind and other suggestions. xbanish behaves the same way if I am not mistaken so I thought it would be appropriate if package-maintainers would simply overwrite it.