From: Samir Benmendil Date: Thu, 5 Mar 2015 21:34:29 +0000 (+0000) Subject: tmux: weechat service file X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/12edf8f6c10bec811e24362d1c8ce879a297ddb0 tmux: weechat service file --- diff --git a/Makefile b/Makefile index 9c266c3..9cce614 100644 --- 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 index 0000000..3396682 --- /dev/null +++ b/systemd/user/tmux.service @@ -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 index 618fd18..0000000 --- a/systemd/user/weechat.service +++ /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 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