Tested & Working on Linux Mint - Lenovo ThinkPad T480s
Collection of powerful automation scripts for Linux. No bullshit, just working code.
sudo apt install -y tesseract-ocr maim xclip xdotool zenity libnotify-bin fwupd intel-microcode tlp thermald bluez bluez-tools
Auto-configures fingerprint authentication for ThinkPad sensors using python-validity.
Features:
- Auto-detects distro (Ubuntu/Fedora/Arch)
- Installs python-validity PPA packages
- Fixes PAM configuration for sudo/login/lock screen
- Handles keyring auto-unlock
- Works with Validity fingerprint sensors
Usage:
chmod +x fingerprintfixer.sh sudo ./fingerprintfixer.sh
Pick option 1 for full setup, then scan your finger 5 times.
Fix Keyring Unlock Issue: If you get password popup after fingerprint login, run:
rm ~/.local/share/keyrings/login.keyringThen LOGOUT and LOGIN with PASSWORD (not fingerprint). After that, fingerprint will auto-unlock keyring!
Tested: Linux Mint, Ubuntu, Kali Linux, Zorin OS
Select screen area, extract text, auto-copy to clipboard.
Features:
- Select any screen region
- Multi-language OCR support
- Auto-copies text to clipboard
- Desktop notifications
Usage:
chmod +x ocr.sh ./ocr.sh
Setup Keyboard Shortcut:
Linux Mint/Cinnamon:
- Open
System SettingsβKeyboardβShortcuts - Click
Custom ShortcutsβAdd custom shortcut - Name:
OCR Screenshot - Command:
/full/path/to/ocr.sh - Click
Addβ Click on the row β Press your desired key combo
Ubuntu/GNOME:
SettingsβKeyboardβKeyboard ShortcutsβCustom Shortcuts- Click
+β Name:OCR Screenshot - Command:
/full/path/to/ocr.sh - Set your preferred shortcut
KDE Plasma:
System SettingsβShortcutsβCustom ShortcutsEditβNewβGlobal ShortcutβCommand/URL- Set trigger key | Action:
/full/path/to/ocr.sh
Recommended: Ctrl+Shift+O or any key combo you prefer!
Windows-style clipboard manager (Win+V equivalent for Linux).
Features:
- Saves last 50 clipboard items
- Supports both text AND images/screenshots
- GUI menu to browse history
- One-click to copy from history
- Auto-saves clipboard in background
- Auto-start on boot (one-time setup)
One-Time Setup (Recommended):
chmod +x clipboard.sh ./clipboard.sh --setup
This enables auto-start on boot. Daemon will run in background automatically!
Setup Keyboard Shortcut (Super+V): Follow same steps as OCR script above, but use:
- Command:
/full/path/to/clipboard.sh - Recommended shortcut:
Super+V(Win+V equivalent)
Manual Commands:
./clipboard.sh # Show clipboard history ./clipboard.sh --daemon # Start daemon manually ./clipboard.sh --stop # Stop daemon ./clipboard.sh --status # Check daemon status ./clipboard.sh --clear # Clear history ./clipboard.sh --remove # Disable autostart
Now just press Super+V anytime to access clipboard history!
Complete hardware optimization for ThinkPad T480s on Linux.
Features:
- Firmware updates via fwupd
- TLP power management
- Fan control with thinkfan
- Battery charge thresholds (75-80%)
- Thermal management
- Bluetooth/WiFi optimization
- Multi-distro support
Usage:
chmod +x thinkpadt480slinux.sh sudo ./thinkpadt480slinux.sh
Reboot after installation for optimal performance.
Fixes Unified Remote Bluetooth connection issues on Linux.
Features:
- Enables BlueZ compatibility mode
- Fixes SDP socket permissions
- Auto-starts urserver service
- Handles service dependencies
Usage:
chmod +x unifiedremote.sh sudo ./unifiedremote.sh
Check status at: http://localhost:9510/web/
git clone https://github.com/tazhossain/linux-scripts.git && cd linux-scripts && chmod +x *.sh
- OS: Linux Mint (Ubuntu-based distros)
- Device: Lenovo ThinkPad T480s
- Kernel: 5.15+ (works on newer kernels)
- Desktop: Cinnamon/GNOME/KDE
Should work on most Debian/Ubuntu/Fedora/Arch-based distros.
- GitHub: @tazhossain
- Telegram: @tazchatbot
- Channels: @tazmods | @modsbytaz
MIT License - Use freely, modify, share. Credit appreciated.
Made with π₯ by Taz