Compare commits

...

2 commits

Author SHA1 Message Date
davidovki
33fb893a31 Added slock configuration files 2023-03-16 11:32:48 +00:00
davidovski
a8944ec46d Add wave output for mpd 2023-03-16 11:21:17 +00:00
4 changed files with 38 additions and 0 deletions

View file

@ -13,6 +13,14 @@ audio_output {
max_clients "0"
}
audio_output {
type "httpd"
name "HQ HTTP Stream"
encoder "wave" # optional, vorbis or lame
port "6681"
max_clients "0"
}
audio_output {
type "pulse"
name "mpd"

View file

@ -85,6 +85,10 @@ load () {
mkdir -p ~/.urxvt/ext/
cp /tmp/urxvt-resize-font/resize-font ~/.urxvt/ext/
cd slock
./deploy.sh
cd -
echo "Copied configurations!"
else

12
slock/config.h Normal file
View file

@ -0,0 +1,12 @@
/* user and group to drop privileges to */
static const char *user = "nobody";
static const char *group = "nogroup";
static const char *colorname[NUMCOLS] = {
[INIT] = "#191919", /* after initialization */
[INPUT] = "#282a2e", /* during input */
[FAILED] = "#cc6666", /* wrong password */
};
/* treat a cleared input like a wrong password (color) */
static const int failonclear = 1;

14
slock/deploy.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
pkgver=1.5
[ -d "~/.local/src" ]mkdir -p ~/.local/src
curl -o ~/.local/src/slock-$pkgver.tar.gz https://dl.suckless.org/tools/slock-$pkgver.tar.gz
tar -C ~/.local/src/ -xvf ~/local/src/slock-$pkgver.tar.gz
srcdir=~/.local/src/slock-$pkgver
cp config.h $srcdir
make -C $srcdir
doas make -C $srcdir install PREFIX=/usr