Now, let's get rid of that silly default behavior where DWM opens every instance of firefox in the 9th out of 9 workspaces - basically hiding it from me 98% of the time.
To modify DWM, we are going to write changes to the config.h file and then do a 'make install' to rebuild DWM. I put my DWM source files in /usr/src/, so:
Need to back up the config.h file before I do anything:
Now open config.h in our editor of choice - mine is the excellent 'geany' which is the default text editor on antiX:
I'm going to look for a line that says
Code: Select all
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
and I'm going to delete that line. In my config.h file, it's on line #31. That change by itself will stop the placement of firefox on the 9th workspace, and will allow firefox to start on any workplace that you happen to be working in.
While I'm in config.h, I'm going to make another change to make DWM run more to my liking.
I don't like using the left-Alt key as my primary key in the DWM key combos - I prefer using the Super (or "Windows") key. So I'm going to find the line that says
which is line #47 in my config.h file. I'm going to change it to read
. Mod4 refers to the Super key, so now all my key combos will start with Super. Calling up dmenu will be Super-p, calling up an st terminal will be Super-Shift-Enter, logging out of DWM will be Super-Shift-q, etc.
Now that we've made our changes, we've got to save the config.h file in our text editor and run our 'make install' command to rebuild DWM:
This will take about 5 seconds to run. At the end, you can log out of whatever window manager you were working in, and go to the 'slim' login, hitting the F1 key about 14 times as it cycles through antiX's many window manager setups until it lands on DWM. Then login, and try starting firefox: Super-p to start dmenu, and then spell out a few letters of 'firefox' until 'firefox' is highlighted on the dmenu bar at the top of the screen, and hit Enter. Firefox should start up for you in your workspace.
Primary Computer - Commodore 64: Processor - MOS 6510/8500, 1.023MHz; Memory - 64kb RAM, 20kB ROM - 8k BASIC V2, 8k Kernel, 4k Character ROM; Display output - 320x200, 16 colours; OS - BASIC V2.0; Weight: 1.8kg