From 414b067f8e3f7daeefda0462934ec36d4f128310 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 8 Apr 2020 22:21:32 -0700 Subject: Initial import --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa5cf27 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# tmux+irssi as a systemd user-service + +A collection of hacks to run [irssi](https://irssi.org/) inside [tmux](https://tmux.github.io/) via a systemd user service. + +I hope by publishing this that someone can be inspired to find a way to do it without so many awful hacks (and let me know about it!). + +## Why + +I use [adv_windowlist.pl](https://github.com/irssi/scripts.irssi.org/blob/master/scripts/adv_windowlist.pl) which has great integration with tmux. + +I want irssi to start and stop cleanly on system reboot, which means starting up tmux. + +## What + +* `irssi.service`: systemd user service. Install to `/etc/systemd/user/` +* `tmux-irssi.env`: optional environment file. Install to `~/.config/` +* `pid.pl`: irssi script to write a pid file. Install to `~/.irssi/scripts/` (and symlink in `~/.irssi/scripts/autorun/`) + +## Installation + +After installing the files, just enable the service: + +```sh +$ systemctl --user daemon-reload +$ systemctl --user enable --now irssi +``` + +The you can connect to tmux with + +```sh +tmux -L irssi attach +``` -- cgit v1.2.3