wok rev 2878
pekwm: Fix and improve receipt + add custom config
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 04 14:07:08 2009 +0200 (2009-05-04) |
parents | d1d5df9b017e |
children | 1b3e286f13c8 |
files | pekwm/receipt pekwm/stuff/etc/pekwm/config |
line diff
1.1 --- a/pekwm/receipt Mon May 04 13:35:07 2009 +0200 1.2 +++ b/pekwm/receipt Mon May 04 14:07:08 2009 +0200 1.3 @@ -3,10 +3,11 @@ 1.4 PACKAGE="pekwm" 1.5 VERSION="0.1.10" 1.6 CATEGORY="x-window" 1.7 -SHORT_DESC="Window manager" 1.8 +SHORT_DESC="Very light, configurable and themable window manager for X." 1.9 MAINTAINER="jozee@slitaz.org" 1.10 DEPENDS="xorg-libX11 xorg-libXinerama xorg-libXft xorg-libXrandr xorg-libXpm" 1.11 BUILD_DEPENDS="xorg-dev xorg-dev-proto zlib-dev" 1.12 +SUGGESTED="hsetroot tint2 lxpanel wbar" 1.13 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 WEB_SITE="http://www.pekwm.org/projects/3/files" 1.15 WGET_URL="$WEB_SITE/$TARBALL" 1.16 @@ -15,8 +16,8 @@ 1.17 compile_rules() 1.18 { 1.19 cd $src 1.20 - ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS 1.21 - make 1.22 + ./configure --prefix=/usr --sysconfdir=/etc $CONFIGURE_ARGS && 1.23 + make && 1.24 make DESTDIR=$PWD/_pkg install 1.25 } 1.26 1.27 @@ -29,41 +30,40 @@ 1.28 cp -a $_pkg/usr/bin $fs/usr 1.29 cp -a $_pkg/usr/share/pekwm $fs/usr/share 1.30 cp -a $_pkg/etc $fs 1.31 - #cp -a stuff/etc/* $fs/etc/pekwm 1.32 - 1.33 + # Custom configuration files 1.34 + cp -a stuff/etc $fs 1.35 + echo '$TERM="xterm"' > $fs/etc/pekwm/vars 1.36 # Set perms. 1.37 chown -R root.root $fs 1.38 + chmod +x $fs/etc/pekwm/start 1.39 + chmod +x $fs/usr/share/pekwm/scripts/* 1.40 chmod 0755 $fs/usr/bin/pekwm 1.41 - 1.42 - 1.43 - 1.44 - 1.45 } 1.46 1.47 post_install() 1.48 { 1.49 - #pekwm searches for default font path (100dpi folder) for xsever to render menus; either manually set it in .xinitrc or 1.50 - #fake 100dpi folder fonts by linking to ttf-dejavu 1.51 - mkdir -p /usr/share/fonts/X11/100dpi 1.52 - ln -s /usr/share/fonts/truetype/ttf-dejavu/* /usr/share/fonts/X11/100dpi/ 1.53 + # Pekwm searches for default font path (100dpi folder) for xsever to render 1.54 + # menus; either manually set it in .xinitrc or fake 100dpi folder fonts 1.55 + # by linking to ttf-dejavu 1.56 + if [ ! -d $1/usr/share/fonts/X11/100dpi/ ]; then 1.57 + mkdir -p $1/usr/share/fonts/X11/100dpi 1.58 + cd $1/usr/share/fonts/X11/100dpi 1.59 + ln -s ../../truetype/ttf-dejavu/* . 1.60 + fi 1.61 1.62 - # add pekwm /etc/slim.conf 1.63 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.64 # Adding WM to SLIM available sessions. 1.65 if ! echo "$res" | grep -q $PACKAGE; then 1.66 echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.67 - sed -i "s/^sessions.*/sessions ${res},pekwm/" /etc/slim.conf 1.68 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.69 status 1.70 fi 1.71 - 1.72 - # add pekwm to tazx 1.73 - 1.74 } 1.75 1.76 post_remove() 1.77 { 1.78 - # Remove pekwm from SLIM available sessions. 1.79 - if grep -q pekwm $1/etc/slim.conf; then 1.80 - sed -i s/,pekwm// $1/etc/slim.conf 1.81 + # Remove WM from SLIM available sessions. 1.82 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.83 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.84 fi 1.85 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/pekwm/stuff/etc/pekwm/config Mon May 04 14:07:08 2009 +0200 2.3 @@ -0,0 +1,105 @@ 2.4 +Files { 2.5 + Keys = "~/.pekwm/keys" 2.6 + Mouse = "~/.pekwm/mouse" 2.7 + Menu = "~/.pekwm/menu" 2.8 + Start = "~/.pekwm/start" 2.9 + AutoProps = "~/.pekwm/autoproperties" 2.10 + Theme = "/usr/share/pekwm/themes/default" 2.11 + Icons = "~/.pekwm/icons/" 2.12 +} 2.13 + 2.14 +MoveResize { 2.15 + EdgeAttract = "10" 2.16 + EdgeResist = "10" 2.17 + WindowAttract = "5" 2.18 + WindowResist = "5" 2.19 + OpaqueMove = "True" 2.20 + OpaqueResize = "False" 2.21 +} 2.22 + 2.23 +Screen { 2.24 + Workspaces = "4" 2.25 + WorkspacesPerRow = "2" 2.26 + WorkspaceNames = "Main;Web;Work;Music" 2.27 + ShowFrameList = "True" 2.28 + ShowStatusWindow = "True" 2.29 + ShowStatusWindowCenteredOnRoot = "False" 2.30 + ShowClientID = "False" 2.31 + ShowWorkspaceIndicator = "500" 2.32 + PlaceNew = "True" 2.33 + FocusNew = "True" 2.34 + 2.35 + TrimTitle = "..." 2.36 + FullscreenAbove = "True" 2.37 + FullscreenDetect = "True" 2.38 + HonourRandr = "True" 2.39 + EdgeSize = "1 1 1 1" 2.40 + EdgeIndent = "False" 2.41 + PixmapCacheSize = "20" 2.42 + DoubleClickTime = "250" 2.43 + 2.44 + Placement { 2.45 + Model = "CenteredOnParent Smart MouseNotUnder" 2.46 + Smart { 2.47 + Row = "True" 2.48 + TopToBottom = "True" 2.49 + LeftToRight = "True" 2.50 + OffsetX = "0" 2.51 + OffsetY = "0" 2.52 + } 2.53 + } 2.54 + 2.55 + UniqueNames { 2.56 + SetUnique = "False" 2.57 + Pre = " #" 2.58 + Post = "" 2.59 + } 2.60 +} 2.61 + 2.62 +Menu { 2.63 + DisplayIcons = "True" 2.64 + 2.65 + Icons = "DEFAULT" { 2.66 + Minimum = "16x16" 2.67 + Maximum = "16x16" 2.68 + } 2.69 + 2.70 + # To enable make separate window have other icon size restrictions, 2.71 + # for example wallpaper menu found in pekwm_menu_tools, set the following 2.72 + # for each menu you want to "free". 2.73 + 2.74 + # Icons = "Wallpaper" { 2.75 + # Minimum = "64x64" 2.76 + # Maximum = "64x64" 2.77 + # } 2.78 + 2.79 + # Defines how menus act on mouse input. 2.80 + # Possible values are: "ButtonPress ButtonRelease DoubleClick Motion" 2.81 + # To make submenus open on mouse over, comment the default Enter, 2.82 + # uncomment the alternative, and reload pekwm. 2.83 + 2.84 + Select = "Motion MotionPressed" 2.85 + # Enter = "MotionPressed ButtonPress" 2.86 + Enter = "Motion" 2.87 + Exec = "ButtonRelease" 2.88 +} 2.89 + 2.90 +CmdDialog { 2.91 + HistoryUnique = "True" 2.92 + HistorySize = "1024" 2.93 + HistoryFile = "~/.pekwm/history" 2.94 + HistorySaveInterval = "16" 2.95 +} 2.96 + 2.97 +Harbour { 2.98 + OnTop = "True" 2.99 + MaximizeOver = "False" 2.100 + Placement = "Right" 2.101 + Orientation = "TopToBottom" 2.102 + Head = "0" 2.103 + 2.104 + DockApp { 2.105 + SideMin = "64" 2.106 + SideMax = "0" 2.107 + } 2.108 +}