diff options
-rw-r--r-- | .repos/sent/.gitignore | 30 | ||||
-rw-r--r-- | .repos/sent/config.h | 63 | ||||
-rw-r--r-- | .repos/st/.gitignore | 5 | ||||
-rwxr-xr-x | .scripts/excerpt_copy | 14 | ||||
-rwxr-xr-x | backup | 1 |
5 files changed, 78 insertions, 35 deletions
diff --git a/.repos/sent/.gitignore b/.repos/sent/.gitignore deleted file mode 100644 index 4c303b0..0000000 --- a/.repos/sent/.gitignore +++ /dev/null @@ -1,30 +0,0 @@ -# Object files -*.o -*.ko -*.obj -*.elf - -# Libraries -*.lib -*.a - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex -/sent - -# vim -*.swp -*~ - -config.h diff --git a/.repos/sent/config.h b/.repos/sent/config.h new file mode 100644 index 0000000..407b1df --- /dev/null +++ b/.repos/sent/config.h @@ -0,0 +1,63 @@ +/* See LICENSE file for copyright and license details. */ + +static char *fontfallbacks[] = { + "Latin Modern Math", + "dejavu sans", + "roboto", + "ubuntu", +}; +#define NUMFONTSCALES 42 +#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */ + +static const char *colors[] = { + "#282c34", /* foreground color */ + "#abb2bf", /* background color */ +}; + +static const char *dark_colors[] = { + "#abb2bf", /* foreground color */ + "#282c34", /* background color */ +}; + +static const float linespacing = 1.4; + +/* how much screen estate is to be used at max for the content */ +static const float usablewidth = 0.75; +static const float usableheight = 0.75; + +static Mousekey mshortcuts[] = { + /* button function argument */ + { Button1, advance, {.i = +1} }, + { Button3, advance, {.i = -1} }, + { Button4, advance, {.i = -1} }, + { Button5, advance, {.i = +1} }, +}; + +static Shortcut shortcuts[] = { + /* keysym function argument */ + { XK_Escape, quit, {0} }, + { XK_q, quit, {0} }, + { XK_Right, advance, {.i = +1} }, + { XK_Left, advance, {.i = -1} }, + { XK_Return, advance, {.i = +1} }, + { XK_space, advance, {.i = +1} }, + { XK_BackSpace, advance, {.i = -1} }, + { XK_l, advance, {.i = +1} }, + { XK_h, advance, {.i = -1} }, + { XK_j, advance, {.i = +1} }, + { XK_k, advance, {.i = -1} }, + { XK_Down, advance, {.i = +1} }, + { XK_Up, advance, {.i = -1} }, + { XK_Next, advance, {.i = +1} }, + { XK_Prior, advance, {.i = -1} }, + { XK_n, advance, {.i = +1} }, + { XK_p, advance, {.i = -1} }, + { XK_i, toggle_theme, {0} }, + { XK_r, reload, {0} }, +}; + +static Filter filters[] = { + { "\\.ff$", "cat" }, + { "\\.ff.bz2$", "bunzip2" }, + { "\\.[a-z0-9]+$", "2ff" }, +}; diff --git a/.repos/st/.gitignore b/.repos/st/.gitignore deleted file mode 100644 index 732bca7..0000000 --- a/.repos/st/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -st -*.o -pkg/ -*.pkg.tar.xz -patches diff --git a/.scripts/excerpt_copy b/.scripts/excerpt_copy new file mode 100755 index 0000000..c183ea7 --- /dev/null +++ b/.scripts/excerpt_copy @@ -0,0 +1,14 @@ +#!/bin/bash + +BEGIN=$1 +DURATION=$2 +SRC="$3" +DST="$4" + + +ffmpeg -y -nostdin -ss $BEGIN -i "$SRC" -t $DURATION -codec:v copy -codec:a copy -codec:d copy \ + "$DST" + + +#ffmpeg -ss $BEGIN -i $SRC -to $END -strict -2 ${DST}.mp4 + @@ -50,6 +50,7 @@ scp -rq "$HOME"/.crypto/ root@10.0.0.33:/mnt/ssd/ echo "Cleaning suckless configs" cp -r "$HOME"/.repos/* .repos/ find .repos/ -type d -name ".git" -exec rm -rf {} + +find .repos/ -type f -name ".gitignore" -exec rm -f {} + find .repos/ -type f -exec sh -c "file -i '{}' | grep -q 'charset=binary'" \; -delete # Installed programs |