HOWTO EvilWM
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
|
|
|
| edit |
Contents |
[edit] What is EvilWM?
EvilWM is an extremely light weight WM; it has a source of less than 30kb and compiles in about 3 seconds. It provides keyboard shortcuts, multiple desktops and a 1px border.
[edit] Setup
emerge evilwm
as your user:
nano ~/.xinitrc
make your .xinitrc match this:
| File: ~/.xinitrc |
# Sample .xinitrc for starting evilwm # Merge X resources from ~/.Xdefaults [ -f $HOME/.Xdefaults ] && xrdb $HOME/.Xdefaults # Set the background and root cursor shape (requires xsetroot) xsetroot -solid \#400040 xsetroot -cursor_name left_ptr # Start evilwm - snap to borders within 10 pixels /usr/bin/evilwm -snap 10 & # Transfer control to xclock - killing xclock (with Ctrl+Alt+Escape, say) # will exit our session exec xclock -digital -padding 2 -g -0+0 # Or, if you want to be able to exit X with Ctrl-Alt-Backspace only, use this # dummy line as the last line: #exec sleep infinity |
[edit] Using EvilWM
When you start evilWM using startx from the command prompt you will notice that there is no menu and no tool bar. To launch a program in evilWM you must launch it in a terminal, to launch a terminal hit <ctrl><alt><return> and one will pop-up.
[edit] ControlsYou can use the mouse to manipulate windows either by click/dragging the 1 pixel border, or by holding down Alt and doing so anywhere in the client window. The controls are:
Most keyboard controls are used by holding down Control and Alt, then pressing a key. Available functions are:
If compiled with virtual desktop support, these functions are also available:
Notes:
[edit] Launching ProgramsWhile in evilWM, you may find it annoying to launch programs from a terminal and have to leave that terminal open. So, what you can do is this:some_program & exit This will detach the program from a terminal - *note* this does not work in all terminals. If you are really lazy (as I am) you can make an alias so that you only have to type some_program & x To do this, put the following line in your ~/.bashrc file alias x='exit' You don't have to use blankspaces, you can just type some_program&x ...I said I was lazy =) Another way is:some_program & disown ; exit This works at least with bash and zsh. Really, you don't need to specify a second program. Just type some_program& At least this works in bash... ''OR...'' The other option you have for launching programs inside evilWM is to use a separate program launcher, and bind it to a key using xbindkeys. In my opinion the best launcher to use is gmrun, which lets you enter commands yourself and has "bash-like" completion. However, if you want a program launcher that uses icons you could try either apwal or pogo, both of which are available in portage. But back to gmrun, the first thing to do is install the necessary programs so as root do emerge -av xbindkeys gmrun Then all you need to do is create a .xbindkeysrc file in your home directory with the following lines
Obviously here you can substitute "Alt + F2" with any key of your choice, although avoid using scroll lock, as this will stop other parts of evilWM from working when turned on. Then issue the command xbindkeys in a terminal. Now pressing Alt + F2 will open up an easy to use launcher so you don't have to keep opening an xterm every time you want to run a program. If you want xbindkeys to run automatically whenever you log on then simply add the following line to your ~/.xprofile file. If the file doesn't already exist then just create it with only the following line. xbindkeys [edit] Make EvilWM work for youAt first glance evilWM may seem like a pretty bad WM, plain color background, no toolbar. So here is a list of programs/commands that will make your evilWM experience more enjoyable.
[edit] Additional Settings
[edit] KDMTo get evilWM to work with KDM, rename your .xinitrc to .xsession. Next time you load kde, select "Custom," and you will run whatever is in your .xsession. [edit] See Also |
