@@ -4,3 +4,17 @@ | |||||
systemd: | systemd: | ||||
daemon_reload: yes | daemon_reload: yes | ||||
scope: user | scope: user | ||||
- name: xsession reload | |||||
systemd: | |||||
name: xsession-reload.service | |||||
state: started | |||||
scope: user | |||||
failed_when: false | |||||
- name: i3 reload | |||||
systemd: | |||||
name: i3wm.service | |||||
state: reloaded | |||||
scope: user | |||||
failed_when: false |
@@ -5,16 +5,17 @@ | |||||
path: ~/.config/i3 | path: ~/.config/i3 | ||||
state: directory | state: directory | ||||
- name: i3 config | |||||
template: | |||||
src: i3/i3.config.j2 | |||||
dest: ~/.config/i3/config | |||||
- name: i3 null config | - name: i3 null config | ||||
template: | template: | ||||
src: i3/i3.null.config.j2 | src: i3/i3.null.config.j2 | ||||
dest: ~/.config/i3/null.config | dest: ~/.config/i3/null.config | ||||
- name: i3 config | |||||
template: | |||||
src: i3/i3.config.j2 | |||||
dest: ~/.config/i3/config | |||||
notify: i3 reload | |||||
- name: check i3 config | - name: check i3 config | ||||
command: i3 -c ~/.config/i3/config -C | command: i3 -c ~/.config/i3/config -C | ||||
changed_when: false | changed_when: false | ||||
@@ -23,6 +24,7 @@ | |||||
file: | file: | ||||
path: ~/.config/i3blocks | path: ~/.config/i3blocks | ||||
state: directory | state: directory | ||||
notify: i3 reload | |||||
- name: i3wm graphical-session service | - name: i3wm graphical-session service | ||||
template: | template: | ||||
@@ -10,3 +10,4 @@ | |||||
src: rofi/rofi.theme.j2 | src: rofi/rofi.theme.j2 | ||||
dest: ~/.config/rofi/theme | dest: ~/.config/rofi/theme | ||||
mode: 0755 | mode: 0755 | ||||
notify: xsession reload |
@@ -4,17 +4,20 @@ | |||||
template: | template: | ||||
src: x11/Xresources.j2 | src: x11/Xresources.j2 | ||||
dest: ~/.Xresources | dest: ~/.Xresources | ||||
notify: xsession reload | |||||
- name: Xmodmap | - name: Xmodmap | ||||
template: | template: | ||||
src: x11/Xmodmap.j2 | src: x11/Xmodmap.j2 | ||||
dest: ~/.Xmodmap | dest: ~/.Xmodmap | ||||
notify: xsession reload | |||||
- name: xsession reload script | - name: xsession reload script | ||||
template: | template: | ||||
src: x11/xsession.reload.fish.j2 | src: x11/xsession.reload.fish.j2 | ||||
dest: ~/.xsession.reload.fish | dest: ~/.xsession.reload.fish | ||||
mode: 0755 | mode: 0755 | ||||
notify: xsession reload | |||||
- name: xsession reload service | - name: xsession reload service | ||||
template: | template: | ||||
@@ -5,6 +5,7 @@ PartOf=graphical-session.target | |||||
[Service] | [Service] | ||||
Type=exec | Type=exec | ||||
ExecStart=i3 | ExecStart=i3 | ||||
ExecReload=i3-msg reload | |||||
ExecStopPost=/bin/systemctl --user stop graphical-session.target | ExecStopPost=/bin/systemctl --user stop graphical-session.target | ||||
[Install] | [Install] | ||||