This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======= Makefile ======= | |
CFLAGS = -Wall -Wextra -O0 -g3 -ggdb3 `pkg-config --cflags x11 cairo pangocairo` | |
LDFLAGS = -O0 `pkg-config --libs x11 cairo pangocairo` | |
all: ui-cairo-x11 | |
ui-cairo-x11: ui-cairo-x11.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paste -d'|' \ | |
<( ls --color=never -a -p -1 --ignore='.[[:alnum:]]*' "${1}" | tail -n+1 ) \ | |
<( ls --color=never -a -p -1 -d "${1}/"{.,..,*} ) \ | |
| bbe -e 's/|/\0info\x1f/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <time.h> | |
#include <stdio.h> | |
/* In-place counter wrapper code */ | |
#define begin_perf(time, idle_time, name) { \ | |
clock_t tstart = clock (); \ | |
clock_t tcur = 0; \ | |
guint64 counter = 0; \ | |
int sec = -(idle_time); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configuration { | |
modi: "window,windowcd,run,drun,ssh,file-browser,calc,keys,combi"; | |
/* width: 3;*/ | |
/* lines: 15;*/ | |
/* columns: 1;*/ | |
font: "mono 10"; | |
bw: 1; | |
location: 2; | |
padding: 0; | |
yoffset: 26; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://stackoverflow.com/a/37105443 | |
fatal() { | |
printf '%s\n' "$1" | |
exit 1 | |
} | |
path= | |
depth=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
monitor = 0 | |
follow = mouse | |
geometry = "0x5-15+30" | |
indicate_hidden = yes | |
shrink = yes | |
transparency = 0 | |
notification_height = 0 | |
separator_height = 1 | |
padding = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <signal.h> | |
void action_usr1 (int sig) | |
{ | |
sleep (3); | |
puts ("usr1"); | |
fflush (stdout); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# exec depends: git, sed, sort | |
# commit archive url formats: | |
# repo.or.cz: ${GIT_REPO_URI}/snapshot/${COMMIT}.tar.gz | |
# github: ${GIT_REPO_URI}/archive/${COMMIT}.tar.gz | |
# gitlab: ${GIT_REPO_URI}/-/archive/${COMMIT}/${PROJECT}-${COMMIT}.tar.bz2 | |
# git.tuxfamily.org, | |
# savannah/cgit: ${GIT_REPO_URI}/snapshot/${PROJECT}-${COMMIT}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TIMEOUT=${TIMEOUT:-10} # seconds | |
COLOR=${COLOR:-1} # 0 or 1 | |
LOG_LEVEL=${LOG_LEVEL:-1} # 0..2 | |
newline() { printf '\n'; } | |
line_over() { printf "${cl_back}"'\r%s' "$1"; } | |
cl_back="$(tput el1)" |