From ff58329691acda31824f220c7a9b46064596efa9 Mon Sep 17 00:00:00 2001 From: Serg Date: Wed, 11 Apr 2018 13:47:09 +0700 Subject: [PATCH] displaysleep item --- MTMR/ItemsParsing.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MTMR/ItemsParsing.swift b/MTMR/ItemsParsing.swift index e2ab6f8..a131243 100644 --- a/MTMR/ItemsParsing.swift +++ b/MTMR/ItemsParsing.swift @@ -67,6 +67,7 @@ class SupportedTypesHolder { return (item: item, action: .none) }, "sleep": { _ in return (item: .staticButton(title: "☕️"), action: .shellScript(executable: "/usr/bin/pmset", parameters: ["sleepnow"]) ) }, + "displaySleep": { _ in return (item: .staticButton(title: "☕️"), action: .shellScript(executable: "/usr/bin/pmset", parameters: ["displaysleepnow"]) ) }, ] static let sharedInstance = SupportedTypesHolder()