Skip to content

Instantly share code, notes, and snippets.

View Speyll's full-sized avatar
✊
🍋

Speyll Speyll

✊
🍋
  • 06:25 (UTC +01:00)
View GitHub Profile
@Speyll
Speyll / t14gen5-settings.sh
Last active October 4, 2026 20:55
Arch optimizations for the Thinkpad T14 Gen 5 Ryzen Edition
#!/usr/bin/env bash
# ThinkPad T14 Gen 5 (Ryzen) Post-Install Optimization Script for Arch Linux
set -euo pipefail
# Colors
G='\033[0;32m' Y='\033[1;33m' R='\033[0;31m' NC='\033[0m'
(( EUID == 0 )) || { echo -e "${R}Error: Must be run as root.${NC}"; exit 1; }
echo -e "${Y}==> Starting ThinkPad T14 Gen 5 Optimization...${NC}"
@Speyll
Speyll / atk-linux-hid-setup.sh
Last active August 15, 2026 02:22
Robust udev rule generator for ATK/VXE mice and keyboards on Linux. Enables WebUSB access for ATK HUB (hub.atk.pro) and generic raw HID access. Supports multiple Vendor IDs (373b, 3554) and automates group permissions.
#!/usr/bin/env bash
set -euo pipefail
RULE_FILE="/etc/udev/rules.d/99-atk-mouse.rules"
ATK_VIDS=("373b" "3554" "25a7")
echo "🚀 Launching Clean ATK Setup (Group-Free)..."
# 1. Root check
if [[ $EUID -ne 0 ]]; then
#!/bin/bash
# Optimized CachyOS/Arch Post-Installation Script for AMD/Wayland (Niri)
# Author: Speyll
set -e # Exit on error
# Ensure script is not invoked directly as root
TARGET_USER="${SUDO_USER:-$USER}"
if [ "$TARGET_USER" = "root" ]; then
echo "Error: Do not run this script directly as root or via 'sudo ./script.sh'."
@Speyll
Speyll / auto-debian.sh
Last active February 10, 2025 01:12
Short, simple and easy to understand shell scripts to automate Debian post-installation with a wayland setup, you can play around with it as you see fit.
#!/bin/sh
# Debian Linux Post-Installation Script for Wayland
# Author: Speyll
# Last-update: 11-12-2024
# NOTE: As of Debian 12 (Bookworm Stable), while Waybar and Neovim settings function,
# the Waybar height is misconfigured and Lua scripts for Neovim fail to load due to outdated packages.
# For improved compatibility, consider using the Testing branch. Future Debian versions may not require this adjustment.
# Enable debugging output and exit on error
@Speyll
Speyll / auto-void.sh
Last active July 15, 2026 03:25
Short, simple and easy to understand shell scripts to automate Void Linux post-installation with a wayland setup, you can play around with it as you see fit.
#!/bin/sh
# Void Linux Post-Installation Script for Wayland
# Author: Speyll
# Last-update: 20-03-2025
# Enable debugging output and exit on error
set -x
# Add multilib and nonfree repositories
sudo xbps-install -Sy void-repo-nonfree