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

Users browsing this thread: 1 Guest(s)
Long time nixers

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:

# 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'



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

Nice little tool; I look forward to testing it.