nixers
[Python] patron - a boss button to use while slacking! - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics)
+--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix)
+--- Thread: [Python] patron - a boss button to use while slacking! (/Thread-Python-patron-a-boss-button-to-use-while-slacking)


[Python] patron - a boss button to use while slacking! - berk - 21-06-2014

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!


RE: [Python] patron - a boss button to use while slacking! - Dritz - 21-06-2014

Cool, patrĂ³n, means the same thing in Spanish.

Nice little tool; I look forward to testing it.