![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Dark Roasted Ubuntu
![]() Join Date: Jul 2006
Beans: 1,015
|
Howto: Install and configure Pekwm
Contents
1. Introduction Pekwm is a fast, functional, and flexible window manager, originally based on aewm++. It supports tabbed windows (like Fluxbox), key chains, pixmap themes, xinerama support and much more. If you like Fluxbox or Openbox chances are you'll like Pekwm too, as it resembles both in looks and functionality. Pekwm is still actively developped. Here is what Pekwm can look like: (The first screenshot uses the Groove Pekwm and Gtk theme, second the Fearless Pekwm theme and a modified Royalty gtk theme) Pekwm has excellent documentation, which you can find here. Everything you need to know to use Pekwm can be found there, and though it can be daunting at times I strongly recommend reading it. This guide is not meant to repeat or replace the official documentation, but rather to help Ubuntu users new to Pekwm getting started. 2. Installing Pekwm Ubuntu Hardy (8.04) and Intrepid (8.10) have a Pekwm package in the repositories. Unfortunately, this is not the latest version. You can easily install that package through Synaptic or with the command sudo aptitude install pekwm, but the latest version of Pekwm contains a lot of bug fixes and some added features that make Pekwm so much easier and more pleasant to use. It is, in other words, more than worth it spending some time installing the latest version. You can install the latest stable version of Pekwm (0.1.8 ) in two ways: if you run Hardy you can use the Debian package Daniel Moerner (InfinityCircuit) created, or you can build from source. 2.1 Installing the Debian package First edit your sources list for Apt and Aptitude (sudo nano -B /etc/apt/sources.list), and add the following two lines to it: Code:
deb http://ppa.launchpad.net/dmoerner/ubuntu hardy main deb-src http://ppa.launchpad.net/dmoerner/ubuntu hardy main Code:
sudo aptitude update sudo aptitude install pekwm 2.2 Building Pekwm from source If you don't use Hardy, or prefer to build from source, it is a little more work, but still a lot easier than it seems. Here is how to do it.
3. Creating a Session entry for Pekwm If you use a display and session manager, such as GDM, KDM or Slim, you will not have an entry for Pekwm in the Sessions menu of your login screen. But don't worry, this is easily created. Open a terminal and enter the following command (you can replace nano by any other text editor, such as mousepad, leafpad, vim or gedit): Code:
sudo nano /usr/share/xsessions/Pekwm.desktop Code:
[Desktop Entry] Encoding=UTF-8 Name=PekWM Comment=Start PekWM Exec=/usr/local/bin/pekwm Icon= Type=Application Save and close the file and make the file executable with the following command: Code:
sudo chmod +x /usr/share/xsessions/Pekwm.desktop If you don't use a session manager, edit your ~/.xinitrc file (create one if you don't have one already), so that it looks something like this: Code:
#!/bin/sh xsetroot -solid black & exec /usr/local/bin/pekwm 4. Pekwm basics When you first log into Pekwm, you won't see much apart from a blank screen. This is normal. Pekwm doesn't come with a panel, or a desktop manager. Pekwm is fairly straightforward. It is a window manager, and does not much more than managing windows. Here are a few basics of Pekwm: Windows
Menus
Other
5. Configuring Pekwm All of Pekwm's configuration happens in the ~/.pekwm directory. In there you will find 7 files: config, menu, keys, mouse, autoproperties, start, and vars. There are no graphical tools to change the settings in these files (apart from a text editor In case you accidentally delete these files, the defaults can be found at /usr/local/etc/pekwm Config This is the general configuration file. Here you can control the basic behaviour of Pekwm. It controls the workspace settings, the menu and harbour behaviour, window edge resistance, and more. The settings are very well explained in the official Pekwm documentation. Menu As you could have guessed, this is the file that controls your menu. You can edit this file to add, edit or remove entries or submenus to your root menu and (towards the end of the file) your window menu (the menu that pops up when you right click a window header). Any custom menu you'd like to setup will have to be added to this file. When you first run Pekwm you will already have a rather full default menu, with possibly plenty of applications you don't have installed. It might be a useful basis to create your own menu. You could also run Menumaker to set up menus of all your installed applications. Run it with the following command: Code:
mmaker --no-desktop pekwm The syntax for the menu file is fairly straightforward. A simple entry has the following structure: Code:
Entry = "NAME" { Actions = "Exec COMMAND &" }
Code:
Submenu = "NAME" {
Entry = "NAME" { Actions = "Exec COMMAND &" }
Entry = "NAME" { Actions = "Exec COMMAND &" }
}
To add a separator line to the menu, use the following: Code:
Separator {}
You can find some dynamic menus online. Check the exact syntax the menu requires, as they can vary. There are not that many dynamic menu scripts around, unfortunately. You can find dynamic menus for Gmail and network connections here, and one to display the time and date here. Keys This file controls all the keyboard bindings and keychains used in Pekwm. You can add keyboard bindings to launch programs or to perform actions in Pekwm, such as show a menu, move a window, switch desktops, etc. For a full list of Pekwm's actions, see the documentation. The syntax structure of this file resembles that of the menu file and should be fairly self-evident. Mod1 is the Alt key, Mod4 the Windows key. You can have more than one action assigned to one key combination. To do so, just separate the actions by a semicolon. Here is an example: Code:
KeyPress = "Ctrl Mod1 R" { Actions = "Exec osdctl -s 'Reconfiguring'; Reload" }
Mouse This file controls all the mouse actions used in Pekwm. For a full list of Pekwm's actions, see the documentation. Pekwm is set up by default to focus windows when the mouse moves over them (as opposed to the 'click to focus' style). If you'd like to change this, look for the following lines in the file and do what they say (there are quite a few of the first, but only one occurrence of the second): Code:
# Remove the following line if you want to use click to focus. # Uncomment the following line if windows should raise when clicked. Autoproperties If you'd like certain applications to open on certain workspaces, have a certain title, skip the (window) menus, or be automatically tabbed together, you can specify all that here. The syntax is a little confusing at first, but it is well documented in the documentation and the default autoproperties file contains plenty of examples. Start This file is used to start applications when Pekwm is started. If you'd like to display a wallpaper or launch a panel whenever Pekwm is started, you can add entries for these things here. Note, though, that these applications are run every time Pekwm is started -- including when you run 'Restart' in the root menu. The commands are executed only after Pekwm is started. To add an application, use the following structure: Code:
nameofapplication & Code:
# Auto-mounting drives gnome-volume-manager & # To set the background image hsetroot -tile "/home/urukrama/Images/Desktops/Abandoned.jpg" & fbpanel & conky & # To have visual feedback when changing the volume osdsh & (sleep 1 && osdctl -m 1) & Code:
chmod +x ~/.pekwm/start Finally, the vars file contains variables that are applied throughout Pekwm. The default entry should be clear enough: Code:
$TERM="xterm -fn fixed +sb -bg white -fg black" 6. Themes Unlike some other window managers, Pekwm themes govern all visual aspects: window headers and borders, menus, the harbour, fonts, as well as the position and functions of window buttons (like close, iconify, etc.). Themes are installed in ~/.pekwm/themes or /usr/local/share/pewkm/themes (/usr/share/pekwm/themes if you have changed the default installation directory). To install a theme, unpack the theme archive, and copy the folder that contains the 'theme' file and possibly image files to the above mentioned folders. The name of the theme folder is the name that will appear in the menu. You can change the theme also manually by editing the Pekwm config file (in the first section 'Files'). You can download pekwm themes from the following places: The theme settings have changed in more recent versions of Pekwm, so themes written for older versions are most likely unusable. You'll be able to tell straight away whether a theme is broken or not. 7. Conclusion Since Pekwm is just a window manager, it doesn't control the desktop, provide ways of changing Gtk settings such as themes, icons or fonts, manage the (un)mounting of devices, etc. Solutions to these are the same in Pekwm as in Fluxbox, Openbox or Icewm. If you need help with these, have a look at my Openbox guide, which discusses these at length. Like Fluxbox and Openbox, Pekwm is small and light, but highly configurable. Explore its many potentials and find a setup that works for you. For additional support of Pekwm read the documentation, join the mailing list, enter #pekwm at irc.freenode.net, or leave a message here on these forums. Last edited by urukrama; December 17th, 2008 at 05:46 PM.. Reason: updated for Pekwm 0.1.8 |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() |
Re: Howto: Install and configure Pekwm
this is great... thanks alot... will surely play with it
|
|
|
|
|
|
#3 |
|
First Cup of Ubuntu
![]() |
Re: Howto: Install and configure Pekwm
that was amazingly well written and explained....kudos!!!
just installed it, will toy around and report back ![]() |
|
|
|
|
|
#4 |
|
Fresh Brewed Ubuntu
![]() Join Date: Sep 2005
Location: Bellingham, WA
Beans: 1,532
Ubuntu Jaunty Jackalope (testing)
|
Re: Howto: Install and configure Pekwm
A well-written introduction to PekWM. Thanks for this!
__________________
This space intentionally left blank. |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
My beans are hidden!
|
Re: Howto: Install and configure Pekwm
Great work mate!
I have a question and I think it has to do with PekWM. I use skype alot to communicate with my family. The problem is when i minimize skype to tray (and I have tried all available trays...) I can't get it to show again. It just doesn't appear when I click the icon. The weird thing is that Gajim works, amsn works, xchat works. It's just skype that doesn't want to play. It works with the exact same setup if I try openbox or fluxbox though. Do you have any idea what could be causing this? Love PekWM, but without a working skype it's a no go for me |
|
|
|
|
|
#6 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2006
Beans: 3
|
Re: Howto: Install and configure Pekwm
If you did everything right and can't login to the PekWM environment, i.e. after login you get the message "No Exec line in the session file: Pekwm.", here's the tip (took me half a day to figure out) to get it working:
- in the Pekwm.desktop file comment (use '#') the line with 'Encoding=UTF-8'. For some reason this line prevented the gdm finding the Exec line for me. Don't know why it is so, but it worked for me. |
|
|
|
|
|
#7 | |
|
Dark Roasted Ubuntu
![]() Join Date: Jul 2006
Beans: 1,015
|
Re: Howto: Install and configure Pekwm
Quote:
Do you get any error messages if you launch Skype from the terminal when you try to make Skype appear again? Or could you post the contents of your ~/.xsession-errors here (after you've tried to make Skype reappear)? |
|
|
|
|
|
|
#8 | ||
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 5
|
Re: Howto: Install and configure Pekwm
Quote:
Quote:
(I installed the 0.1.5 version just using the sudo aptitude install pekwm, but naturally I would prefer the newest version :/) EDIT: never mind, I found a solution Last edited by mossgarden; April 21st, 2008 at 11:06 AM.. |
||
|
|
|
|
|
#9 |
|
Dark Roasted Ubuntu
![]() Join Date: Jul 2006
Beans: 1,015
|
Re: Howto: Install and configure Pekwm
It might help others who have the same problem if you posted your solution here.
|
|
|
|
|
|
#10 | |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 1
|
Re: Howto: Install and configure Pekwm
I had the same problem with:
Quote:
http://ubuntuforums.org/showthread.php?t=28400 i used: Code:
apt-get build-dep pekwm |
|
|
|
|
| Bookmarks |
| Tags |
| pekwm |
| Thread Tools | |
| Display Modes | |
|
|