Skip to content

Instantly share code, notes, and snippets.

View b-Tomas's full-sized avatar

Tomás Badenes b-Tomas

View GitHub Profile
@b-Tomas
b-Tomas / lofree-fn-fix.sh
Created May 3, 2025 16:27
Lofree Flow Lite fn keys Linux permanent fix
# Fixes the fn row key for Lofree keyboards on Linux.
# Non-permanent fix: https://github.com/alexeygumirov/lofree-flow-fn-fix/blob/main/lofreemodefix
echo 'options hid_apple fnmode=2' | sudo tee /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u
@b-Tomas
b-Tomas / moveit.sh
Last active September 21, 2024 17:19
RSync a whole Linux filesystem (sorta) - Pop-OS!
# Move an installation of Pop-OS! from one disk to another.
# Useful guide if transferring data from a non encrypted install to an encrypted install.
# Create a fresh install of Pop-OS! in the new drive, and operatating from the live env do:
# unlock encrypted partitions
sudo udisksctl unlock -b /dev/<part>
# mount partitions
sudo udisksctl mount -b /dev/mapper/data-root # Or some other alias returned earlier
# REPEAT ABOVE FOR SOURCE AND DESTINATION