commit c7994a83b8e28148c7b929287ed775077beea9fc Author: David Thurstenson Date: Sun Nov 21 19:51:39 2021 -0600 Initial commit diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3cb40ee --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: David Thurstenson +pkgname=tl-weemux +pkgver=0.1 +pkgrel=1 +pkgdesc="Thurstylark's weechat+tmux setup" +arch=(any) +url="https://git.thurstylark.com/thurstylark/${pkgname}.git/" +license=('GPL') +depends=('weechat' 'tmux' 'mosh') +source=("tl-weemux@.service" + "tmux.conf") +sha256sums=('40cc79f3b9b5267bddf0a54cc417880ddc87e7e1ed705fd02dd72de466df018f' + 'd6d90810f2a1576436bb256a39a4ad3e3d9ccc6a76549efe9774832908c0a01b') + +package() { + cd ${srcdir} + install -Dm644 "tl-weemux@.service" "${pkgdir}/usr/lib/systemd/system/tl-weemux@.service" + install -Dm644 "tmux.conf" "${pkgdir}/etc/tl-weemux/tmux.conf" +} diff --git a/tl-weemux@.service b/tl-weemux@.service new file mode 100644 index 0000000..ca360c7 --- /dev/null +++ b/tl-weemux@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Start Thurstylark's weechat+tmux System +After=network.target + +[Service] +Type=forking +RemainAfterExit=yes +User=%I +Group=%I +ExecStart=/usr/bin/tmux -f /etc/tl-weemux/tmux.conf -L tl-weemux new-session -ds tl-weemux weechat +ExecStop=/usr/bin/tmux -L tl-weemux kill-session -t tl-weemux + +[Install] +WantedBy=default.target +Alias=weechat.service diff --git a/tmux.conf b/tmux.conf new file mode 100644 index 0000000..d7806f5 --- /dev/null +++ b/tmux.conf @@ -0,0 +1,70 @@ +#### +# tl-weemux +# Thurstylark's weechat+tmux setup +# +# tmux.conf + + + +#### +# Keep the session even if no clients are attached +# +# NOTE: CRITICALLY NECESSARY +set -g destroy-unattached off + + + +#### +# Set terminfo +set -g default-terminal "tmux-256color" + + + +#### +# Set base pane and window index to 1 +set -g base-index 1 +set -g pane-base-index 1 + + +#### +# Disable status bar +set -g status off + + +#### +# Change prefix to C-a +set -g prefix C-a + + +#### +# Use C-a,a to send prefix to nested session +bind-key a send-prefix + + +#### +# Set audible bell on, and visual bell off because it is slooooowwwww +set -g bell-action any +set -g visual-bell off +set -g visual-silence off +set -g visual-activity off + + +#### +# No delay for escape key press +set -sg escape-time 0 + + +#### +# Use Alt-arrow keys without prefix key to switch panes +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + + +#### +# Do the same for HJKL +bind -n M-h select-pane -L +bind -n M-l select-pane -R +bind -n M-k select-pane -U +bind -n M-j select-pane -D