WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HideMouse extension submitted  (Read 3428 times)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11322
HideMouse extension submitted
« on: March 13, 2020, 01:14:57 AM »
Recently someone was running a GUI without a mouse and wanted a way to move the mouse cursor out of the way. I've also
read where some people with touch screens feel the mouse cursor obstructs their view and would like to hide it. I wrote a
small program that lets you turn the cursor on and off. It also lets you move the cursor to one of your screens corners.

The program has been tested under Xorg but should also work under Xvesa. The 32 and 64 bit versions have been submitted
to TC10. The 64 bit version has also been tested under TC11.

Code: [Select]
Title: HideMouse.tcz
Description: Hide mouse cursor and move it to the screens corner.
Version: version 0.1  Mar 12 2020 23:42:48
Author: Richard A. Rost
Original-site: None
Copying-policy: GPLv2
Size: 4.0K
Extension_by: Rich
Tags: move hide mouse cursor pointer
Comments: Run  HideMouse h  for this help output:

HideMouse version 0.1  Mar 12 2020 23:42:48
Copyright Richard A. Rost March 1, 2020
HideMouse is for hiding/moving the mouse cursor.

First run:  HideMouse &

Then:  echo X > /tmp/HideMouse

Where X is:
h=Hide cursor  s=Show cursor  q=Quit
1=Top Left  2=Top Right  3=Bottom Left  4=Bottom Right

Note: If you need to stop the program, use the Quit option. If
      you stop it with kill, /tmp/HideMouse will need to be
      removed if you want to restart HideMouse. The cursor
      will become visible if the program exits.

Built with:
CFLAGS=-flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -g -pipe -Wall -Wextra -fno-plt

Change-log: Original release version 0.1  Mar 12 2020 23:42:48
Current: Original release version 0.1  Mar 12 2020 23:42:48

I'll post again once the extension has been accepted.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11322
Re: HideMouse extension submitted
« Reply #1 on: March 14, 2020, 03:15:51 PM »
The TC10 and TC11 repositories now have X86 and X86_64 versions of  HideMouse.tcz.

If there are any Raspberry Pi users running a GUI who are interested in this, here are the build instructions:
Code: [Select]
wget http://tinycorelinux.net/11.x/x86/tcz/src/hidemouse/HideMouse-source-v0.1.tar.gz
tar xf HideMouse-source-v0.1.tar.gz
cd HideMouse
The  CompileHideMouse  script will download and install extensions that are required to build this package.
The  CompileHideMouse  script will not alter your  onboot.lst  file.

When it completes, copy  HideMouse.tcz, HideMouse.tcz.dep, and HideMouse.tcz.md5.txt  to your  tce/optional  directory. Then:
Code: [Select]
tce-load -i HideMouse
HideMouse &
HideMouse is now sleeping in the background and only wakes up when a command is sent to  /tmp/HideMouse.

You will also find a  HideMouse-armv.tar.gz.bfe  file has been created. It contains all the extension files and a source package. You
can submit that file to the repository if you wish.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11322
Re: HideMouse extension submitted
« Reply #2 on: January 22, 2021, 09:37:47 AM »
I have updated the  CompileHideMouse  script to also build for 64 bit piCore (aarch64).