Daily Shaarli

All links of one day in a single page.

June 6, 2024

Key Remapping in Linux — 2021 Edition

Amazing comparison of all kinds of keyboard rebinding software (like keyd) for linux. Goes over some really neat nuances and contains programs I did not know of before.

GitHub - pyprojectx/pyprojectx: All-Inclusive Python Projects

A sort of 'meta'-approach to python project management.
You don't download any other tools before you start a project but you simply do a curl single liner:

curl -LO https://github.com/pyprojectx/pyprojectx/releases/latest/download/wrappers.zip && unzip wrappers.zip && rm -f wrappers.zip

to download and install the wrappers in the current dir.
You henceforth use the wrappers to do anything, e.g.:

./pw --add pdm,ruff,pre-commit,px-utils
./pw --install-context main
# invoke a tool via the wrapper script
./pw pdm --version
./pw ruff check src
# or activate the tool context
source .pyprojectx/main/activate
pdm --version
ruff check src

Seems a little cumbersome but also nice to test out a variety of project management setups for python applications.

~whynothugo/clipmon -A clipboard monitor for Wayland -sourcehut git

Alternative to clipman for wayland, might be a little simpler on its backend?

My 'lock-and-sleep' script · WhyNotHugo

An good example of how to lock the computer and send it to sleep on a timer.

Uses swaylock and wayidle, so primarily made for wayland.

GitHub - localsend/localsend: An open-source cross-platform alternative to AirDrop

An open-source cross-platform alternative to AirDrop. Local file sharing easy through being on a single connection.

superd: a user service supervisor

A systemd-analogous supervisor just for user services: think of it a little like systemd --user.

However, also works with distributions that do not bring systemd along,
so instead rely on s6, runit or similar.

It uses a systemd-like service file format.

A whole bunch of pre-made service files can be found here: ~whynothugo/superd-services