瀏覽代碼

tmux service

systemd-xsession
父節點
當前提交
8cf5d0cffb
共有 2 個檔案被更改,包括 20 行新增0 行删除
  1. +5
    -0
      handlers/main.yaml
  2. +15
    -0
      tasks/tmux.yaml

+ 5
- 0
handlers/main.yaml 查看文件

@@ -0,0 +1,5 @@
---
- name: systemd daemon-reload
systemd:
daemon_reload: yes
scope: user

+ 15
- 0
tasks/tmux.yaml 查看文件

@@ -5,3 +5,18 @@
src: tmux.conf.j2
dest: ~/.tmux.conf
mode: 0755

- name: systemd user config directory
file:
path: ~/.config/systemd/user
state: directory
- name: tmux systemd user service unit
template:
src: tmux@.service.j2
dest: ~/.config/systemd/user/tmux@.service
notify: systemd daemon-reload
- name: tmux systemd user service unit
template:
src: tmux@.service.j2
dest: ~/.config/systemd/user/tmux@.service
notify: systemd daemon-reload