diff --git a/README.md b/README.md index 26c98f7..b418496 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A simple [Alfred][1] workflow for quickly turning on/off Night Shift or setting 2. All further updates are handled automatically. ## Usage -In Alfred, type `night` followed by either `on`, `off` or a number between `0 - 100`. +In Alfred, type `night` followed by either `on`, `off` or a number between `0 - 100`. In the workflow, you can also set a custom hotkey for toggling.

diff --git a/src/info.plist b/src/info.plist index dd30c64..00dd12c 100755 --- a/src/info.plist +++ b/src/info.plist @@ -32,6 +32,32 @@ + 3C3CFF30-6B16-488A-9857-906830E71315 + + + destinationuid + AF238E1B-10A1-400B-B208-A113DEE64BC7 + modifiers + 0 + modifiersubtext + + vitoclose + + + + 6120D662-D5D2-429C-98A4-35BD5330BB1C + + + destinationuid + AF238E1B-10A1-400B-B208-A113DEE64BC7 + modifiers + 0 + modifiersubtext + + vitoclose + + + 8EFAE90E-D848-4B09-A515-58640594F92E @@ -71,6 +97,19 @@ + AF238E1B-10A1-400B-B208-A113DEE64BC7 + + + destinationuid + 197AE1CD-8228-4A3B-9079-EDC2445102ED + modifiers + 0 + modifiersubtext + + vitoclose + + + BA6F50E3-1A81-4138-A8FE-683D00A8A2E0 @@ -249,6 +288,67 @@ echo "{\"items\": [{\"title\": \"$title\", \"subtitle\": \"$subtitle\", \"arg\": version 1 + + config + + action + 0 + argument + 0 + focusedappvariable + + focusedappvariablename + + hotkey + 0 + hotmod + 0 + hotstring + + leftcursor + + modsmode + 0 + relatedAppsMode + 0 + + type + alfred.workflow.trigger.hotkey + uid + 6120D662-D5D2-429C-98A4-35BD5330BB1C + version + 2 + + + config + + concurrently + + escaping + 102 + script + # Make sure scary warning about maybe being malicious software does not pop up +chmod +x ./nightlight +xattr -d com.apple.quarantine ./nightlight + +# Actually change NightShift strength +full_status=$(./nightlight status) +status=${full_status%% *} +[[ $status == "off" ]] && ./nightlight on || ./nightlight off + scriptargtype + 0 + scriptfile + + type + 0 + + type + alfred.workflow.action.script + uid + AF238E1B-10A1-400B-B208-A113DEE64BC7 + version + 2 + config @@ -340,6 +440,27 @@ fi version 2 + + config + + argumenttype + 2 + keyword + night toggle + subtext + Disable/enable warm color spectrum + text + Toggle Night Shift + withspace + + + type + alfred.workflow.input.keyword + uid + 3C3CFF30-6B16-488A-9857-906830E71315 + version + 1 + config @@ -452,17 +573,21 @@ xattr -d com.apple.quarantine ./nightlight readme - Quickly turn NightShift on/off or set the color temperature to a custom value between 0-100. + Quickly turn Night Shift on/off or set the color temperature to a custom value between 0-100. A hotkey can also be set for toggling. + +Check the GitHub repository for more info or if you experience any issues: https://github.com/shmulvad/alfred-nightshift -Uses nightlight: https://github.com/smudge/nightlight +Behind the scenes, it uses nightlight: https://github.com/smudge/nightlight uidata 1856BA1E-8C67-4836-B011-01016F82716C + note + Run with on/off argument xpos 425 ypos - 280 + 630 197AE1CD-8228-4A3B-9079-EDC2445102ED @@ -471,9 +596,9 @@ Uses nightlight: https://github.com/smudge/nightlight note OneUpdater xpos - 650 + 685 ypos - 115 + 360 2D06ADA8-05E5-475A-94C3-2288BCB0BE2B @@ -482,8 +607,24 @@ Uses nightlight: https://github.com/smudge/nightlight ypos 45 + 3C3CFF30-6B16-488A-9857-906830E71315 + + xpos + 25 + ypos + 420 + + 6120D662-D5D2-429C-98A4-35BD5330BB1C + + xpos + 25 + ypos + 280 + 8EFAE90E-D848-4B09-A515-58640594F92E + note + Run with number xpos 425 ypos @@ -494,28 +635,37 @@ Uses nightlight: https://github.com/smudge/nightlight xpos 220 ypos - 380 + 730 9B53390E-04D4-47CC-873E-7324D569372E xpos 220 ypos - 240 + 590 + + AF238E1B-10A1-400B-B208-A113DEE64BC7 + + note + Toggle + xpos + 425 + ypos + 360 BA6F50E3-1A81-4138-A8FE-683D00A8A2E0 xpos 25 ypos - 350 + 700 C3FF67E9-59C2-46F9-BB90-003A0EBE328E xpos 25 ypos - 210 + 560 C5C4B0B0-CCF9-4632-AB68-AA8A67E519B9 @@ -525,10 +675,8 @@ Uses nightlight: https://github.com/smudge/nightlight 15 - variablesdontexport - version - 1.1.0 + 1.1.1 webaddress www.shmulvad.com