shorter wav file. remove trailing newline. potentially use a single color.

This commit is contained in:
Christopher Jeffrey 2014-07-29 12:25:43 -07:00
parent 276d7fba73
commit e8963dec40
2 changed files with 2 additions and 1 deletions

View File

@ -254,6 +254,7 @@ lockscreen(Display *dpy, int screen) {
0, DefaultDepth(dpy, lock->screen), CopyFromParent,
DefaultVisual(dpy, lock->screen), CWOverrideRedirect | CWBackPixel, &wa);
XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), COLOR2, &color, &dummy);
// XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), COLOR1, &color, &dummy);
lock->colors[1] = color.pixel;
XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), COLOR1, &color, &dummy);
lock->colors[0] = color.pixel;

View File

@ -16,6 +16,6 @@ fi
exec 2> /dev/null
pw=$1
if test -z "$pw"; then
pw=$(cat ~/.slock_passwd)
pw=$(cat ~/.slock_passwd | xargs printf '%s')
fi
exec slock -p "$pw"