Initial commit
This commit is contained in:
commit
c7994a83b8
|
@ -0,0 +1,19 @@
|
|||
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
||||
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"
|
||||
}
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue