Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight active window #127

Open
ianyh opened this issue Mar 2, 2014 · 28 comments
Open

Highlight active window #127

ianyh opened this issue Mar 2, 2014 · 28 comments

Comments

@ianyh
Copy link
Owner

ianyh commented Mar 2, 2014

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

@simon-weber
Copy link

👍 this would be great!

@durdn
Copy link

durdn commented Apr 3, 2014

I'd like this too :D.

@ianyh ianyh modified the milestones: 0.8.5, 0.9 Apr 3, 2014
@tuananh
Copy link

tuananh commented Aug 25, 2014

👍

@ianyh ianyh modified the milestone: 0.9 Sep 16, 2014
@gregspurrier
Copy link

+1 to this request.

@ianyh
Copy link
Owner Author

ianyh commented Oct 24, 2014

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

@nathanleiby
Copy link

👍 (and voting on the trello card!)

@mrjnox
Copy link

mrjnox commented Oct 9, 2015

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.

@ianyh
Copy link
Owner Author

ianyh commented Oct 9, 2015

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

@Hultner
Copy link

Hultner commented Jul 5, 2016

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

@ianyh
Copy link
Owner Author

ianyh commented Jul 5, 2016

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
Copy link
Owner Author

ianyh commented Jul 29, 2017

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

@deecewan
Copy link
Contributor

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

@ianyh
Copy link
Owner Author

ianyh commented Nov 25, 2018

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.

@cdisselkoen
Copy link
Contributor

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.

@ianyh
Copy link
Owner Author

ianyh commented Feb 24, 2019

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.

@jesse-troy
Copy link

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.

@muhammad-saleh
Copy link

muhammad-saleh commented Jul 23, 2020

@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:
puffnfresh/Honer.app#18

Please check here for an alternative solution:
#1007

@dlvhdr
Copy link

dlvhdr commented Nov 11, 2021

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

@thewinger
Copy link

Any update in this feature?

@nbbaier
Copy link

nbbaier commented Apr 23, 2023

I'm also interested in the status of this feature

@hthmkhlf
Copy link

Interested in this feature as well

@FelixKratz
Copy link

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

@Hultner
Copy link

Hultner commented Nov 8, 2023

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?

@FelixKratz
Copy link

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.

@Hultner
Copy link

Hultner commented Nov 8, 2023

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!

@gabystdev
Copy link

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

@FelixKratz
Copy link

There are several reports that it works on Ventura: FelixKratz/JankyBorders#68

@roeeyn
Copy link

roeeyn commented Feb 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests