Skip to main content

🔥 PyBro CLI - A Collection of Python Dev Tools for Debian 24.04

Project description

🔥 PyBro CLI

A Python-based CLI tool for managing Google Chrome profiles in Linux. Born from the need to quickly switch between Chrome profiles using keyboard shortcuts, especially when paired with XFCE's tiling window management. Create custom aliases to launch Chrome with specific profiles and URLs, then bind them to keyboard shortcuts for lightning-fast workflow management.

🚀 Why PyBro?

I built this tool because I needed a way to:

  • Quickly switch between different Chrome profiles (work, personal, client projects)
  • Launch specific URLs in the correct profile
  • Bind these actions to keyboard shortcuts in XFCE
  • Integrate with tiling window management
  • Avoid clicking through Chrome's profile menu every time

💻 System Requirements

Tested Environment

  • OS: Debian 24.04
  • Desktop Environment: XFCE 4.18
  • Shell: Zsh
  • Browser: Google Chrome (Latest Stable)

📦 Quick Start on Debian

# 1. Install pip if not already installed
sudo apt update
sudo apt install python3-pip

# 2. Install PyBro CLI
pip install pybro-cli

# 3. Run
pybro

# 4. After creating aliases, reload your shell
source ~/.zshrc

Default Chrome Profile Path

~/.config/google-chrome/  # Linux (Debian/Ubuntu)

🎯 Example Workflows

1. Work Profile Setup

# Create work profile alias
pybro
# Select option 1
# Choose your work profile
# Enter: work-chrome
# Enter: https://workspace.google.com

# Test it
work-chrome  # Opens Chrome with work profile and Workspace

2. Client Project Setup

# Create client project alias
pybro
# Select option 1
# Choose client profile
# Enter: client1-chrome
# Enter: https://client1.myproject.com

# Test it
client1-chrome  # Opens Chrome with client profile and project

3. XFCE Keyboard Shortcuts

  1. Open XFCE Settings → Keyboard → Application Shortcuts
  2. Click "Add"
  3. Example shortcuts:
    # Command: work-chrome
    # Shortcut: Super + 1
    
    # Command: client1-chrome
    # Shortcut: Super + 2
    

4. Tiling Management Example

  1. Create profile aliases for common layouts:

    # Development setup
    pybro
    # Create: dev-chrome
    # URL: http://localhost:3000
    
    # Documentation
    pybro
    # Create: docs-chrome
    # URL: https://docs.myproject.com
    
  2. Set up XFCE tiling shortcuts:

    • Tile left: Super + Left
    • Tile right: Super + Right
  3. Create workflow shortcuts:

    # Development view
    Super + 1  # Launch dev-chrome
    Super + Left  # Tile to left
    
    # Documentation view
    Super + 2  # Launch docs-chrome
    Super + Right  # Tile to right
    

🛠 Development Setup

# Clone the repository
git clone https://github.com/iTrauco/pybro.git
cd pybro

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate

# Install in editable mode
pip install -e .

# Run locally
pybro

📝 Notes

  • Shell: Built for Zsh, should work with Bash (might need tweaks)
  • OS: Tested on Debian 24.04, can work on macOS with path modifications
  • Profiles: Scans ~/.config/google-chrome/ by default

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybro_cli-0.1.3.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

pybro_cli-0.1.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pybro_cli-0.1.3.tar.gz.

File metadata

  • Download URL: pybro_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pybro_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d18256fd5d2505055b6626091f08c5595fcbcc576f56088073b8ecb4bd747aaf
MD5 b01fa8f2a6bd3e2e473beeea225bad77
BLAKE2b-256 116a285acd92e78e74faea1941a021fb4d68f8edb3db31e2247b82b30be32618

See more details on using hashes here.

File details

Details for the file pybro_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pybro_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pybro_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 13abbf2f28ebc3b56a19d24100f5acc97b1b4bc8737462ac3b7a7371aa261bcf
MD5 a15c28f1a9663ee5826a73d892da9deb
BLAKE2b-256 cf0bc8c04d2e490a619fbb8c258e86186cc41c763700f436d0d6f7bc631fc07f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page