From: Nick Bowler Date: Mon, 12 May 2008 13:03:24 +0000 (-0400) Subject: Merge branch 'master' of git://git.draconx.com/fvwmconf X-Git-Url: http://git.draconx.ca/gitweb/fvwmconf.git/commitdiff_plain/eecdebcd2e2f90acc7a19ced1896a87dac6c3e0f?hp=5beca3b0bdc9c0f7dfc81772f224a94fcd7c7a24 Merge branch 'master' of git://git.draconx.com/fvwmconf --- diff --git a/common/bindings b/common/bindings index 4d0ce48..dd9f2e2 100644 --- a/common/bindings +++ b/common/bindings @@ -37,7 +37,8 @@ Mouse 4 T N Windowshade True Mouse 5 T N Windowshade False # Console -Key grave A C Exec exec $[TERMINAL] +Key grave A C Exec exec $[TERMINAL] +Key grave A CM Exec exec $[TERMINAL] -e zsh -f Key F3 A M Module FvwmConsole -terminal $[TERMINAL] Key F3 A M2 Module FvwmConsole -terminal $[TERMINAL] diff --git a/common/modifier b/common/modifier index c7b770d..cbb89b1 100644 --- a/common/modifier +++ b/common/modifier @@ -13,4 +13,4 @@ DestroyFunc Mod_M3Func AddToFunc Mod_M3Func + C Lower + D Maximize 100 0 - + M PipeRead '. $[FVWM_USERDIR]/scripts/resize.sh $[pointer.wx] $[pointer.wy] $[w.width] $[w.height]' + + M PipeRead 'exec $[FVWM_USERDIR]/scripts/resize.sh $[pointer.wx] $[pointer.wy] $[w.width] $[w.height]' diff --git a/common/wallpaper b/common/wallpaper index e96f33e..acd270f 100644 --- a/common/wallpaper +++ b/common/wallpaper @@ -15,7 +15,7 @@ DestroyFunc MakeMenuWallpaper AddToFunc MakeMenuWallpaper + I DestroyMenu recreate MenuWallpaper + I AddToMenu MenuWallpaper Wallpaper Title - + I PipeRead '. $[FVWM_USERDIR]/scripts/bgmenu.sh $[BGROOT] MenuWallpaper' + + I PipeRead 'exec $[FVWM_USERDIR]/scripts/bgmenu.zsh $[BGROOT] MenuWallpaper' DestroyFunc SetWallpaper AddToFunc SetWallpaper diff --git a/config b/config index 9a5a447..8d63728 100644 --- a/config +++ b/config @@ -4,7 +4,7 @@ ImagePath $[FVWM_USERDIR]/icons:$[FVWM_USERDIR]/pixmaps DestroyFunc InitFunction DestroyFunc StartFunction DestroyFunc ExitFunction -SetEnv TERMINAL /home/nick/bin/urxvt.sh +SetEnv TERMINAL $[HOME]/bin/urxvt.sh PipeRead 'echo SetEnv HOST `hostname`' # Global Features diff --git a/scripts/C/Makefile b/scripts/C/Makefile index 5d61541..8e05569 100644 --- a/scripts/C/Makefile +++ b/scripts/C/Makefile @@ -5,6 +5,8 @@ CC = c89 LD = $(CC) all: xaspect +clean: + rm -f xaspect *.o .c.o: $(CC) -c -o $@ $(CFLAGS) $< diff --git a/scripts/bgmenu.sh b/scripts/bgmenu.zsh similarity index 83% rename from scripts/bgmenu.sh rename to scripts/bgmenu.zsh index ec6ae8f..7c0b7d4 100755 --- a/scripts/bgmenu.sh +++ b/scripts/bgmenu.zsh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/zsh # Generates an FVWM menu for selecting the PNG images found in a given # directory. Thumbnails for the images are generated on the fly using convert # from ImageMagick, and stored in the .thumbs subdirectory. The menu items @@ -6,7 +6,7 @@ menu="MenuWallpaper" func="SetWallpaper" -thumber="$HOME/.fvwm/scripts/thumbnail.sh" +thumber="$FVWM_USERDIR/scripts/thumbnail.sh" if [ ! -d "$1" ]; then echo "usage: $0 [menuname]" 1>&2 @@ -14,7 +14,7 @@ if [ ! -d "$1" ]; then fi [ -n "$2" ] && menu="$2" -for i in "$1"/*.png; do +for i in "$1"/*$($FVWM_USERDIR/scripts/C/xaspect).png; do thumb="`$thumber --size x160 "$i"`" echo "AddToMenu $menu \"`basename "${i%.png}"`*$thumb*\" $func \"$i\"" done diff --git a/scripts/thumbnail.sh b/scripts/thumbnail.sh index 958092c..b04f2e6 100755 --- a/scripts/thumbnail.sh +++ b/scripts/thumbnail.sh @@ -29,7 +29,7 @@ while [ "${1#--}" != "$1" -a "$1" != "-" ]; do done [ "$1" = "-" ] && shift -if ! expr match "$size" '^\([0-9]*\(x[0-9]\+\)\?\)$' &>/dev/null; then +if ! expr match "$size" '^\([0-9]*\(x[0-9]\+\)\?\)$' >/dev/null 2>&1; then echo "invalid size specification: $size" 1>&2 exit 1 fi