Skip to content

Tazhossain/Linux-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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 SettingsKeyboardShortcuts
  2. Click Custom ShortcutsAdd 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. SettingsKeyboardKeyboard ShortcutsCustom Shortcuts
  2. Click + → Name: OCR Screenshot
  3. Command: /full/path/to/ocr.sh
  4. Set your preferred shortcut

KDE Plasma:

  1. System SettingsShortcutsCustom Shortcuts
  2. EditNewGlobal ShortcutCommand/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

Releases

No releases published

Packages

 
 
 

Contributors

Languages