Giter VIP home page Giter VIP logo

Comments (9)

arcticicestudio avatar arcticicestudio commented on May 20, 2024

Hi @fmlatghor 👋

This theme only defines colors but no code at all. It makes use of the theming API provided by Alacritty to create themes via YAML definitions. The described behavior sounds like this is either a bug in Alacritty, but more like this is a desired effect that could be customized via configurations.

from alacritty.

 avatar commented on May 20, 2024

Hi @fmlatghor wave

This theme only defines colors but no code at all. It makes use of the theming API provided by Alacritty to create themes via YAML definitions. The described behavior sounds like this is either a bug in Alacritty, but more like this is a desired effect that could be customized via configurations.

This happens exactly when I use this theme and only this theme, I don't really know what to tell you.

from alacritty.

 avatar commented on May 20, 2024

I could try again to see if it happens, but eh, it might not change anything.

from alacritty.

arcticicestudio avatar arcticicestudio commented on May 20, 2024

Are you sure that it actually really requests the OS to set the active window to Alacritty or is it just the visual perception?
It might be that you think that it takes focus, but in fact it simply uses the dim colors defined by the theme, including the dimmed foreground color. As soon as the terminal window actually gets the focus again, or any process sends a signal to the terminal that implies a activation, the normal colors are rendered by Alacritty.

The dim color were introduced in #12 with a preview of the visual style added as comment.

Normal

Dimmed

Could you also please post some details about your system, like the OS, to make it easier to identify the problem.

from alacritty.

 avatar commented on May 20, 2024

Are you sure that it actually really requests the OS to set the active window to Alacritty or is it just the visual perception?
It might be that you think that it takes focus, but in fact it simply uses the dim colors defined by the theme, including the dimmed foreground color. As soon as the terminal window actually gets the focus again, or any process sends a signal to the terminal that implies a activation, the normal colors are rendered by Alacritty.

The dim color were introduced in #12 with a preview of the visual style added as comment.

Normal

Dimmed

Could you also please post some details about your system, like the OS, to make it easier to identify the problem.

No it does, when I run sleep 3 | tput bel, the window pops up if I click on something else.

from alacritty.

arcticicestudio avatar arcticicestudio commented on May 20, 2024

Could you please post some details about your setup, like the OS you run, your shell and Alacritty version.
Also, if possible, a screen record would be nice to get a better inside into what the problem looks like. You can simply attach the video to a comment in this issue since GitHub finally shipped video upload and inline rendering support some weeks ago.

I've tried to reproduce the behavior, using sleep 3 | tput bel as trigger command, but it works fine in multiple scenarios.
I use the currently latest Alacritty version 0.7.2 and switched to multiple color schemes from Alacritty's wiki, but none of them ever hijacked the OS window focus.

  • With ZSH and Bash on Arch Linux using…
    • GNOME as desktop environment with the default Mutter rendering engine.
    • sway as rendering engine and window manager.
    • awesomeWM as window manager.
  • With ZSH and Bash on macOS using…
    • the native rendering engine.
    • Rectangle as window manager.
    • yabai as window manager.

To be true, I've no more idea other than referring to search again through the issues in the Alacritty repository and open a new one if it has not been reported yet and if you can reproduce the problem in a stable way.

from alacritty.

 avatar commented on May 20, 2024

Could you please post some details about your setup, like the OS you run, your shell and Alacritty version.

I'll add this to the first comment.

Also, if possible, a screen record would be nice to get a better inside into what the problem looks like. You can simply attach the video to a comment in this issue since GitHub finally shipped video upload and inline rendering support some weeks ago.

Ok.

I've tried to reproduce the behavior, using sleep 3 | tput bel as trigger command, but it works fine in multiple scenarios.
I use the currently latest Alacritty version 0.7.2 and switched to multiple color schemes from Alacritty's wiki, but none of them ever hijacked the OS window focus.

* With _ZSH_ and _Bash_ on Arch Linux using…
  
  * [GNOME](https://www.gnome.org) as desktop environment with the default [Mutter](https://gitlab.gnome.org/GNOME/mutter) rendering engine.
  * [sway](https://github.com/swaywm/sway) as rendering engine and window manager.
  * [awesomeWM](https://github.com/awesomeWM/awesome) as window manager.

* With _ZSH_ and _Bash_ on macOS using…
  
  * the native rendering engine.
  * [Rectangle](https://github.com/rxhanson/Rectangle) as window manager.
  * [yabai](https://github.com/koekeishiya/yabai) as window manager.

To be true, I've no more idea other than referring to search again through the issues in the Alacritty repository and open a new one if it has not been reported yet and if you can reproduce the problem in a stable way.

from alacritty.

 avatar commented on May 20, 2024

It's not happening anymore. Looks like it was something in my config that was causing it. I will be less quick to open an issue next time.

from alacritty.

arcticicestudio avatar arcticicestudio commented on May 20, 2024

Nice to see that it works for you now 👍🏼

from alacritty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.