summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-07-04 21:06:29 -0400
committerJune McEnroe <june@causal.agency>2017-07-04 21:06:29 -0400
commitccb806d0bd8369100c51d901873d332522087351 (patch)
treed55cee02720cb9721043febe8cfc1a9b6446a24d
parentShow terminal title in statusline (diff)
downloadsrc-ccb806d0bd8369100c51d901873d332522087351.tar.gz
src-ccb806d0bd8369100c51d901873d332522087351.zip
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.
Diffstat (limited to '')
-rwxr-xr-xhome/.bin/clock.c33
-rw-r--r--home/.tmux.conf54
-rwxr-xr-xinstall.sh2
-rwxr-xr-xlink.sh2
4 files changed, 1 insertions, 90 deletions
diff --git a/home/.bin/clock.c b/home/.bin/clock.c
deleted file mode 100755
index 288884d8..00000000
--- a/home/.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 <time.h>
-#include <stdio.h>
-#include <sysexits.h>
-#include <err.h>
-
-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;
-}
diff --git a/home/.tmux.conf b/home/.tmux.conf
deleted file mode 100644
index e577da4b..00000000
--- a/home/.tmux.conf
+++ /dev/null
@@ -1,54 +0,0 @@
-set -g base-index 1
-set -g renumber-windows on
-set -g default-terminal 'screen-256color'
-set -g terminal-overrides "linux:cnorm=\e[?25h\e[?8c" # cvvis
-set -g escape-time 0
-
-unbind C-b
-set -g prefix C-space
-bind space send-prefix
-
-bind t new-window -c '#{pane_current_path}'
-bind s split-window -v -c '#{pane_current_path}'
-bind v split-window -h -c '#{pane_current_path}'
-
-bind C-space last-window
-bind C-w last-pane
-bind h previous-window
-bind l next-window
-bind n switch-client -n
-bind e switch-client -p
-
-bind L swap-pane -D
-bind H swap-pane -U
-
-bind = select-layout even-horizontal
-bind -r < resize-pane -L 1
-bind -r > resize-pane -R 1
-bind -r - resize-pane -U 1
-bind -r + resize-pane -D 1
-
-bind p paste-buffer
-bind Escape copy-mode
-bind -T copy-mode-vi i send -X cancel
-bind -T copy-mode-vi v send -X begin-selection
-bind -T copy-mode-vi C-v send -X rectangle-toggle
-bind -T copy-mode-vi y send -X copy-selection
-
-bind -T copy-mode-vi n send -X cursor-down
-bind -T copy-mode-vi e send -X cursor-up
-bind -T copy-mode-vi k send -X search-again
-bind -T copy-mode-vi K send -X search-reverse
-bind -T copy-mode-vi j send -X next-word-end
-bind -T copy-mode-vi J send -X next-space-end
-
-set -g status-position top
-set -g status-style bg=black,fg=white
-set -g window-status-separator '|'
-set -g window-status-format ' #{=20:pane_title} '
-set -g window-status-current-format '#[reverse] #{pane_title} '
-set -g status-left '|'
-set -g status-right '[#h:#S] #(clock)'
-
-bind -r F6 run-shell 'bri -'
-bind -r F7 run-shell 'bri +'
diff --git a/install.sh b/install.sh
index 89f86d3f..497bc232 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -eu
 
-common='gdb git gnupg htop the_silver_searcher tmux tree'
+common='gdb git gnupg htop the_silver_searcher tree'
 
 macos() {
   homebrew=https://raw.githubusercontent.com/Homebrew/install/master/install
diff --git a/link.sh b/link.sh
index bac13272..ca87b0c0 100755
--- a/link.sh
+++ b/link.sh
@@ -22,7 +22,6 @@ link() {
 }
 
 link '.bin/bri.c'
-link '.bin/clock.c'
 link '.bin/jrp.c'
 link '.bin/manpager'
 link '.bin/pbcopy.c'
@@ -42,5 +41,4 @@ link '.hushlogin'
 link '.inputrc'
 link '.psqlrc'
 link '.ssh/config'
-link '.tmux.conf'
 link '.zshrc'