You are not logged in.

#1 2011-02-22 18:36:13

helloworld1
Member
Registered: 2010-12-26
Posts: 72

[SOLVE] How to move a client to another desktop in Awesome

I am new to Awesome. Anyone can tell me how to move a client window to another desktop? Thanks!

Last edited by helloworld1 (2011-02-24 03:12:08)

Offline

#2 2011-02-22 18:44:50

greyscale
Member
From: Sweden
Registered: 2011-01-02
Posts: 59

Re: [SOLVE] How to move a client to another desktop in Awesome

If you mean moving a window (client) to another tag then use shift+mod4+1 if you want to move it to the first tag.
Just change the number to move it to another one.

Our if you for some (strange) reason want to use the mouse, focus the client then mod4+left click on thew tag you want to
move it to.


A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub

Offline

#3 2011-02-22 20:09:33

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: [SOLVE] How to move a client to another desktop in Awesome

greyscale wrote:

If you mean moving a window (client) to another tag then use shift+mod4+1 if you want to move it to the first tag.
Just change the number to move it to another one.

Our if you for some (strange) reason want to use the mouse, focus the client then mod4+left click on thew tag you want to
move it to.

Thank you. The first way works. It didn't automatic change the desktop though. The mouse way doesn't work.

Offline

#4 2011-02-23 17:22:39

greyscale
Member
From: Sweden
Registered: 2011-01-02
Posts: 59

Re: [SOLVE] How to move a client to another desktop in Awesome

Hi.

I checked both my system default rc.lua and the one in awesome's git-tree and both have it.

So check your rc.lua and look at the following section

mytaglist.buttons = awful.util.table.join(
                    awful.button({ }, 1, awful.tag.viewonly),
                    awful.button({ modkey }, 1, awful.client.movetotag),
                    awful.button({ }, 3, awful.tag.viewtoggle),                                                                                                                                                                                                                                                             
                    awful.button({ modkey }, 3, awful.client.toggletag),
                    awful.button({ }, 4, awful.tag.viewnext),
                    awful.button({ }, 5, awful.tag.viewprev)
                    )

it's the line

awful.button({ modkey }, 1, awful.client.movetotag),

your looking for.


A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub

Offline

#5 2011-02-23 17:51:07

greyscale
Member
From: Sweden
Registered: 2011-01-02
Posts: 59

Re: [SOLVE] How to move a client to another desktop in Awesome

Yes it only moves the client to the new tag.

Think most people use it like I do to move a window that I'm currently not using to another tag to free up screen-space
and there for it doesn't follow the client window.

But as with the most things in awesome if it ain't right for you, just change it wink

Open up your rc.lua again and look for this section

awful.key({ modkey, "Shift" }, "#" .. i + 9,                                                                                                             
function ()                                                                                                                                                 
    if client.focus and tags[client.focus.screen][i] then
        awful.client.movetotag(tags[client.focus.screen][i])
    end 
end),

these changes make awesome "follow" the client when you move it to another tag

awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
    if client.focus and tags[client.focus.screen][i] then
        awful.client.movetotag(tags[client.focus.screen][i])
        local screen = mouse.screen
        if tags[screen][i] then
            awful.tag.viewonly(tags[screen][i])
        end 
    end                                                                                                                                                     
end),

Might be that there are better ways to do it, I haven't done that many customizations to my rc.lua or read all of the documentation
but worked in my quick little test so might be a starting point at least.


A tiling window manager simply manages your windows, not just letting you have em
:: Configs etc @GitHub

Offline

#6 2011-02-24 03:11:46

helloworld1
Member
Registered: 2010-12-26
Posts: 72

Re: [SOLVE] How to move a client to another desktop in Awesome

Thank you! It works very well now!

Offline

Board footer

Powered by FluxBB