mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
systemd: use systemd to start tmux server
This commit is contained in:
parent
2463736fdc
commit
95dd95e4ce
4 changed files with 9 additions and 1 deletions
|
@ -4,6 +4,7 @@ PartOf=graphical-session@%i.target
|
||||||
After=autorandr@%i.service
|
After=autorandr@%i.service
|
||||||
After=compton@%i.service
|
After=compton@%i.service
|
||||||
After=xsettingsd@%i.service
|
After=xsettingsd@%i.service
|
||||||
|
After=tmux.service
|
||||||
Before=nm-applet@%i.service
|
Before=nm-applet@%i.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
|
|
@ -12,3 +12,4 @@ Wants=redshift@%i.service
|
||||||
Wants=xiccd@%i.service
|
Wants=xiccd@%i.service
|
||||||
Wants=xsettingsd@%i.service
|
Wants=xsettingsd@%i.service
|
||||||
Wants=xss-lock@%i.service
|
Wants=xss-lock@%i.service
|
||||||
|
Wants=tmux.service
|
||||||
|
|
7
systemd/tmux.service
Normal file
7
systemd/tmux.service
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=tmux session
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/tmux start-server
|
||||||
|
ExecStop=/usr/bin/tmux kill-server
|
1
xsession
1
xsession
|
@ -21,7 +21,6 @@ export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
||||||
|
|
||||||
# Services are started with systemd
|
# Services are started with systemd
|
||||||
systemctl --user import-environment
|
systemctl --user import-environment
|
||||||
systemd-run -q --scope --user tmux start-server
|
|
||||||
mkdir -p ~/.config/systemd
|
mkdir -p ~/.config/systemd
|
||||||
ln -nsf ~/.config/awesome/systemd ~/.config/systemd/user
|
ln -nsf ~/.config/awesome/systemd ~/.config/systemd/user
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue