aboutsummaryrefslogtreecommitdiffstats
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/irssi.service2
-rw-r--r--user/monitoring.service2
-rw-r--r--user/rtorrent.service2
-rw-r--r--user/tmux.service2
-rw-r--r--user/weechat.service2
5 files changed, 5 insertions, 5 deletions
diff --git a/user/irssi.service b/user/irssi.service
index 5b0b351..fe5f4c7 100644
--- a/user/irssi.service
+++ b/user/irssi.service
@@ -7,7 +7,7 @@ ConditionFileIsExecutable=/usr/bin/weechat
[Service]
Type=forking
KillMode=control-group
-Environment=TMUX_TMPDIR=/run/user/%U/tmux
+Environment=TMUX_TMPDIR=%t/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
diff --git a/user/monitoring.service b/user/monitoring.service
index fb9fa1b..8bb3909 100644
--- a/user/monitoring.service
+++ b/user/monitoring.service
@@ -9,7 +9,7 @@ ConditionFileIsExecutable=/usr/bin/loginctl
[Service]
Type=forking
KillMode=control-group
-Environment=TMUX_TMPDIR=/run/user/%U/tmux
+Environment=TMUX_TMPDIR=%t/tmux
ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStart=/usr/bin/tmux -L mon new-session -d -s mon -n htop htop
ExecStartPost=/usr/bin/tmux -L mon new-window -n glances glances
diff --git a/user/rtorrent.service b/user/rtorrent.service
index 4645db2..8080aae 100644
--- a/user/rtorrent.service
+++ b/user/rtorrent.service
@@ -8,7 +8,7 @@ ConditionFileIsExecutable=/usr/bin/rtorrent
[Service]
Type=forking
KillMode=none
-Environment=TMUX_TMPDIR=/run/user/%U/tmux
+Environment=TMUX_TMPDIR=%t/tmux
ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStartPre=/usr/bin/mkdir -p /home/%u/Downloads/rtorrent/tmp
ExecStartPre=/usr/bin/mkdir -p /home/%u/Downloads/rtorrent/session
diff --git a/user/tmux.service b/user/tmux.service
index 1143af5..fe0fe73 100644
--- a/user/tmux.service
+++ b/user/tmux.service
@@ -6,7 +6,7 @@ ConditionFileIsExecutable=/usr/bin/tmux
[Service]
Type=forking
KillMode=control-group
-Environment=TMUX_TMPDIR=/run/user/%U/tmux
+Environment=TMUX_TMPDIR=%t/tmux
ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStart=/usr/bin/tmux new-session -s user -d
ExecStop=/usr/bin/tmux kill-session -t user
diff --git a/user/weechat.service b/user/weechat.service
index 0aa620b..3708739 100644
--- a/user/weechat.service
+++ b/user/weechat.service
@@ -7,7 +7,7 @@ ConditionFileIsExecutable=/usr/bin/weechat
[Service]
Type=forking
KillMode=control-group
-Environment=TMUX_TMPDIR=/run/user/%U/tmux
+Environment=TMUX_TMPDIR=%t/tmux
ExecStartPre=/usr/bin/mkdir -p $TMUX_TMPDIR
ExecStart=/usr/bin/tmux -L weechat new-session -d -s weechat -n weechat weechat
ExecStop=/usr/bin/tmux -L weechat send-keys -t weechat:1 /quit Enter