Total Commander and virtual desktops
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Total Commander and virtual desktops
Hi,
i'am using a Total Commander (TC) / Dexpot combination for daily working .
Dexpot provides virtual desktops for windows. On my system it opens different TC instances with different configurations at first desktop call.
Dasktop navigation is easy there is a task overview in the taskbar.
Clicking a task changes to the desired desktop.
This works very good with total commander but:
Unfortunately different TC instances have only different numbers. These number are set in starting sequence order so i don't now the right one (i only start needed desktops in different order). .
An example: Currently i see in the taskbar this instances of TC
[3] Total comm.. || Total comm.. || [2] Total comm.. || etc.
but what is Project B or C ?
Forum says that parameters in the title bar are not possible, ok. So how can i identify TC instances in the taskbar settable by command line or ini file ?
i'am using a Total Commander (TC) / Dexpot combination for daily working .
Dexpot provides virtual desktops for windows. On my system it opens different TC instances with different configurations at first desktop call.
Dasktop navigation is easy there is a task overview in the taskbar.
Clicking a task changes to the desired desktop.
This works very good with total commander but:
Unfortunately different TC instances have only different numbers. These number are set in starting sequence order so i don't now the right one (i only start needed desktops in different order). .
An example: Currently i see in the taskbar this instances of TC
[3] Total comm.. || Total comm.. || [2] Total comm.. || etc.
but what is Project B or C ?
Forum says that parameters in the title bar are not possible, ok. So how can i identify TC instances in the taskbar settable by command line or ini file ?
As I see, you can use IconLib to change main TC icon in taskbar button. You will need a DLL with a set of icons (called ICL) and INI option IconLib under Configuration section (see help section 4.b). You can check that it works by specifying e.g. IconLib=%SystemRoot%\System32\shell32.dll.
The only problem is I don't know where you can find ICL with default TC icons (but you can make it yourself by copying icons from TOTALCMD.exe into empty DLL using e.g. Resource Hacker).
The only problem is I don't know where you can find ICL with default TC icons (but you can make it yourself by copying icons from TOTALCMD.exe into empty DLL using e.g. Resource Hacker).
For sample ICL file see: http://ghisler.ch/board/viewtopic.php?p=258583#258583
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Thanks
Thanks you for the hint, i give it a try.
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Re: Thanks
Thank you very much, it works.JJ-Martens wrote:Thanks you for the hint, i give it a try.
Quick and dirty howto:
- i used pinball icons
http://www.rw-designer.com/icon-set/pool-balls
- downloaded modified icl file
http://madsenworld.dk/tcmd/new-logo.icl
- with resource hacker i replaced icons in the icl file with with the pinball
- save the "pinballed" icl files with different names (e.g. tc-logo-8.icl)
- add in totalcommand.ini at the end of [Configuration] section
IconLib=%COMMANDER_PATH%\tc-logo-8.icl
- save the ini file under new name (e.g. dexpot8.ini)
and change the calling line of total commander to e.g.
C:\Programme\totalcmd\TOTALCMD.EXE /i=Dexpot8.ini
Don't now really what i did at icl edit , but it works.
Great that it works!
Now you can start learning about INI redirection and parameters AlternateUserIni and RedirectSection (to keep much of your TC settings in one place).
Or maybe you can simply use same INI but to write corresponding IconLib into it before starting new TC instance. So you create set of LNKs that call same batch file that writes required IconLib to INI and then starts new TC instance.
Now you can start learning about INI redirection and parameters AlternateUserIni and RedirectSection (to keep much of your TC settings in one place).
Or maybe you can simply use same INI but to write corresponding IconLib into it before starting new TC instance. So you create set of LNKs that call same batch file that writes required IconLib to INI and then starts new TC instance.
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Thank you for the hint. As far as i see (quick and dirty forum search) redirection is used to share global tc.ini parameters for different users (e.g. for network admins). Than individual (elsewhere stored) settings are linked to it.MVV wrote:Great that it works!
Now you can start learning about INI redirection and parameters AlternateUserIni and RedirectSection (to keep much of your TC settings in one place).
I have 8 tc instances on one pc at the same time. So i made 8 different icl files and have 8 tc.ini file (all in the same directory).
This is easy to manage (this is the first config change in years). So i can't see the benefit in making sections in one file.
Thats not "self explanatory" i will keep it simple.Or maybe you can simply use same INI but to write corresponding IconLib into it before starting new TC instance.
Thanks for the good idea. Maybe a control over environment variables is possible.So you create set of LNKs that call same batch file that writes required IconLib to INI and then starts new TC instance.
That's even simpler:Maybe a control over environment variables is possible.
Code: Select all
@echo off
set COMMANDER_PATH=C:\Programme\totalcmd
set icolibx=%COMMANDER_PATH%\tc-logo-%1.icl
start "" "%COMMANDER_PATH%\TOTALCMD.exe"
Code: Select all
"C:\Programme\totalcmd\tc_start.bat" 1
If you start TC directly, it will use standard icon set 'cause there is no envvar defined.
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
By default all settings are in same wincmd.ini. But you can easilly redirect sections with such settings to separate INIs using same envvar method and same batch file (just define one more envvar in it).But what happens then with individual desktop settings (Tabs, recent dir list etc.) on the different desktops?
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Thank you.MVV wrote:By default all settings are in same wincmd.ini. But you can easilly redirect sections with such settings to separate INIs using same envvar method and same batch file (just define one more envvar in it).But what happens then with individual desktop settings (Tabs, recent dir list etc.) on the different desktops?
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
Hello again:
%tcaltuser% runs very good. Every desktop depending setting is in an separate .ini file. I named them TcDexpot.ini for Desktop 1 and TcDexpot2.ini for Desktop 2 and so on .
But today i tried to unify the color by file type settings.
But this didn't work. For example, the following lines written to wincmd.ini:
[Colors]
ColorFilter1=*.hex
ColorFilter1Color=4227072
ColorFilter2=*.ini
ColorFilter2Color=33023
will be ignored and no colors shown. Creating this in the TcDexpot.ini works.
When i generate new file types with the configuration (Define colors by file type...) they are generated in the TcDexpot.ini instead of the global wincmd.ini.
What do i wrong?
%tcaltuser% runs very good. Every desktop depending setting is in an separate .ini file. I named them TcDexpot.ini for Desktop 1 and TcDexpot2.ini for Desktop 2 and so on .
But today i tried to unify the color by file type settings.
All desktops should have the same coloring scheme so that must be written to wincmd.ini.MVV wrote: By default all settings are in same wincmd.ini. But you can easilly redirect sections with such settings to separate INIs using same envvar method and same batch file (just define one more envvar in it).
But this didn't work. For example, the following lines written to wincmd.ini:
[Colors]
ColorFilter1=*.hex
ColorFilter1Color=4227072
ColorFilter2=*.ini
ColorFilter2Color=33023
will be ignored and no colors shown. Creating this in the TcDexpot.ini works.
When i generate new file types with the configuration (Define colors by file type...) they are generated in the TcDexpot.ini instead of the global wincmd.ini.
What do i wrong?
- ghisler(Author)
- Site Admin
- Posts: 48104
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If you use AlternateUserIni, all sections will be redirected, except for the following sections: [Configuration], [Layout], [Packer], [Confirmation], [Extensions], [Associations], [Shortcuts], [ShortcutsWin], [PackerPlugins], [FileSystemPlugins], [ListerPlugins], [ContentPlugins].
To NOT redirect a section, add RedirectSection=0
In your case, this would be:
[Colors]
RedirectSection=0
ColorFilter1=*.hex
ColorFilter1Color=4227072
ColorFilter2=*.ini
ColorFilter2Color=33023
To NOT redirect a section, add RedirectSection=0
In your case, this would be:
[Colors]
RedirectSection=0
ColorFilter1=*.hex
ColorFilter1Color=4227072
ColorFilter2=*.ini
ColorFilter2Color=33023
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 26
- Joined: 2003-12-20, 13:04 UTC
ghisler(Author) wrote:If you use AlternateUserIni, all sections will be redirected, except for the following sections: [Configuration], [Layout], [Packer], [Confirmation], [Extensions], [Associations], [Shortcuts], [ShortcutsWin], [PackerPlugins], [FileSystemPlugins], [ListerPlugins], [ContentPlugins].
To NOT redirect a section, add RedirectSection=0
In your case, this would be:
[Colors]
RedirectSection=0
ColorFilter1=*.hex
ColorFilter1Color=4227072
ColorFilter2=*.ini
ColorFilter2Color=33023
Works perfect on all tested desktops , thank you