[Python] patron - a boss button to use while slacking! - Programming On Unix

Users browsing this thread: 3 Guest(s)
berk
Long time nixers
About

patron (fr. for "boss") is a little Python script that helps you run command sequences from a single button. You can use it to switch between workspaces, change volume, etc. Examples:

Code:
# Return to the first workspace when the button is clicked, and to the
# second one when clicked again
patron 'bspc desktop -f ^1' 'bspc desktop -f ^2' -l 'Work!' 'Slack!'

# Mute all sounds when the boss is near, and blast it off when he's away (FreeBSD)
patron 'mixer -s vol 0' 'mixer -s vol 100' -l 'mute!' 'PARTY TIME!!' -w 10

# Take a screenshot of the screen
patron -l 'Scrot' 'scrot unix.png'

Git

https://github.com/berkoz/patron



Hope it will be useful for you!
Dritz
Long time nixers
Cool, patrón, means the same thing in Spanish.

Nice little tool; I look forward to testing it.