Things


Minor stuff i think of as useful for people who happen to be the not me kind of person.

dwb_collect


I try to gather dwb patches
https://bitbucket.org/0mark/dwb_collect

sitnol.sh


Send SIGHALT or SIGCONT to all user-processes, except SSH and everything that runs on a TTY. Good to run on LID events, stops f***ing flash shit from producing entropy.
#!/bin/sh

uids="$(cat /etc/passwd | egrep ":x:[0-9]{4,}" | cut -d ":" -f 3 | tr "\n" " ")"
#pids="$(ps U "${uids:0:-1}" -o pid | tr "\n" " ")"
pids="$(ps U "${uids:0:-1}" | egrep -v "(ssh)|(PID TTY)" | cut -d " " -f 1 | tr "\n" " ")"

if [ "$1" == "close" ]; then
    for p in a $pids; do
        if [[ "$p" =~ ^[0-9]+$ ]]; then
            logger "Stopping $p"
            kill -STOP $p
        fi
    done
else
    for p in a $pids; do
        if [[ "$p" =~ ^[0-9]+$ ]]; then
            logger "Starting $p"
            kill -CONT $p
        fi
    done
fi

If it doesn't work change the cut parameter "-f 1" to "-f 2".

dmount


Simple script to mount/unmount things using dmenu.
https://gist.github.com/0mark/6282407

rdbks


Simple backup script using rsync. Set a list of directories to back up within the script. Each directory can have a file ".exclude" with a list of thing to exclude from backup (rsync notation).
https://gist.github.com/0mark/6282320

jfhmpf (hmpf)


Hmpf is a backend for mpd in haskell, jfhmpf is a web frontend to hmpf.
https://github.com/0mark/hmpf

not done yet things


Stuff i use, but is not ready to be used by others. No doc and things.

ferrydust


A something to do things without a DE. Not really ready, no documentation.
https://github.com/0mark/ferrydust

acpithings


My acpi settings / scripts
https://github.com/0mark/acpithings

half forks


Stuff that is more than a patch but not evolved into something new


powerdown


More configurable.
https://github.com/0mark/powerdown

Patches


Some little patches for other stuff thats either not pulled yet or not asked yet.

srandr sighub execute


Execute on sighub (useful for dock users)
https://bitbucket.org/0mark/srandrd

'test' action for ldm


To blacklist shit
https://github.com/0mark/ldm
total: 86.52ms (include: 2.36, request: 0.83, trace: 0.35, init: 3.28, load: 0.01, parse: 76.23, menu: 1.19, template: 2.2, minify: 0.07)