LUA – How to focus on the client in Awesome WM

I have a client instance that I should follow. I found that the only way to follow a client:

> focus.bydirection(dir,c)-press Focus on the client in a given direction.
> focus.byidx(i,c) – focus on the client by relative index.
> focus.filter(c) – filter out the windows that we don’t want to deal with.
>focus . focus.history.add(c) – update the client focus history.
> focus.history.delete(c) – delete the client from the focus history.
> focus.history.get(screen ,idx) – Get the latest focused client
>The screen in the history. focus.history.previous() – Focus the previous client in the history.

But if I already have An example, how to pay attention to customers?

You should try:

< pre>client.focus = c
c:raise()

c is the client you want to follow.

I should An example of the client to follow. I found that only the following methods can follow the client:

> focus.bydirection(dir,c) – focus the client in a given direction.
> focus.byidx (i,c) – focus the client by relative index.
> focus.filter(c) – filter out the windows we don’t want to deal with
>focus. focus.history.add(c) – update the focus of the client History.
> focus.history.delete(c) – Delete the client from the focus history.
> focus.history.get(screen,idx) – Get the latest focus.
> The screen in history. focus.history.previous() – Focus the previous client in the history.

But if I already have an instance, how do I follow the customer?

You should try:

client.focus = c
c :raise()

c is the client you want to follow.

Leave a Comment

Your email address will not be published.