Tiny Core Extensions > TCE News
HideMouse extension submitted
(1/1)
Rich:
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: ---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
LDFLAGS=-Wl,-T/usr/local/lib/ldscripts/elf_i386.xbn
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
--- End code ---
I'll post again once the extension has been accepted.
Rich:
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: ---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
./CompileHideMouse
--- End code ---
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: ---tce-load -i HideMouse
HideMouse &
--- End code ---
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.
Rich:
I have updated the CompileHideMouse script to also build for 64 bit piCore (aarch64).
Navigation
[0] Message Index
Go to full version