tremoved useless scripts - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 731b5e3228472879eca9f5ae881686d7c46640b5
 (DIR) parent 40bb8a0c67754d56fae74c5cd642f82af54eb97a
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Mon, 12 Jan 2015 20:33:28 +0100
       
       removed useless scripts
       
       Diffstat:
         D info.sh                             |      61 -------------------------------
         D rclick.menu                         |      24 ------------------------
         D setwall                             |      18 ------------------
         D xgroups                             |      70 -------------------------------
         D xscreen                             |      25 -------------------------
       
       5 files changed, 0 insertions(+), 198 deletions(-)
       ---
 (DIR) diff --git a/info.sh b/info.sh
       t@@ -1,61 +0,0 @@
       -#!/bin/sh
       -
       -gitdir=http://git.z3bra.org
       -myblog=http://blog.z3bra.org
       -
       -c00=$'\e[0;30m'
       -c01=$'\e[0;31m'
       -c02=$'\e[0;32m'
       -c03=$'\e[0;33m'
       -c04=$'\e[0;34m'
       -c05=$'\e[0;35m'
       -c06=$'\e[0;36m'
       -c07=$'\e[0;37m'
       -c08=$'\e[1;30m'
       -c09=$'\e[1;31m'
       -c10=$'\e[1;32m'
       -c11=$'\e[1;33m'
       -c12=$'\e[1;34m'
       -c13=$'\e[1;35m'
       -c14=$'\e[1;36m'
       -c15=$'\e[1;37m'
       -
       -f0=$'\e[1;30m'
       -f1=$'\e[1;37m'
       -f2=$'\e[0;37m'
       -
       -kernel=`uname -rmo`
       -cpuspe="`sed -n '/model\ name/s/^.*:\ //p' /proc/cpuinfo | uniq` (x`nproc`)"
       -system=`sed 's/\s*[\(\\]\+.*$//' /etc/issue`
       -
       -if [ -n "$DISPLAY" ]; then
       -    wmname=`xprop -root WM_NAME|cut -d\" -f2`
       -    termfn=`sed -n 's/^.*\*font:\s* -\*-\([^-]*\)-.*/\1/p' ~/.Xresources|sed 1q`
       -    systfn=`sed -n 's/^.*font.*"\(.*\)".*$/\1/p' ~/.gtkrc-2.0`
       -else
       -    wmname="none"
       -    termfn="none"
       -    systfn="none"
       -fi
       -
       -pkgnum=`pacman -Q|wc -l`
       -birthd=`sed -n '1s/^\[\([0-9-]*\).*$/\1/p' /var/log/pacman.log | tr - .`
       -
       -cat << EOF
       -${c00}▉▉  | ${f1}OS ${f0}........... $f2$system
       -${c08}  ▉▉| ${f1}name ${f0}......... $f2$HOSTNAME
       -${c01}▉▉  | ${f1}birth day${f0}..... $f2$birthd
       -${c09}  ▉▉| ${f1}packages ${f0}..... $f2$pkgnum
       -${c02}▉▉  | 
       -${c10}  ▉▉| ${f1}wm ${f0}........... $f2$wmname
       -${c03}▉▉  | ${f1}shell ${f0}........ $f2$SHELL
       -${c11}  ▉▉| ${f1}terminal ${f0}..... $f2$TERM
       -${c04}▉▉  | ${f1}term font ${f0}.... $f2$termfn
       -${c12}  ▉▉| ${f1}system font ${f0}.. $f2$systfn
       -${c05}▉▉  | 
       -${c13}  ▉▉| ${f1}kernel ${f0}....... $f2$kernel
       -${c06}▉▉  | ${f1}processor ${f0}.... $f2$cpuspe
       -${c14}  ▉▉| 
       -${c07}▉▉  | ${f1}blog ${f0}......... $f2$myblog
       -${c15}  ▉▉| ${f1}git repos ${f0}.... $f2$gitdir
       -EOF
 (DIR) diff --git a/rclick.menu b/rclick.menu
       t@@ -1,24 +0,0 @@
       -#!/usr/bin/9menu -file
       --popup
       --geometry 8x16
       --font -misc-tamsyn-medium-r-normal--12-87-100-100-c-60-iso8859-1
       - COMMON ---- :true
       -        tmnl :urxvt
       -         www :dwb
       -        mail :urxvt -e mutt
       - GAMES ----- :true
       -       steam :steam
       -      defrag :ioquake3 +set fs_game defrag
       -        2048 :surf http://gabrielecirulli.github.io/2048/
       -   teeworlds :teeworlds
       - sauerbraten :sauerbraten-client
       - WORK ------ :true
       -       mstsc :~/bin/srv fic97302
       -         vnc :vncviewer
       -        fltk :fluid ~/src/cpp/cico/src/fltk.fl
       -         pdf :zathura || mupdf
       - SESSION --- :true
       -     restart :pkill 2bwm;2bwm
       -        quit :pkill xclock
       -      reboot :reboot
       -   power off :poweroff
 (DIR) diff --git a/setwall b/setwall
       t@@ -1,18 +0,0 @@
       -#!/bin/sh
       -
       -bgdir="$HOME/usr/img/bg"
       -wall="$bgdir/default.jpg"
       -
       -test -z "$1" && return
       -
       -# get screen dir
       -IFS='x ' read sw sh <<< `xrandr | awk '/*/ {print $1}'`
       -
       -# get image dimensions (needs two lines because of IFS, no idea why)
       -IFS=' ' isize=`identify $1 | awk '{print $3}'`
       -IFS='x ' read iw ih <<< `echo $isize`
       -
       -test $iw -lt $sw && mode='tile' || mode='fill'
       -
       -test -L $1 && wall=$1 || ln -sf $1 $wall
       -hsetroot -${mode} $wall
 (DIR) diff --git a/xgroups b/xgroups
       t@@ -1,70 +0,0 @@
       -#!/bin/sh
       -#
       -# z3bra - (c) wtfpl 2014
       -
       -usage () {
       -    cat <<EOF
       -usage: $(basename $0) [-hta]
       -    -h : print help
       -    -c : print the current group number (default)
       -    -t : print the number of groups
       -    -a : print all groups
       -
       -environment:
       -    GRP_CURRENT : look of current dekstop
       -    GRP_HAZWIN  : look of desktop holding windows
       -    GRP_EMPTY   : look of empty groups
       -    SEPARATOR   : group separator (on the right of each desktop)
       -EOF
       -}
       -
       -# display the current group
       -current () {
       -    xprop -root _NET_CURRENT_DESKTOP | awk '{print $3}'
       -}
       -
       -# display the total number of groups
       -total () {
       -    xprop -root _NET_NUMBER_OF_DESKTOPS | awk '{print $3}'
       -}
       -
       -# print current group and shown groups
       -fullbar () {
       -    cur=$(current)
       -    tot=$(total)
       -    max=$((tot - 1))
       -
       -    # create a list containing the groups holding at least one window
       -    for wid in `xprop -root | sed '/_LIST(WINDOW)/!d;s/.*# //;s/,//g'`; do
       -        # uncomment this "if" statement to show groups only if their windows
       -        # are visible
       -        #if grep -q 'IsViewable' <<< $(xwininfo -id $wid); then
       -            grp=`xprop -id $wid _NET_WM_DESKTOP | awk '{print $3}'`
       -            shown="$shown $grp"
       -        #fi
       -    done
       -
       -    # create a bar containing all desktops
       -    for g in `seq 0 ${max}`; do
       -        if test $g -eq $cur; then         l="${l}${GRP_CURRENT}"
       -        elif grep -q $g <<<"$shown"; then l="${l}${GRP_HAZWIN}"
       -        else                              l="${l}${GRP_EMPTY}"
       -        fi
       -
       -        test ${g} -lt ${max} && l="${l}${SEPARATOR}"
       -    done
       -
       -    echo "$l"
       -}
       -
       -GRP_CURRENT=${GRP_CURRENT:-*}
       -GRP_HAZWIN=${GRP_HAZWIN:-+}
       -GRP_EMPTY=${GRP_EMPTY:--}
       -SEPARATOR=${SEPARATOR:- }
       -
       -case $1 in
       -    -h) usage ;;
       -    -t) total ;;
       -    -a) fullbar ;;
       -     *) current ;;
       - esac
 (DIR) diff --git a/xscreen b/xscreen
       t@@ -1,25 +0,0 @@
       -#!/bin/sh
       -#
       -# z3bra - (c) wtfpl 2014
       -
       -usage () {
       -    cat <<EOF
       -usage: $(basename $0) [-hptu]
       -    -h : height of the screen
       -    -w : width of the screen
       -    -g : print full size (default)
       -
       -environment:
       -    SCREEN : number of the screen to parse
       -EOF
       -}
       -
       -
       -IFS='x' read w h <<< "$(xrandr | awk '/\*/ {print $1}' | sed -n ${SCREEN}p)"
       -
       -case $1 in
       -    --help) usage ;;
       -    -h) echo $h ;;
       -    -w) echo $w ;;
       -     *) echo ${w}x${h} ;;
       - esac