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.
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
- OS: Debian 24.04
- Desktop Environment: XFCE 4.18
- Shell: Zsh
- Browser: Google Chrome (Latest Stable)
Note: Currently only tested and confirmed working on Debian 24.04 with XFCE 4.18. While it may work on other Linux distributions or desktop environments, the package is specifically developed and tested for this environment.
~/.config/google-chrome/ # Linux (Debian/Ubuntu)
# Install specific version from PyPI
pip install pybro-cli==0.1.7
# Or latest version
pip install pybro-cli
# Run the CLI
pybro
PyPI Package: https://pypi.org/project/pybro-cli/0.1.7/
# Run PyBro
pybro
# Select option 1
# Choose your work profile
# Enter: work-chrome
# Enter URL: https://workspace.google.com
pybro
# Create: dev-chrome
# Select Profile
# Enter URL: http://localhost:3000
- Open XFCE Settings β Keyboard β Application Shortcuts
- Click "Add"
- Example mappings:
Command: work-chrome Shortcut: Super + 1 Command: dev-chrome Shortcut: Super + 2
- Use XFCE's built-in tiling:
- Tile left:
Super + Left
- Tile right:
Super + Right
- Tile left:
- Example workflow:
Super + 1 # Launch work profile Super + Left # Tile to left Super + 2 # Launch dev profile Super + Right # Tile to right
- Shell Support: Built for Zsh, other shells may require syntax modifications
- Chrome Profiles: Uses standard Chrome profile structure at
~/.config/google-chrome/
- Desktop Environment: Optimized for XFCE 4.18 keyboard shortcuts and window management
- URL Support: Handles complex URLs with query parameters and special characters
- Shell Reload: May require manual
source ~/.zshrc
after creating new aliases
π§βπ» Chris Trauco - Senior Data Engineer @ OGx Consulting
π Connect with me:
- π GitHub: @iTrauco
- π¦ Twitter: @iTrauco
- πΌ LinkedIn: Chris Trauco
- π§ Email: dev@trau.co
π Project Link: https://github.com/iTrauco/pybro
Made with β€οΈ by Chris Trauco