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.4.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybro_cli-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 66bc3f98260eff3d6f3cd24dbf86fa5d243b4546f6af51d8f7f650f97c8b62d5
MD5 9e99f02d0172e1f093ed5d83b8f98ca4
BLAKE2b-256 a34ca7ceff8a044ba96390a0c7a85f13178fb8bad84625d3a727ca820af69bff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybro_cli-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b195ca75f8b355b01315ab2481618f6ddcd254e9add0eea3d3f96e4d6fbca97e
MD5 64edd1d3470f5c16658a65296914e5bf
BLAKE2b-256 480e9a682f6c79321e260589087245f9574420256aa4d865313f5ed1dce42718

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