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)
--- /dev/null
+[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
+++ /dev/null
-[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
--- /dev/null
+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