From 0ad4c95a682fad0df04a319b87352ea97e18733c Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 4 Jul 2017 21:06:29 -0400 Subject: Remove tmux tmux configuration was starting to bother me, and it got worse with Sierra. Turns out that neovim terminal emulation is much more natural to work with and requires less configuration, though I still disapprove of the feature being included in an editor! For detaching and attaching sessions, abduco is a simple tool that seems to work decently, but given that I will likely only be running neovim in the sessions, I might come up with something even simpler. --- curtis/.bin/clock.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 curtis/.bin/clock.c (limited to 'curtis/.bin') diff --git a/curtis/.bin/clock.c b/curtis/.bin/clock.c deleted file mode 100755 index 288884d8..00000000 --- a/curtis/.bin/clock.c +++ /dev/null @@ -1,33 +0,0 @@ -#if 0 -exec cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/clock $0 -#endif - -// Fuzzy clock for display in tmux. - -#include -#include -#include -#include - -int main() { - time_t ts = time(NULL); - if (ts < 0) err(EX_OSERR, "time"); - - struct tm *time = localtime(&ts); - if (!time) err(EX_OSERR, "localtime"); - - int hour = time->tm_hour; - int next = (hour + 1) % 24; - - switch ((time->tm_min + 5) / 10) { - case 0: printf("..%02d..\n", hour); break; - case 1: printf(".%02d...\n", hour); break; - case 2: printf("%02d....\n", hour); break; - case 3: printf("%d....%d\n", hour % 10, next / 10); break; - case 4: printf("....%02d\n", next); break; - case 5: printf("...%02d.\n", next); break; - case 6: printf("..%02d..\n", next); break; - } - - return EX_OK; -} -- cgit 1.4.1