Skip to content

aldiipratama/pacsmart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ’ Pacsmart

The Ultimate Arcade Wrapper for Arch Linux Package Managers.

Transform your boring pacman, yay, or paru output into an engaging, gamified, and pixel-perfect arcade experience.

MIT License

Security Contributing Code Of Conduct


๐ŸŽฎ What is Pacsmart?

Pacsmart is not just a wrapper; it's a visual overhaul for your Arch Linux terminal. It intelligently wraps around your existing helper (paru, yay, or vanilla pacman) to provide:

  • Gamification: An RPG-style ranking system based on your installed packages ("Loot").
  • Visual Feedback: Replaces standard loading bars with "Waka-Waka" Pacman animations.
  • Automation: Built-in Garbage Collector (-C) and Lockfile Remover (--unlock).
  • Safety First: Sudo keep-alive mechanism prevents password prompt timeouts.

Professional Note: Under the hood, Pacsmart passes all flags directly to the backend. If a command works in pacman or yay, it works in Pacsmart.


๐Ÿ“ธ Visual Preview

  .--.   PACSMART v1.0
 / _.-'  (Initial Release)
 \  '-.  Automated & Informative
  '--'   

โ”Œโ”€โ”€ PLAYER PROFILE โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  User      : aldi                              โ”‚
โ”‚  System    : Arch Linux                        โ”‚
โ”‚  Engine    : paru                              โ”‚
โ”œโ”€โ”€ STATS โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Rank      : ARCH WIZARD                       โ”‚
โ”‚  Loot      : 520 / 1000                        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

>>> MISSION START: EATING (REPO) >>>
[sudo] password for aldi: 
แ—ง C โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข โ€ข แ—ฃ

โœจ Key Features

Feature Description
๐Ÿ’ Arcade UI High-contrast, pixel-perfect terminal UI with headers and icons.
๐Ÿ† Rank System Level up from Beginner to Legendary as you install more packages.
โš”๏ธ Universal Wrapper Supports -S, -Rns, -Qdt, and every other standard flag.
๐Ÿงน Auto-Clean dedicated -C flag to detect and remove orphan packages easily.
๐Ÿš‘ Medic Mode Fix db.lck errors instantly with --unlock.
โฉ Speedrun Skip animations with --fast for quick operations.

๐Ÿš€ Installation Guide

Pacsmart is a standalone Bash script. You don't need to compile anything.

Prerequisites

Ensure you have Arch Linux (or derivative) and at least one of these installed:

  • pacman (Default)
  • yay (Recommended)
  • paru (Recommended)

Method 1: Quick Install (Recommended)

Copy and paste this block into your terminal to download and install automatically:

# 1. Download the script
curl -O https://raw.githubusercontent.com/aldiipratama/pacsmart/main/pacsmart

# 2. Give it execute permission
chmod +x pacsmart

# 3. Move to your binary path (Requires Sudo)
sudo mv pacsmart /usr/local/bin/

# 4. Verify installation
pacsmart --version

Method 2: Manual / Git Clone

If you want to inspect the code or contribute:

git clone https://github.com/aldiipratama/pacsmart.git
cd pacsmart
chmod +x pacsmart
sudo cp pacsmart /usr/local/bin/

โšก Setup Aliases (The Pro Move)

To get the full "Arcade Experience", replace your standard commands with Pacsmart aliases.

Add the following lines to your shell configuration file (usually ~/.bashrc or ~/.zshrc):

# ~/.zshrc or ~/.bashrc

# Option A: Safety First (Use 'pac' keyword)
alias pac="pacsmart"

# Option B: Full Replacement (Override 'pacman')
# WARNING: This replaces the standard pacman command visually
alias pacman="pacsmart"
alias yay="pacsmart --use=yay"
alias paru="pacsmart --use=paru"

Apply changes:

source ~/.bashrc
# or
source ~/.zshrc

Now, just type pac -S neovim and enjoy the show! ๐Ÿ’


๐Ÿ—‘๏ธ Uninstallation

If you want to remove Pacsmart (but why would you?):

sudo rm /usr/local/bin/pacsmart
rm ~/pkg-installed.txt  # Removes your high score/rank data

๐Ÿ•น๏ธ Usage Guide

Pacsmart uses a "Hybrid Passthrough" system. It has its own special flags, but also accepts everything else.

๐Ÿ’ Main Quests

Command Action
pacsmart -S <pkg> Install package (Auto-detects Repo/AUR).
pacsmart -Syu Full System Upgrade (Level Up).
pacsmart -Rns <pkg> Remove package + dependencies (Clean Uninstall).

โš™๏ธ Automation & Specials

Command Action
pacsmart -C Garbage Collector: Find & remove orphans automatically.
pacsmart --unlock Medic: Removes /var/lib/pacman/db.lck if stuck.
pacsmart --fast Speedrun: Disable animations.
pacsmart --simulate Demo: Show package info without installing.

๐Ÿค Community & Contribution

We welcome "Player 2" to join the development!


โค๏ธ Credits & Inspiration

This project stands on the shoulders of giants.


Made with โค๏ธ and โ˜• by Muhamad Rinaldi Agus Pratama

About

Turn your Arch Linux package manager into a pixel-perfect Arcade Game. A gamified wrapper for Pacman, Yay, and Paru with RPG stats and automation.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages