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

Uploaded Source

Built Distribution

pybro_cli-0.1.6-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pybro_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 14.3 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.6.tar.gz
Algorithm Hash digest
SHA256 32ea717df2697a11c07fd876925234db70beca58b85c1667ac87b888039b5251
MD5 f63d04510d8a22830eea364477b8f174
BLAKE2b-256 f0a6cb8df91f017467c5266664c29e882743ef19154385fa36926a424866de4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pybro_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 16.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 30e8374c67186e25b76a50cde2220cfad72a22bca4fa464a0eb22c479efce118
MD5 a2f04156227ee02318ff018abd2b735f
BLAKE2b-256 184e86eabc7775768e00c3be954671d19b48ac10a0bfd496924997efd0ba27e6

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