Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tazhossain/Linux-Scripts

Repository files navigation

πŸ”₯ Linux Scripts Collection by Taz

Tested & Working on Linux Mint - Lenovo ThinkPad T480s

Collection of powerful automation scripts for Linux. No bullshit, just working code.

GitHub Telegram


πŸ“¦ Quick Install Dependencies

sudo apt install -y tesseract-ocr maim xclip xdotool zenity libnotify-bin fwupd intel-microcode tlp thermald bluez bluez-tools

πŸ› οΈ Scripts

1. πŸ–οΈ fingerprintfixer.sh - Fingerprint Setup Tool

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.keyring

Then LOGOUT and LOGIN with PASSWORD (not fingerprint). After that, fingerprint will auto-unlock keyring!

Tested: Linux Mint, Ubuntu, Kali Linux, Zorin OS


2. πŸ“Έ ocr.sh - Screenshot OCR Tool

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:

  1. Open System Settings β†’ Keyboard β†’ Shortcuts
  2. Click Custom Shortcuts β†’ Add custom shortcut
  3. Name: OCR Screenshot
  4. Command: /full/path/to/ocr.sh
  5. Click Add β†’ Click on the row β†’ Press your desired key combo

Ubuntu/GNOME:

  1. Settings β†’ Keyboard β†’ Keyboard Shortcuts β†’ Custom Shortcuts
  2. Click + β†’ Name: OCR Screenshot
  3. Command: /full/path/to/ocr.sh
  4. Set your preferred shortcut

KDE Plasma:

  1. System Settings β†’ Shortcuts β†’ Custom Shortcuts
  2. Edit β†’ New β†’ Global Shortcut β†’ Command/URL
  3. Set trigger key | Action: /full/path/to/ocr.sh

Recommended: Ctrl+Shift+O or any key combo you prefer!


3. πŸ“‹ clipboard.sh - Clipboard History Manager

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!


4. πŸ’» thinkpadt480slinux.sh - ThinkPad T480s Optimizer

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.


5. πŸ“± unifiedremote.sh - Unified Remote Bluetooth Fix

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/


πŸš€ One-Line Setup

git clone https://github.com/tazhossain/linux-scripts.git && cd linux-scripts && chmod +x *.sh

πŸ–₯️ Tested Configuration

  • 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.


πŸ”— Links


πŸ“œ License

MIT License - Use freely, modify, share. Credit appreciated.


Made with πŸ”₯ by Taz

About

Linux automation scripts by Taz

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /