diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/.cvsignore | 1 | ||||
-rwxr-xr-x | utils/Etsearch | 30 | ||||
-rw-r--r-- | utils/Makefile.am | 5 | ||||
-rwxr-xr-x | utils/kEsetroot.in | 107 |
4 files changed, 141 insertions, 2 deletions
diff --git a/utils/.cvsignore b/utils/.cvsignore index f22683f..6658c90 100644 --- a/utils/.cvsignore +++ b/utils/.cvsignore @@ -5,3 +5,4 @@ Makefile.in Esetroot Etbg Ettable +kEsetroot diff --git a/utils/Etsearch b/utils/Etsearch new file mode 100755 index 0000000..7d45b99 --- /dev/null +++ b/utils/Etsearch @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Eterm Search Utility +# +# $Id$ + +if [ $# -gt 1 -o "X$1" = "X-h" -o "X$1" = "X--help" ]; then + echo "Syntax: Etsearch [string]" + echo " (To clear the highlighting from a previous search," + echo " do not specify a string.)" + echo + exit 0 +fi + +# Code to figure out if we need 'echo -n' or 'echo "\c"', stolen from configure +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' + else + ac_n=-n ac_c= + fi +else + ac_n= ac_c='\c' +fi + +STR="$1" + +echo $ac_n "]6;72;${STR}$ac_c" diff --git a/utils/Makefile.am b/utils/Makefile.am index c081028..0400905 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -3,7 +3,7 @@ INCLUDES = -I. -I../libmej -I.. -I$(includedir) -I$(prefix)/include $(X_CFLAGS) bin_PROGRAMS = Esetroot Etbg Ettable -bin_SCRIPTS = Etcolors Etwinop +bin_SCRIPTS = Etcolors Etwinop Etsearch kEsetroot Esetroot_SOURCES = Esetroot.c Esetroot_LDFLAGS = -rpath $(libdir):$(pkglibdir) @@ -12,5 +12,6 @@ Esetroot_LDADD = -L$(DIST_ROOT)/libmej -L$(libdir) -L$(prefix)/lib $(LIBS) $(GRL Etbg_SOURCES = Etbg.c Ettable_SOURCES = Ettable.c -EXTRA_DIST = Etbg.c Esetroot.c Ettable.c Makefile.am Makefile.in Etcolors Etwinop +EXTRA_DIST = Etbg.c Esetroot.c Ettable.c Makefile.am Makefile.in Etcolors Etwinop Etsearch \ + kEsetroot.in diff --git a/utils/kEsetroot.in b/utils/kEsetroot.in new file mode 100755 index 0000000..906d30e --- /dev/null +++ b/utils/kEsetroot.in @@ -0,0 +1,107 @@ +#!@PERL@ +#======================================================================= +# kEsetroot - KDE Esetroot integration for Eterm +# +# Copyright (C) 1999 - 2000 Dax T. Games +# (dgames@isoc.net) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#======================================================================= +# Written by Dax Games <dgames@isoc.net> +# Sets root pixmap for Eterm transparency. + +$HOME = $ENV{'HOME'}; +$KDEDIR = $ENV{'KDEDIR'}; +open (in,"$HOME/.kde/share/config/desktop0rc"); + +while (<in>) { + if ($_ =~ /^Wallpaper=(.*)/i) { + if (-e $1) { + $PixMap = $1 + #system("/usr/bin/Esetroot -display :0 $1"); + } + elsif (-e "$KDEDIR/share/wallpapers/$1") { + $PixMap = "$KDEDIR/share/wallpapers/$1" + #system("/usr/bin/Esetroot -display :0 $KDEDIR/share/wallpapers/$1"); + } + else { + exit(1); + } + } + elsif ($_ =~ /^WallpaperMode=(.*)/i) { + $WallpaperMode = uc($1); + if ($WallpaperMode eq "TILED") { + $PixMapMode = "" + } + elsif ($WallpaperMode eq "CENTRED") { + $PixMapMode = "-center "; + } + elsif ($WallpaperMode eq "SCALED") { + $PixMapMode = "-scale "; + } + } + +} +close (in); + +system("@BINDIR@/Esetroot $PixMapMode-display :0 $PixMap"); + +if (!-e "$HOME/Desktop/Autostart/kEsetroot.kdelnk") { + print "Do you want to start kEsetroot when KDE starts? y/n [y] "; + $AutostartYORN = (<>); + chomp $AutostartYORN; + + if ($AutostartYORN = "" or $AutostartYORN = "Y") { + open (out, ">$HOME/Desktop/Autostart/kEsetroot.kdelnk"); + print out "\# KDE Config File\n"; + print out "[KDE Desktop Entry]\n"; + print out "Name[fi]=Sovellus\n"; + print out "Comment[C]=Set root pixmap for Eterm transparency\n"; + print out "SwallowTitle=\n"; + print out "SwallowExec=\n"; + print out "Name[ru]=ðÒÉÌÏÖÅÎÉÅ\n"; + print out "BinaryPattern=\n"; + print out "Name[hr]=Program\n"; + print out "Name[sl]=Uporabni¹ki program\n"; + print out "Name[pl]=Aplikacja\n"; + print out "Name=Application\n"; + print out "Name[ca]=Aplicacions\n"; + print out "Name[it]=Applicazione\n"; + print out "Name[da]=Anvendelse\n"; + print out "Name[C]=KDE Esetroot\n"; + print out "MimeType=\n"; + print out "Name[de]=Anwendung\n"; + print out "Name[ja]=¥¢¥×¥ê¥±¡¼¥·¥ç¥ó\n"; + print out "Exec=kEsetroot\n"; + print out "Name[cs]=Aplikace\n"; + print out "Name[sv]=Program\n"; + print out "Icon=kwm.xpm\n"; + print out "TerminalOptions=\n"; + print out "Name[sk]=Aplikácia\n"; + print out "Path=\n"; + print out "Name[pt_BR]=Aplicativo\n"; + print out "Type=Application\n"; + print out "Name[es]=Aplicaciones\n"; + print out "Name[is]=Forrit\n"; + print out "Name[pt]=Aplicação\n"; + print out "Terminal=0\n"; + print out "Name[no]=Applikasjon\n"; + print out "Name[hu]=Applikáció\n"; + print out "Name[ro]=Aplicaþie\n"; + close(out); + } +} + + |