power.talon (528B)
1 caffeinate start: user.system_path_command('killall caffeinate; setsid -f caffeinate -d && notify "Caffeinated" "Sleep disabled" talon') 2 caffeinate stop: user.system_path_command('killall caffeinate && notify "Sleepy" "Will sleep again" talon') 3 caffeinate status: user.system_path_command('if pgrep caffeinate; then notify "Caffeinated" "Not sleeping" talon; else notify "Sleepy" "Will sleep if given the chance" talon; fi') 4 battery: 5 speech.disable() 6 user.system_path_command('say "$(battery -p)%"') 7 speech.enable()