Jump to content

Change themes via shell/terminal


amparose

Recommended Posts

1 hour ago, amparose said:

I haven't been able to find any info on this but still hopeful: is there a way to change Alfred themes via a terminal command?

 

You can set the theme via AppleScript. I wrote a workflow for myself some time ago for that.

To do it via a shell script, you can do something like this:

 

readonly your_literal_theme_name="$1"
cat <<EOF | osascript
	tell application id "com.runningwithcrayons.Alfred"
		set theThemeName to "$your_literal_theme_name"
 		set theme theThemeName
	end tell
EOF

 

The argument is the name of your theme.

Link to comment
Share on other sites

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...