This repository contains a collection of my personal scripts. I use them under Manjaro.
TODO: Complete documentation.
Own backup script of HOME (and some other config files). It creates a .tar.7z archive (can also be encrypted).
Cleaning script for arch-based systems: It contains the following cleaning components:
- "Pruning old package cache (paccache)"
- "Orphan Package Removal"
- "Cleaning thumbnails"
- "Cleaning var/logs"
- "Purging trash"
Cleaning script for debian-based systems: It contains the following cleaning components:
- "Purging apt cache (autoclean & clean)"
- "Removing unused apt packages (autoremove)"
- "Purging old kernels"
- "Localepurge"
- "Purging residual configs"
- "Delete unnecessary (orphaned) packages"
- "Cleaning thumbnails"
- "Cleaning var/logs"
- "Purging trash"
Shows the HDD usage. Using df -H command.
Mounts and starts (with systemctl) a NFS. Configuration parameters:
MOUNT_OPTIONS- Mounts options of for the exports fileMOVIES_DISK_PATH- Folder pathTVSHOWS_DISK_PATH- Folder pathMOVIES_NFS_PATH- NFS pathTVSHOWS_NFS_PATH- NFS pathEXPORTS_FILE_PATH- Path of the exports config (/etc/exports)
Stops, unmounts and removes the NFS. Configuration parameters:
MOVIES_STRING- NFS pathTVSHOWS_STRING- NFS path
Uses the xinput command to toggle the touchpad. Additionally a notify-send is sent with a notification of the current touchpad state.
Runs a trim command for a SSD drive. There are two configuration parameter:
LOG- The path where the log should be saved. Default is/var/log/trim.logDEVS- a list of devices, which will be affected by the trim command. Drive-list is separeted by spaces. For example"/ /home"will check the mounted root drive "/" and the "/home" drive. For every driver a notification will be displayed.
A simple script for my arch system, which runs grub-mkconfig -o /boot/grub/grub.cfg "$@".
A script that upgrades Universal Media Server.