ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.76k stars 488 forks source link

Add some visual cue of what desktop is active #1007

Open bfagundez opened 4 years ago

bfagundez commented 4 years ago

Is your feature request related to a problem? Please describe. I have several screens and when I cycle through them sometimes is hard to tell which one has the focus and which window is focused.

Describe the solution you'd like It would be nice to have some effect that shows where your "cursor" is. What desktop has the window active for example.

Describe alternatives you've considered One short way to do it maybe is to display a little banner like it does when you cycle through layouts.

Thanks!

booherbg commented 4 years ago

This bar is for yabai, but I'm using it with amethyst and it works great. It just shows what spaces are active, regardless of the WM. Works across monitors too (even though I can't get amethyst to do the same...) https://github.com/somdoron/spacebar

wilsongoode commented 4 years ago

This bar is for yabai, but I'm using it with amethyst and it works great. It just shows what spaces are active, regardless of the WM. Works across monitors too (even though I can't get amethyst to do the same...) https://github.com/somdoron/spacebar

@booherbg Could you share your setup? I'm interested in getting something like this working as well!

muhammad-saleh commented 4 years ago

I got this working! Regarding the top status bar to indicate which desktop is active @booherbg suggestion for spacebar worked perfectly fine for me:

image

And as for the active window border, the maker of yabai has been kind enough to port the code responsible of this out of yabai and it doesn't need you to disable SIP: https://github.com/koekeishiya/limelight Just run make (the build took a few seconds) and a bin file will be generated and follow the other instructions there

Create a config file for limelight in: ~/.config/limelight/limelightrc

The one I used:

#!/usr/bin/env sh

limelight -m config width            2
limelight -m config radius           0
limelight -m config placement        interior
limelight -m config active_color     0xff00ff00
limelight -m config normal_color     0xff555555

echo "limelight configuration loaded.."
image

Hope that this works for you!

donny-son commented 2 years ago

Using yabai without window management capabilities works for me.

Configure your ~/.yabairc to the following way.

# Disable window management
  yabai -m config layout float
  yabai -m rule --add app="^.*$" manage=off

# Borders
  yabai -m config window_border on
  yabai -m config window_border_width 10
  yabai -m config active_window_border_color 0xff00ffff
  yabai -m config insert_feedback_color 0XFF50FA7B