# HG changeset patch # User Christophe Lincoln # Date 1241438828 -7200 # Node ID d432f911ee0365e3df26bc54b315d6e03835be53 # Parent d1d5df9b017ee86965fb286b817dc52936689927 pekwm: Fix and improve receipt + add custom config diff -r d1d5df9b017e -r d432f911ee03 pekwm/receipt --- a/pekwm/receipt Mon May 04 13:35:07 2009 +0200 +++ b/pekwm/receipt Mon May 04 14:07:08 2009 +0200 @@ -3,10 +3,11 @@ PACKAGE="pekwm" VERSION="0.1.10" CATEGORY="x-window" -SHORT_DESC="Window manager" +SHORT_DESC="Very light, configurable and themable window manager for X." MAINTAINER="jozee@slitaz.org" DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev" +SUGGESTED="hsetroot tint2 lxpanel wbar" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.pekwm.org/projects/3/files" WGET_URL="$WEB_SITE/$TARBALL" @@ -15,8 +16,8 @@ compile_rules() { cd $src - ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS - make + ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install } @@ -29,41 +30,40 @@ cp -a $_pkg/usr/bin $fs/usr cp -a $_pkg/usr/share/pekwm $fs/usr/share cp -a $_pkg/etc $fs - #cp -a stuff/etc/* $fs/etc/pekwm - + # Custom configuration files + cp -a stuff/etc $fs + echo '$TERM="xterm"' > $fs/etc/pekwm/vars # Set perms. chown -R root.root $fs + chmod +x $fs/etc/pekwm/start + chmod +x $fs/usr/share/pekwm/scripts/* chmod 0755 $fs/usr/bin/pekwm - - - - } post_install() { - #pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or - #fake 100dpi folder fonts by linking to ttf-dejavu - mkdir -p /usr/share/fonts/X11/100dpi - ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/ + # Pekwm searches for default font path (100dpi folder) for xsever to render + # menus; either manually set it in .xinitrc or fake 100dpi folder fonts + # by linking to ttf-dejavu + if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then + mkdir -p $1/usr/share/fonts/X11/100dpi + cd $1/usr/share/fonts/X11/100dpi + ln -s ../../truetype/ttf-dejavu/* . + fi - # add pekwm /etc/slim.conf res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` # Adding WM to SLIM available sessions. if ! echo "$res" | grep -q $PACKAGE; then echo -n "Adding $PACKAGE to /etc/slim.conf..." - sed -i "s/^sessions.*/sessions ${res},pekwm/" /etc/slim.conf + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf status fi - - # add pekwm to tazx - } post_remove() { - # Remove pekwm from SLIM available sessions. - if grep -q pekwm $1/etc/slim.conf; then - sed -i s/,pekwm// $1/etc/slim.conf + # Remove WM from SLIM available sessions. + if grep -q $PACKAGE $1/etc/slim.conf; then + sed -i s/,$PACKAGE// $1/etc/slim.conf fi } diff -r d1d5df9b017e -r d432f911ee03 pekwm/stuff/etc/pekwm/config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pekwm/stuff/etc/pekwm/config Mon May 04 14:07:08 2009 +0200 @@ -0,0 +1,105 @@ +Files { + Keys = "~/.pekwm/keys" + Mouse = "~/.pekwm/mouse" + Menu = "~/.pekwm/menu" + Start = "~/.pekwm/start" + AutoProps = "~/.pekwm/autoproperties" + Theme = "/usr/share/pekwm/themes/default" + Icons = "~/.pekwm/icons/" +} + +MoveResize { + EdgeAttract = "10" + EdgeResist = "10" + WindowAttract = "5" + WindowResist = "5" + OpaqueMove = "True" + OpaqueResize = "False" +} + +Screen { + Workspaces = "4" + WorkspacesPerRow = "2" + WorkspaceNames = "Main;Web;Work;Music" + ShowFrameList = "True" + ShowStatusWindow = "True" + ShowStatusWindowCenteredOnRoot = "False" + ShowClientID = "False" + ShowWorkspaceIndicator = "500" + PlaceNew = "True" + FocusNew = "True" + + TrimTitle = "..." + FullscreenAbove = "True" + FullscreenDetect = "True" + HonourRandr = "True" + EdgeSize = "1 1 1 1" + EdgeIndent = "False" + PixmapCacheSize = "20" + DoubleClickTime = "250" + + Placement { + Model = "CenteredOnParent Smart MouseNotUnder" + Smart { + Row = "True" + TopToBottom = "True" + LeftToRight = "True" + OffsetX = "0" + OffsetY = "0" + } + } + + UniqueNames { + SetUnique = "False" + Pre = " #" + Post = "" + } +} + +Menu { + DisplayIcons = "True" + + Icons = "DEFAULT" { + Minimum = "16x16" + Maximum = "16x16" + } + + # To enable make separate window have other icon size restrictions, + # for example wallpaper menu found in pekwm_menu_tools, set the following + # for each menu you want to "free". + + # Icons = "Wallpaper" { + # Minimum = "64x64" + # Maximum = "64x64" + # } + + # Defines how menus act on mouse input. + # Possible values are: "ButtonPress ButtonRelease DoubleClick Motion" + # To make submenus open on mouse over, comment the default Enter, + # uncomment the alternative, and reload pekwm. + + Select = "Motion MotionPressed" + # Enter = "MotionPressed ButtonPress" + Enter = "Motion" + Exec = "ButtonRelease" +} + +CmdDialog { + HistoryUnique = "True" + HistorySize = "1024" + HistoryFile = "~/.pekwm/history" + HistorySaveInterval = "16" +} + +Harbour { + OnTop = "True" + MaximizeOver = "False" + Placement = "Right" + Orientation = "TopToBottom" + Head = "0" + + DockApp { + SideMin = "64" + SideMax = "0" + } +}