aboutsummaryrefslogtreecommitdiffstats
path: root/user/irssi.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-06-28 14:28:07 +0200
committerDavid Runge <dave@sleepmap.de>2015-06-28 14:28:07 +0200
commite7908f5deb220c18a1d2c7358004999717e6311c (patch)
treee9747ee10c045d89adce6e671516091e09707e05 /user/irssi.service
parenta7453e21a5d1ea46f62ddec13c384aa021ba0a4d (diff)
downloaduenv-e7908f5deb220c18a1d2c7358004999717e6311c.tar.gz
uenv-e7908f5deb220c18a1d2c7358004999717e6311c.tar.bz2
uenv-e7908f5deb220c18a1d2c7358004999717e6311c.tar.xz
uenv-e7908f5deb220c18a1d2c7358004999717e6311c.zip
user/irssi.service: Adding irssi as a new tmux driven environment in a systemd --user service
Diffstat (limited to 'user/irssi.service')
-rw-r--r--user/irssi.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/user/irssi.service b/user/irssi.service
new file mode 100644
index 0000000..5b0b351
--- /dev/null
+++ b/user/irssi.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Irssi in a separate tmux session
+After=network.target local-fs.target
+ConditionFileIsExecutable=/usr/bin/tmux
+ConditionFileIsExecutable=/usr/bin/weechat
+
+[Service]
+Type=forking
+KillMode=control-group
+Environment=TMUX_TMPDIR=/run/user/%U/tmux
+ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
+ExecStart=/usr/bin/tmux -L irssi new-session -d -s irssi -n irssi irssi
+ExecStop=/usr/bin/tmux -L irssi send-keys -t irssi:1 /quit Enter
+
+[Install]
+WantedBy=default.target