Hello,
there is patch, that adds new ability to Icewm. I never
see this in
other windowmanager. Windowmaker can switch to next 10
desktops, but
this is more usable.
Patch also adds line for vim at end of each source
file. It sets
indenting and tabsize to 4 chars. Changed/added are
about 320 lines of
code.
How it works?
Workspaces was organized in linear structure. How it
can be seen in
taskbar. This patch adds new dimension into workspaces.
Now we have
workspaces and groups of workspaces. Workspace groups
remember their
last active workspace.
Example:
aws = active workspace
grp = group
ws = workspace
-------------------------------------------------------------------
before action after
-------------------------------------------------------------------
aws: A1 switch to ws 2 aws: A2
aws: A2 switch to grp B aws: B1
aws: B2 switch to ws 3 aws: B3
aws: B3 switch to grp A aws: A2
-------------------------------------------------------------------
But workspaces are not modified. When you use
gnome-panel and its pager,
you will see line of many workspaces. All magic is in
icewm's pager and
workspace switching only.
Configuration example (lines are wrapped):
----
WorkspaceNames = "A.1", "A.2", "A.3", "A.4", "B.1",
"B.2", "B.3", "B.4",
"C.1", "C.2", "C.3", "C.4", "D.1", "D.2", "D.3", "D.4",
"E.1", "E.2",
"E.3", "E.4", "F.1", "F.2", "F.3", "F.4", "G.1", "G.2",
"G.3", "G.4",
"H.1", "H.2", "H.3", "H.4"
WorkspaceGroupNames = "Alpha", "Beta", "Gama", "Delta",
"Epsilon",
"Theta", "Kappa", "Lambda"
TaskBarShowWorkspaceGroupListMenu = 1
TaskBarShowAllWorkspaces = 0
----
This makes 32 workspaces in 8 groups.
Keyboard?
----
KeySysWorkspace1="Ctrl+F1"
KeySysWorkspace2="Ctrl+F2"
KeySysWorkspace3="Ctrl+F3"
KeySysWorkspace4="Ctrl+F4"
KeySysWorkspaceGroup1="Ctrl+F5"
KeySysWorkspaceGroup2="Ctrl+F6"
KeySysWorkspaceGroup3="Ctrl+F7"
KeySysWorkspaceGroup4="Ctrl+F8"
KeySysWorkspaceGroup5="Ctrl+F9"
KeySysWorkspaceGroup6="Ctrl+F10"
KeySysWorkspaceGroup7="Ctrl+F11"
KeySysWorkspaceGroup8="Ctrl+F12"
----
Ctrl+F1...F4 switches between workspaces in each group.
Ctrl+F5...F12 switches between workspace groups.
..TakeWin variants should work.
If somebody do not want to use this, just set only one
group and hide
workspace group menu.
----
WorkspaceGroupNames = "Everything"
TaskBarShowWorkspaceGroupListMenu = 0
TaskBarShowAllWorkspaces = 1
----
What do you think about this ?
(sorry, I'm non-native english speaker)
Logged In: YES
user_id=607018
I naver needed such s thing, but it seems interesting.
Questions is if this feature fints in icewm simplicity. Is
is possible to have different number of desktops in each group?
e.g.:
A.1 A.2 A.3
B.1
C.1 C.2
Logged In: YES
user_id=1556778
> I naver needed such s thing, but it seems interesting.
Try to use more than 12 workspaces... ;)
> Questions is if this feature fints in icewm simplicity.
Switching between workspaces with groups is quiet harder,
but easier than using a lot of ungrouped workspaces. If
somebody uses few workspaces, he don't need this and he
don't have to use this feature.
> Is is possible to have different number of desktops in
each group?
No, because this solution is too simple and I do not need it
. Just don't switch to B.2, B.3 and C.3 :-D
Because groups have same size, code is not complex.
Repaired segfault when "ShowTaskBar = 0" (few missing "if(taskBar)")
Logged In: YES
user_id=1556778
I found little bug. There is repaired patch.
It was only few missing if(taskBar) around taskBar->something();