Caffeinate no dependencies LB 6 Action

Sharing and discussing custom actions for LaunchBar
prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Caffeinate no dependencies LB 6 Action

Postby prenagha » Wed Jun 25, 2014 2:55 am

Keep your system awake using built-in /usr/bin/caffeinate. Give the action a string argument in the form of "2h" or "45m" or simply "2" (default in hours) to set the caffeinate/awake duration. Type enter without an argument on the action to see current caffeinate status and the option to stop the current caffeintation.

https://github.com/prenagha/launchbar#caffeinate





Orig idea and some code from https://github.com/shawnrice/alfred-2-c ... e-workflow

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Caffeinate no dependencies LB 6 Action

Postby prenagha » Mon Oct 27, 2014 3:39 pm

Now supports argument of "0" to mean stay awake forever

http://prenagha.github.io/launchbar/caffeinate.html

BT3680
Posts: 2
Joined: Sat Jan 17, 2015 9:47 pm

Re: Caffeinate no dependencies LB 6 Action

Postby BT3680 » Sat Jan 17, 2015 9:51 pm

Thank you so much for the great action.
I am just wondering if it can also stop Screen Saver when it is active?

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Caffeinate no dependencies LB 6 Action

Postby prenagha » Tue Sep 08, 2015 7:10 pm

Updated to correctly report a running caffeintate linked to a PID via -w option

http://prenagha.github.io/launchbar/caffeinate.html


Return to “LaunchBar Actions”

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests