Re: Problems with autogrouping
David Woodfall <[email protected]> Tue, 14 Nov 2017 14:28:49 +0000
| Newsgroups | gmane.comp.window-managers.fluxbox.user |
|---|---|
| Message-ID | <20171114142848.GF12474@Blackswan> |
You may find this a bit faster. It's $mod+left/right, the same as
plain linux consoles. Needs wmctrl. It loops back around whichever way
you go:
# Bind $mod+left/right to switch workspaces
bindcode $mod+113 exec --no-startup-id /home/david/scripts/swdesk-left
bindcode $mod+114 exec --no-startup-id /home/david/scripts/swdesk-right
##########
#!/bin/sh
# swdesk-left
CURD=$(wmctrl -d | grep "*" | cut -d' ' -f1)
TOT=$(($(wmctrl -d | wc -l)-1))
ND=$(($CURD-1))
if [ $ND -lt 0 ]; then
ND=$TOT
fi
wmctrl -s $ND
##########
##########
#!/bin/sh
# swdesk-right
CURD=$(wmctrl -d | grep "*" | cut -d' ' -f1)
TOT=$(($(wmctrl -d | wc -l)-1))
ND=$(($CURD+1))
if [ $ND -gt $TOT ]; then
ND=0
fi
wmctrl -s $ND
##########
>Hi David,
>
>Yeah. I've migrated to i3 to give it a try and never changed back, but I
>still do care about Fluxbox development because it was my main Window
>Manager since a long time ago.
>
>BTW, I've been switching between workspaces through Meta Key + numbers.
>
>Best!
>
>_______________________________
>Rafael B. Tauil
>Ruby and Front-end developer
>Homebrewer - untappd.com/gattobier
>
>On Tue, Nov 14, 2017 at 11:52 AM, David Woodfall <[email protected]>
>wrote:
>
>> Rafael,
>>
>> I will certainly let you know if I find out anything.
>>
>> I've been trying out i3 for a couple of weeks now, and as much as I
>> like fluxbox, which I've been using for years, I find i3 does some
>> things a bit better. Although it's a tiling window manager, it's
>> possible to set it up to use tabbing by default. And all you need to
>> do is set which workspace an application should open on and it tabs
>> with no further effort on the user's part.
>>
>> There are some things that fluxbox does better, like being able to
>> bring up a window menu with a keybind or mouse to remember window
>> positions and properties etc. With i3 all there is is config editing,
>> and there are no commands to go workspace left/right, so I had to make
>> a couple of binds with some shells scripts using wmctrl to do that.
>> But this grouping problem is a show stopper now that I need to tab
>> windows together.
>>
>> I'm hoping that one of the devs might see this and provide some
>> insight.
>>
>> David
>>
>>
>> Hi David,
>>>
>>> I had that problem too. Never could figure it out how to solve this. I
>>> would really appreciate if you could share the solution in case you find
>>> one.
>>>
>>> Thanks,
>>>
>>> _______________________________
>>> Rafael B. Tauil
>>> Ruby and Front-end developer
>>> Homebrewer - untappd.com/gattobier
>>>
>>> On Tue, Nov 14, 2017 at 2:50 AM, David Woodfall <[email protected]>
>>> wrote:
>>>
>>> I have been trying to setup some autogrouping. I want firefox and
>>>>
>>>>> chromium to group on workspace 1.
>>>>>
>>>>> This is what I have in my apps file:
>>>>>
>>>>> [app] (name=Navigator) (class=Firefox) (role=browser)
>>>>> [Workspace] {1}
>>>>> [Tab] {yes}
>>>>> [Maximized] {yes}
>>>>> [Close] {yes}
>>>>> [end]
>>>>> [app] (name=chromium-devel) (class=Chromium-devel) (role=browser)
>>>>> [Workspace] {1}
>>>>> [Tab] {yes}
>>>>> [Maximized] {no}
>>>>> [Close] {yes}
>>>>> [end]
>>>>> [group]
>>>>> [app] (class=Chromium-devel)
>>>>> [Workspace] {1}
>>>>> [app] (class=Firefox)
>>>>> [Workspace] {1}
>>>>> [end]
>>>>>
>>>>> They go to the right workspace, but they won't tab.
>>>>>
>>>>> I have also had problems with tor browser, in that if I try to save
>>>>> any options using the windowmenu, it removes itself from [group]
>>>>>
>>>>> Am I missing something here?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> Dave
>>>>>
>>>>>
>>>> I'm using fluxbox from git clones around 26th Oct. I just did another
>>>> clone to see if there's any difference.
>>>>
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>> _______________________________________________
>>>> Fluxbox-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>>>>
>>>>
>> ------------------------------------------------------------
>>> ------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>
>>
>> _______________________________________________
>>> Fluxbox-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Fluxbox-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>>
>------------------------------------------------------------------------------
>Check out the vibrant tech community on one of the world's most
>engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>_______________________________________________
>Fluxbox-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/fluxbox-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot