I have a bunch of different "hats" on my computer, including multiple on-the-go projects (e.g., $work, a few projects on github, some on Sourceforge, some I'm involved with, some I just follow, etc.). Each one has its own pseudo-home directory (e.g., ~/hat/$projectname). Some have their own specific environment settings (e.g., DB2 instance environment).
So, I have a shell tool to switch from one to another ("hat $projectname"). It finds the correct home directory, cd's to it ("hat" is an alias for ". hat.sh" so I can do this), sets up the environment, etc. Because I'm lazy.
Now I want to get a bit more lazy. I'd like to set up a hotkey to launch konsole with the correct parameters for the one hat I wear the most: $work. I'd like to effectively pre-type "hat work" into the window. But I'm not at all sure how to pass this through konsole to bash to my .profile (?) and leave the shell running afterward. All while not doing any of this for the hotkey I already have that launches konsole normally.