]> git.rmz.io Git - dotfiles.git/commitdiff
tmux: weechat service file
authorSamir Benmendil <samir.benmendil@gmail.com>
Thu, 5 Mar 2015 21:34:29 +0000 (21:34 +0000)
committerSamir Benmendil <samir.benmendil@gmail.com>
Thu, 5 Mar 2015 21:39:03 +0000 (21:39 +0000)
Makefile
systemd/user/tmux.service [new file with mode: 0644]
systemd/user/weechat.service [deleted file]
tmux.conf [new file with mode: 0644]

index 9c266c3f77c17e1aa568051898dd7b8f131911d5..9cce614bc99946c64204147b1851e8291f2a7f62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 APATH := $(realpath .)
 
 FILES := bin
-DOTFILES := conky* git* goobookrc msmtp* mutt ncmpcpp profile weechat Xresources xprofile zprofile zshenv zshrc
+DOTFILES := conky* git* goobookrc msmtp* mutt ncmpcpp profile tmux.conf weechat Xresources xprofile zprofile zshenv zshrc
 CONFIGFILES := aliases compton.conf git mimeo.conf mpd mpv offlineimap ranger retroarch systemd vim xbindkeys xkb zsh
 
 .PHONY: install $(FILES) $(DOTFILES) $(CONFIGFILES)
diff --git a/systemd/user/tmux.service b/systemd/user/tmux.service
new file mode 100644 (file)
index 0000000..3396682
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Start tmux server
+
+[Service]
+Type=forking
+Restart=on-failure
+ExecStart=/usr/bin/tmux -f %h/.config/tmux.conf start-server
+ExecReload=/usr/bin/tmux source-file $XDG_CONFIG_HOME/tmux.conf
+ExecStop=/usr/bin/tmux kill-server
+
+[Install]
+WantedBy=default.target
diff --git a/systemd/user/weechat.service b/systemd/user/weechat.service
deleted file mode 100644 (file)
index 618fd18..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Start weechat in detached tmux session
-
-[Service]
-Type=forking
-Restart=on-failure
-ExecStart=/usr/bin/tmux -f %h/.config/tmux.conf new-session -s weechat -d weechat
-ExecStop=/usr/bin/tmux kill-session -t weechat
-
-[Install]
-WantedBy=default.target
diff --git a/tmux.conf b/tmux.conf
new file mode 100644 (file)
index 0000000..32d4fa3
--- /dev/null
+++ b/tmux.conf
@@ -0,0 +1,6 @@
+set -g default-terminal "screen-256color"
+set -g utf8 on
+set -g set-titles on
+set -g mouse-utf8 on
+
+new -s weechat -n weechat weechat