Skip to content

Instantly share code, notes, and snippets.

@sulph68
sulph68 / uConsole MouseKeys Setup.md
Created June 15, 2025 04:49
uConsole MouseKeys Setup

uConsole MouseKeys Setup

As the trackball on the uConsole can be tricky, i used the YXBA buttons to move the cursor for more refined movements. This is done via ydotool and ydotoold in order to work with wayland.

References

Important to know that ydotool should be built from source in order to provide relative mouse movements.

Once built and installed, ydotoold should be started as root listening to a socket file, but changing socket ownershop to a target user. I added the following to rc.local

@sulph68
sulph68 / uConsole Auto changing battery wallpaper.md
Last active September 7, 2025 11:45
uConsole Auto changing battery wallpaper

uConsole Auto rotating battery wallpaper

To automatically change wallpaper on battery level, read the battery level from /sysclass and change the wallpaper setting using gsettings.

my $batt_file = "/sys/class/power_supply/axp20x-battery/capacity";

[...some code...]
chomp(my $current = `gsettings get org.gnome.desktop.background picture-uri`);
$current =~ s/^'file:\/\/\///;
$current =~ s/'$//;
@sulph68
sulph68 / uConsole GPS Setup.md
Created June 15, 2025 04:44
uConsole GPS Setup

uConsole GPS Setup

gps-share

Main purpose is to ensure that location is available from device to localhost via TCP. It will allow geoclue to work properly. and enable support for gnome-maps and geoclue dependent applications.

Project location. Build the application. https://github.com/zeenix/gps-share

Default configuration on network is localhost:10110