Jump to content

ddcctl with alfred

Recommended Posts

Hello there,


I want to create an Alfred workflow that allows me to switch my monitor inputs by calling ddcctl from alfred. I tried doing this by using a "terminal command", but it opens a terminal window which is not what I want. I then tried to use "run script" to run the same command but it just doesn't work. Any help?


The command is: ddcctl -d 1 -i 15

ddcctl: https://github.com/kfix/ddcctl

Share this post

Link to post
11 minutes ago, bruhmyguy630 said:

it just doesn't work


This is not a useful description of the problem. At a minimum, please post the error you're getting in Alfred's debugger.


Having little useful information, this is a complete guess, but I'd say it's likely that your problem is that ddcctl isn't on PATH when run from Alfred. You need to provide the full path to the program: /usr/local/bin/ddcctl

Edited by deanishe

Share this post

Link to post

I didn't know how to use the debugger. This was my error:


[23:36:55.587] ERROR: ddcctl with alfred[Run Script] /Users/username/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/432EB0B0-E8CD-41B3-BAAC-E6D6F583A215: line 1: ddcctl: command not found


It worked by providing the full path to the program, as suggested.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...