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

Link to comment
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
Link to comment

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...