Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

Highlight active window

Open ianyh opened this issue 10 years ago • 28 comments

Should be pretty straightforward and would certainly save me a lot of headache. Could do something like https://github.com/puffnfresh/Honer.app.

Trello Card

ianyh avatar Mar 02 '14 00:03 ianyh

:+1: this would be great!

simon-weber avatar Mar 02 '14 00:03 simon-weber

I'd like this too :D.

durdn avatar Apr 03 '14 06:04 durdn

:+1:

tuananh avatar Aug 25 '14 13:08 tuananh

+1 to this request.

gregspurrier avatar Oct 23 '14 23:10 gregspurrier

If you guys vote on the trello card it's a lot easier to track +1s. :)

ianyh avatar Oct 24 '14 11:10 ianyh

:+1: (and voting on the trello card!)

nathanleiby avatar Nov 24 '14 19:11 nathanleiby

I've used Honer in the past, but had to stop because of this bug:

  1. Cmd+Shift+4 to take a partial screenshot
  2. Hit 'space' to switch to window-locking mode
  3. Click on a window you want to take a screenshot of
  4. Screenshot is only of Honer overlay, essentially giving you a completely blank screenshot with an outline at the edge

I understand this is due to Honer being its own application that draws a lay on top of other windows, but if there was a way around this, it would be much appreciated.

mrjnox avatar Oct 09 '15 16:10 mrjnox

The screenshot thing is something I hadn't considered. Thanks!

ianyh avatar Oct 09 '15 23:10 ianyh

@ianyh @mrjnox I started to experiment with another tilling window manager for macOS on one of my computers at work and found this handy little script: https://gist.githubusercontent.com/dominiklohmann/20973dbe7c78870e6026/raw/fea8c78f637d13c57ac54c3f15bf32e64d8f399a/screencapture

It disables the border right before the screenshot is taken and then reenables it. Should probably be applicable here as well.

Hultner avatar Jul 05 '16 16:07 Hultner

I believe that script only works as a result of how kwm does keyboard shortcuts. I believe it hooks in at a lower level than Amethyst does. It's the same level that the system uses before it dispatches events so it actually prevents the system from getting the keyboard events if kwm is registered to handle them. There are pros and cons to that approach. The primary downside in my opinion is that it silently overrides system commands, but that does have the upside of effectively being able to rewrite system commands, which is what that script is doing. It's taking the default system commands for capturing screenshots and overriding them to point towards a wrapper that shuts off the window highlight for the screenshot.

ianyh avatar Jul 05 '16 19:07 ianyh

I had an idea for this. Instead of one window with a border we can use 4 windows, one for each edge.

ianyh avatar Jul 29 '17 23:07 ianyh

FWIW, I just installed honer (because I rarely if ever use windowed screenshotting, so focus highlighting was more important) and I tested out a windowed screenshot - it works as expected. macOS Mojave.

2018-10-31 23 47 53

deecewan avatar Oct 31 '18 13:10 deecewan

Looking at Honer's code it looks like screenshots (at least as of Mojave) are smart enough to ignore space with windows that have nothing drawn in them. This should be workable now.

ianyh avatar Nov 25 '18 23:11 ianyh

Instead of drawing a border, one could also go with an approach like https://hazeover.com/, and dim unfocused windows. Presumably the amount of dimming is configurable.

cdisselkoen avatar Feb 24 '19 22:02 cdisselkoen

I personally wouldn't want that. My usual use case for wanting to know which window is focused is that I can find where my text input is going rather than wanting to literally be focused on it.

ianyh avatar Feb 24 '19 22:02 ianyh

I would very much appreciate this. For now there is NeuHoner (https://macplus-software.com/downloads/NeuHoner.dmg) which is free and does not blur unfocused windows. Unfortunately that app is not open source and is not even configurable (red highlight only, etc).

I've been using Amethyst ever since my move to MacOS about 2 months ago and this is definitely my most wanted feature.

jesse-troy avatar Apr 28 '20 17:04 jesse-troy

@jesse-troy I think that NeuHoner is sketchy! it's not open source and there have been demands on Honer's repo to release the source code but no one is replying Please check here: https://github.com/puffnfresh/Honer.app/issues/18

Please check here for an alternative solution: https://github.com/ianyh/Amethyst/issues/1007

muhammad-saleh avatar Jul 23 '20 06:07 muhammad-saleh

limelight is broken on macos Monterey. Any plan to do this as part of amethyst? @ianyh

dlvhdr avatar Nov 11 '21 16:11 dlvhdr

Any update in this feature?

thewinger avatar Apr 19 '23 09:04 thewinger

I'm also interested in the status of this feature

nbbaier avatar Apr 23 '23 19:04 nbbaier

Interested in this feature as well

hthmkhlf avatar Jun 23 '23 03:06 hthmkhlf

I have created a border system for macOS Sonoma you could try: https://github.com/FelixKratz/JankyBorders

FelixKratz avatar Nov 08 '23 11:11 FelixKratz

I have created a border system for macOS Sonoma you could try: https://github.com/FelixKratz/JankyBorders

Do you have any screenshots of what it looks like?

Hultner avatar Nov 08 '23 11:11 Hultner

Do you have any screenshots of what it looks like?

Screenshot 2023-11-02 at 22 04 18

Might add it to the README of the repo later.

FelixKratz avatar Nov 08 '23 11:11 FelixKratz

Do you have any screenshots of what it looks like?

Screenshot 2023-11-02 at 22 04 18 Might add it to the README of the repo later.

That looks really good!

Hultner avatar Nov 08 '23 12:11 Hultner

I have created a border system for macOS Sonoma you could try: https://github.com/FelixKratz/JankyBorders

Wow, that's amazing, do you think it could work on Ventura @FelixKratz??

gabystdev avatar Feb 19 '24 07:02 gabystdev

There are several reports that it works on Ventura: https://github.com/FelixKratz/JankyBorders/issues/68

FelixKratz avatar Feb 19 '24 22:02 FelixKratz

If there could be a way to execute a function whenever a new window is focused, we may end up with a good combination of both tools by doing something like this for temporal window highlight:

focusHook: |
    borders active_color=0xffff0000
    sleep 0.3
    borders active_color=0x000000

roeeyn avatar Feb 24 '24 20:02 roeeyn