Jump to content

Alfred workflow for re-adjusting chrome windows zoom.

Recommended Posts

I am using my laptop with an external monitor. 
Laptop has a 720p screen (non-retina macbook pro) (lol) and external monitor's resolution is 2560x1440. 
So everytime I connect and disconnect my laptop, I gotta adjust the size of web pages. 
On my laptop I use zoom in 100% and on my external display I use 150%. 
Otherwise the texts are gonna be too small. 
Is there an alfred workflow can let me do this?
It is getting annoying having to adjust manually every single time. 

Share this post

Link to post

According to Chromes’s AppleScript dictionary, you can’t zoom windows with it, only check if windows are already or can be zoomed.

Two solutions:

The first method is more prone to errors (especially since to zoom to 150% you need to ⌘+ three times in a row) because it relies on faking keyboard presses. But the second method requires you to activate it on each page. Pick whichever is more convenient to your usage.

Share this post

Link to post
18 hours ago, vitor said:


I see. So, there is not a solution that can make all my chrome windows set to 150% automatically when connect to a external display. 

Then when disconnection happened, all page went back to 100%? 

Share this post

Link to post

If you want it to happen automatically when some event (plugging the monitor) occurs, then Alfred was never the way to go. By design, Alfred needs to be specifically called. That’s an explicit feature, not a limitation.

There may be a way to auto-detect when a monitor is plugged in, yes, but you should ask on Ask Different.

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