dotfiles/systemd/.config/systemd/user/tmux-session.service
Sanchayan Maity 8a7567a8b1 Start tmux sessions using systemd
While starting the tmux sessions from fish worked some environment
variables were not getting picked up in tmux session.

For example DISPLAY is set after we log in and the graphical sway
session starts but since tmux sessions were started before that it
would be absent from the tmux session. We may be wrong about the
exact order and reasoning for this but atleast that is the observed
behaviour.

Fix this by defining a sway session target and making the tmux session
service dependent on it.
2022-04-04 18:07:50 +05:30

9 lines
152 B
Desktop File

[Unit]
Description=Start all tmux sessions on login
[Service]
Type=forking
ExecStart=%h/.tmux/session-setup.sh
[Install]
WantedBy=sway-session.target