diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-04-20 20:52:35 +0200 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-04-20 20:52:35 +0200 |
commit | 40064519e3f73f38aeab27507ae1dd0c9e9a56a5 (patch) | |
tree | 1c57aa1e317569bac322d8358732738c440163eb /scripts | |
parent | e4ddcfdb8e28d912ede1fed10b4ae815a587e32a (diff) |
Remove somu unused files.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clean.sh | 18 | ||||
-rwxr-xr-x | scripts/kde_colors | 82 | ||||
-rwxr-xr-x | scripts/kde_colors_have_changed | 26 | ||||
-rwxr-xr-x | scripts/menu_colorset.sh | 10 | ||||
-rwxr-xr-x | scripts/menu_decoration.sh | 10 | ||||
-rwxr-xr-x | scripts/menu_fonttheme.sh | 10 | ||||
-rwxr-xr-x | scripts/miau.sh | 17 | ||||
-rwxr-xr-x | scripts/panel_thumbnailer.sh | 53 | ||||
-rwxr-xr-x | scripts/traffic.sh | 11 |
9 files changed, 0 insertions, 237 deletions
diff --git a/scripts/clean.sh b/scripts/clean.sh deleted file mode 100755 index 6f4a3ae..0000000 --- a/scripts/clean.sh +++ /dev/null @@ -1,18 +0,0 @@ -cd ${FVWM_USERDIR} || cd ~/.fvwm/ || exit 0 - -# Clean links and stuff, raw configuration -echo Cleaning links, for a raw configuration. -rm -f $(find ${FVWM_USERDIR} -type l) - -# Clean some temporal crap and backups -echo Cleaning some temporal crap and backups. -find ${FVWM_USERDIR} -name "*~" -exec rm -f '{}' \; -find ${FVWM_USERDIR} -name "*.rej" -exec rm -f '{}' \; -find ${FVWM_USERDIR} -name "*.orig" -exec rm -f '{}' \; -find ${FVWM_USERDIR} -name "*.save" -exec rm -f '{}' \; -find ${FVWM_USERDIR} -name "magick*" -exec rm -f '{}' \; -find ${FVWM_USERDIR} -name ".dolphinview" -exec rm -f '{}' \; -rm -f ${FVWM_USERDIR}/.FvwmConsole-History -rm -f ${FVWM_USERDIR}/FvwmCommand-* -rm -f ${FVWM_USERDIR}/tmp/* -echo diff --git a/scripts/kde_colors b/scripts/kde_colors deleted file mode 100755 index 6bf988c..0000000 --- a/scripts/kde_colors +++ /dev/null @@ -1,82 +0,0 @@ -#!/bin/bash - -COLORS_FILE="$(grep kcsrc ${HOME}/.kde/share/config/kdeglobals)" -COLORS_FILE="${HOME}/.kde/share/apps/kdisplay/color-schemes/${COLORS_FILE/colorScheme=/}" -echo "SetEnv kde_colors_file \"${COLORS_FILE}\"" - -echo "UnsetEnv activeBackground" -echo "UnsetEnv activeBlend" -echo "UnsetEnv activeForeground" -echo "UnsetEnv activeTitleBtnBg" -echo "UnsetEnv alternateBackground" -echo "UnsetEnv background" -echo "UnsetEnv buttonBackground" -echo "UnsetEnv buttonForeground" -echo "UnsetEnv foreground" -echo "UnsetEnv frame" -echo "UnsetEnv handle" -echo "UnsetEnv inactiveBackground" -echo "UnsetEnv inactiveBlend" -echo "UnsetEnv inactiveForeground" -echo "UnsetEnv inactiveFrame" -echo "UnsetEnv inactiveHandle" -echo "UnsetEnv inactiveTitleBtnBg" -echo "UnsetEnv linkColor" -echo "UnsetEnv selectBackground" -echo "UnsetEnv selectForeground" -echo "UnsetEnv visitedLinkColor" -echo "UnsetEnv windowBackground" -echo "UnsetEnv windowForeground" - -[ -d "$COLORS_FILE" ] && \ -{ - echo "#Predeterminado de KDE, seteando colores preconfigurados..." - echo "SetEnv activeBackground #418EDC" - echo "SetEnv activeBlend #6B91B8" - echo "SetEnv activeForeground #FFFFFF" - echo "SetEnv activeTitleBtnBg #DCDCDC" - echo "SetEnv alternateBackground #EDF4F9" - echo "SetEnv background #EFEFEF" - echo "SetEnv buttonBackground #DDDFE4" - echo "SetEnv buttonForeground #000000" - echo "SetEnv foreground #000000" - echo "SetEnv frame #EFEFEF" - echo "SetEnv handle #EFEFEF" - echo "SetEnv inactiveBackground #9DAABA" - echo "SetEnv inactiveBlend #9DAABA" - echo "SetEnv inactiveForeground #DDDDDD" - echo "SetEnv inactiveFrame #EFEFEF" - echo "SetEnv inactiveHandle #EFEFEF" - echo "SetEnv inactiveTitleBtnBg #DCDCDC" - echo "SetEnv linkColor #0000EE" - echo "SetEnv selectBackground #678DB2" - echo "SetEnv selectForeground #FFFFFF" - echo "SetEnv visitedLinkColor #52188B" - echo "SetEnv windowBackground #FFFFFF" - echo "SetEnv windowForeground #000000" -} || \ -awk ' - BEGIN { - FS="=" - } - /^\[/ { next } - /^Name/ { next } - /^# KDE/ {next } - /\,/ && !/\#/ { - FS="=" - n=split($2,dec,",") - if ( n == 3) - { - printf("%s %s #","SetEnv",$1) - for(i=1;i<=n;i++) - { - printf("%02X",dec[i]) - } - printf("\n") - } - } - !/\,/ && /\#/ { - FS="=" - printf("%s %s %s\n","SetEnv",$1,$2) - }' \ - "$COLORS_FILE" diff --git a/scripts/kde_colors_have_changed b/scripts/kde_colors_have_changed deleted file mode 100755 index cbc3405..0000000 --- a/scripts/kde_colors_have_changed +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -COLORS_FILE="$(grep kcsrc ${HOME}/.kde/share/config/kdeglobals)" -COLORS_FILE="${HOME}/.kde/share/apps/kdisplay/color-schemes/${COLORS_FILE/colorScheme=/}" -kde_new_colors_file="$COLORS_FILE" - -test_change_colors() { - - echo "kde_colors_file = $kde_colors_file" - echo "kde_new_colors_file = $kde_new_colors_file" - - if [ ! "${kde_new_colors_file}" == "${kde_colors_file}" ] - then - { - FvwmCommand Restart - } - fi - return 0 -} - -inotifywait -m -e moved_to "${HOME}/.kde/share/config/kdeglobals" | \ -while read -do -# test_change_colors - FvwmCommand Restart -done diff --git a/scripts/menu_colorset.sh b/scripts/menu_colorset.sh deleted file mode 100755 index fab3d36..0000000 --- a/scripts/menu_colorset.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# Note to self: -# Make sure that no output is send to stdout -# only stuff that fvwm can digest is allowed -# Just echo the rest with \# in front of the line - -for i in ${FVWM_USERDIR}/colorsets/*.cs -do - echo "+ \"\&$(basename "${i%.cs}")\" ChangeColorset \"${i}\"" -done diff --git a/scripts/menu_decoration.sh b/scripts/menu_decoration.sh deleted file mode 100755 index cde9e84..0000000 --- a/scripts/menu_decoration.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# Note to self: -# Make sure that no output is send to stdout -# only stuff that fvwm can digest is allowed -# Just echo the rest with \# in front of the line - -for i in ${FVWM_USERDIR}/decorations/*.deco -do - echo "+ \"\&$(basename "${i%.deco}")\" ChangeDecoration \"${i}\"" -done diff --git a/scripts/menu_fonttheme.sh b/scripts/menu_fonttheme.sh deleted file mode 100755 index 1b51bc2..0000000 --- a/scripts/menu_fonttheme.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -# Note to self: -# Make sure that no output is send to stdout -# only stuff that fvwm can digest is allowed -# Just echo the rest with \# in front of the line - -for i in ${FVWM_USERDIR}/fontthemes/*.ft -do - echo "+ \"\&$(basename "${i%.ft}")\" ChangeFonttheme \"${i}\"" -done diff --git a/scripts/miau.sh b/scripts/miau.sh deleted file mode 100755 index b20075e..0000000 --- a/scripts/miau.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -sonidos="${FVWM_USERDIR}/cats/" - -MSG=$(fortune) -#kdialog --passivepopup "$MSG" -notify-send --icon="${FVWM_USERDIR}/images/gato_icon.png" --expire-time=25000 "$MSG" - -if [[ -d "${sonidos}" ]] -then - files=$(ls "${sonidos}") - file_matrix=($files) - num_files=${#file_matrix[*]} - play "${sonidos}/${file_matrix[$((RANDOM%num_files))]}" -fi - -exit 0 diff --git a/scripts/panel_thumbnailer.sh b/scripts/panel_thumbnailer.sh deleted file mode 100755 index 8da8a37..0000000 --- a/scripts/panel_thumbnailer.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Note to self: -# Make sure that no output is send to stdout -# only stuff that fvwm can digest is allowed -# Just echo the rest with \# in front of the line - -# Wallpaper directory as a variable makes it more flexible ;-) -# This var is read now in initVars.config -DEBUG=1 -test ! -d "${WALLPAPERDIR}/.thumbs" \ - && mkdir -p "${WALLPAPERDIR}/.thumbs" - -x=$((${width} / 10)) -y=$((${height} / 10)) - -menuthumbsize="${x}x${y}" - -for i in \ - ${WALLPAPERDIR}/*.jpg \ - ${WALLPAPERDIR}/*.png \ - ${WALLPAPERDIR}/*.gif -do \ - if [[ ! -f "${i}" ]]; then continue; fi - if [[ -f "${WALLPAPERDIR}/.thumbs/$(basename ${i}.png)" ]] - then - i_size=$(identify -verbose "${WALLPAPERDIR}/.thumbs/$(basename ${i}.png)" \ - | grep Geometry | sed -e 's/ Geometry: //' | sed -e 's/+.*+.*//') - else - i_size=0x0 - fi - [ "$DEBUG" == "1" ] && echo "#" - [ "$DEBUG" == "1" ] && echo "# $i" - [ "$DEBUG" == "1" ] && echo "# Image size = \"${i_size}\", wanted size = \"${menuthumbsize}\"" - if [[ ! "${menuthumbsize}" == "${i_size}" ]] - then - [ "$DEBUG" == "1" ] && echo "# Thumbnailing: ${i} ..." - convert -scale ${menuthumbsize}! "${i}" "png:${WALLPAPERDIR}/.thumbs/$(basename ${i}).png" - fi -done || (echo error && exit 1) - -for i in \ - ${WALLPAPERDIR}/*.jpg \ - ${WALLPAPERDIR}/*.png \ - ${WALLPAPERDIR}/*.gif -do \ - if [[ ! -f "${i}" ]]; then continue; fi - [ "$DEBUG" == "1" ] && echo "#" - echo "*FvwmWallpaperChanger: (Title \"$(basename ${i})\", Icon \"${WALLPAPERDIR}/.thumbs/$(basename ${i}.png)\", Action (Mouse 1) ChangeWallpaper \"${i}\")" -done - -[ "$DEBUG" == "1" ] && echo "# x,y = $x,$y" - -exit 0 diff --git a/scripts/traffic.sh b/scripts/traffic.sh deleted file mode 100755 index 67910da..0000000 --- a/scripts/traffic.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -while true -do - clear - vnstat -u; vnstat -i ppp0 | grep Database | awk '{print "updated : " $6}' - vnstat -u; vnstat -i ppp0 | grep received | awk '{print "download : " $2 $3}' - vnstat -u; vnstat -i ppp0 | grep transmitted | awk '{print "upload : " $2 $3}' - vnstat -u; vnstat -i ppp0 | grep total: | awk '{print "total : " $2 $3}' - sleep 60 -done |