Skip to content

Custom Linux Mint scripts for personal use on some of the available features of the Lenovo Ideapad Slim 3.

Notifications You must be signed in to change notification settings

Mysteriza/Linux-Mint-Scripts

Repository files navigation

Visitors

CUSTOM SCRIPTS

Custom Linux Mint scripts for personal use on some of the available features of the Lenovo Ideapad Slim 3.

Notes

  1. These scripts are optimized for Lenovo Ideapad Slim 3 running Linux Mint (you may have to customize the script to run on your computer)
  2. Some scripts require root privileges and will prompt you via pkexec.
  3. Tested on Linux Mint 22.1 (based on Ubuntu 24.04 LTS).

1. Power Mode Switcher

This script allows you to switch between different CPU power modes:

  • Performance — maximum CPU speed
  • Balanced — medium power and speed
  • Powersaver — minimum power usage

It uses cpufreq-set and applies the selected governor across all CPU cores. Root access is requested via pkexec.


2. Toggle Battery Mode

This script toggles the Battery Conservation Mode on supported Lenovo laptops:

  • When enabled, battery charging is limited to 60% to extend battery lifespan.
  • When disabled, the battery charges up to 100%.

The script reads and updates the conservation mode through /sys/bus/platform/.../conservation_mode with pkexec.


3. Toggle MariaDB and phpMyAdmin

This script controls the system services for MariaDB and phpMyAdmin:

  • You can enable/start or disable/stop both services at once.
  • Automatically detects if Apache2 or Nginx is installed as the web server.

Perfect for local development when you need to toggle your database environment quickly.


4. Restart NetworkManager

A simple utility to restart NetworkManager, which can help fix common connection issues:

  • Shows the current status of NetworkManager
  • Stops and restarts the service using pkexec

This avoids the need to reboot your machine when the network gets stuck or misbehaves.


5. TOR Switch

This utility manages the TOR service from a friendly GUI:

  • Displays whether TOR is currently active or inactive
  • Lets you start or stop the service via pkexec

Useful for toggling TOR service as needed without using the terminal.


6. Shortcut Maker

A simple interactive tool to create custom application shortcuts via GUI:

  • Select the executable file
  • Enter the shortcut name, comment, and icon
  • Choose the desired category
  • Automatically creates a .desktop launcher

This tool eliminates the need to manually edit .desktop files or rely on terminal commands, making it perfect for quickly organizing and launching your scripts or apps from the Linux Mint menu.


7. Proxy Tester

This script tests SOCKS5 proxies listed in /etc/proxychains4.conf:

  • Checks if each proxy is active or dead
  • Fetches geolocation (country, city, ISP) using ip-api.com
  • Measures latency to identify the fastest proxy
  • Displays results in a clean, colored, line-based format

Perfect for verifying proxy performance and reliability for privacy-focused tasks. Requires proxychains4 and jq for JSON parsing.


Requirements

Ensure the following packages are installed:

  • zenity — for displaying GUI dialogs (used in some scripts)
  • cpufrequtils — for setting CPU governor
  • pkexec — to perform actions with elevated privileges (usually provided by policykit-1)
  • proxychains4 — for proxy testing (required for Proxy Tester)
  • jq — for JSON parsing (required for Proxy Tester)

Install them via:

sudo apt install zenity cpufrequtils policykit-1 proxychains4 jq

How to run

git clone https://github.com/Mysteriza/Linux-Mint-Scripts.git && cd Linux-Mint-Scripts

Make the script executable:

chmod +x ./script-name.sh

Replace script-name.sh with the actual script you want to run.

Run the script:

./script-name.sh

About

Custom Linux Mint scripts for personal use on some of the available features of the Lenovo Ideapad Slim 3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages