thanks. I had to import hook not hooks but it worked!

On Sun, 28 Feb 2021 at 09:56, Tycho Andersen <[email protected]> wrote:

> On Sun, Feb 28, 2021 at 06:52:21AM -0800, yobleck wrote:
> > I'd like to run some nvidia-settings and picom related commands on
> startup
> > but not when pressing win/meta + control + r
> > Thanks.
>
> Yes, use
>
> @hooks.subscribe.startup_one
> def foo():
>     print("I am only called once")
>
> vs.
>
> @hooks.subscribe.startup
> def foo():
>     print("I am called on every restart")
>
> see:
>
> http://docs.qtile.org/en/latest/manual/ref/hooks.html
>
> Tycho
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/ItdNSSF7vCI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/20210228145631.GA421111%40cisco
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/CAEJ5Y8_ndivcrXz5f%2BcYsnPLrp37QnXMPom65DzNrH%2BxGpbY2Q%40mail.gmail.com.

Reply via email to