feat: add kanshi service
This commit is contained in:
parent
1bd7e3e290
commit
f5169bcb19
2 changed files with 31 additions and 8 deletions
12
ansible/templates/systemd/user/kanshi.service
Normal file
12
ansible/templates/systemd/user/kanshi.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Kanshi
|
||||
PartOf=graphical-session.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=kanshi
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=sway-session.target
|
|
@ -28,6 +28,9 @@
|
|||
- name: "cliphist"
|
||||
enabled: true
|
||||
profile: all
|
||||
- name: "kanshi"
|
||||
enabled: true
|
||||
profile: all
|
||||
- name: "gammastep"
|
||||
enabled: true
|
||||
profile: all
|
||||
|
@ -64,16 +67,11 @@
|
|||
- name: Init arch
|
||||
block:
|
||||
- file:
|
||||
path: /home/mbess/.workstation_setup_state
|
||||
path: /home/mbess/.monakhos
|
||||
state: touch
|
||||
- copy:
|
||||
content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"name\":\"{{ device_name }}\", \"profile\":\"{{ profile }}\"}\n"
|
||||
dest: "{{ home }}/.workstation_setup_state"
|
||||
- become: yes
|
||||
become_user: "{{ user }}"
|
||||
file:
|
||||
path: "{{ home }}/.monakhos_mbess"
|
||||
state: touch
|
||||
content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"device_name\":\"{{ device_name }}\", \"enabled_profiles\":{{ enabled_profiles | to_json }} }}\n"
|
||||
dest: "{{ home }}/.monakhos"
|
||||
|
||||
- name: Change hostname
|
||||
hostname:
|
||||
|
@ -93,6 +91,12 @@
|
|||
- git
|
||||
- openssh
|
||||
|
||||
- name: "Configure to auto load some kernel modules at boot"
|
||||
become: true
|
||||
copy:
|
||||
content: "# managed by monakhos\ni2c-dev\n"
|
||||
dest: "/etc/modules-load.d/auto.conf"
|
||||
|
||||
- name: Setup SSH client
|
||||
include_role:
|
||||
name: ssh
|
||||
|
@ -180,6 +184,13 @@
|
|||
include_role:
|
||||
name: dns
|
||||
|
||||
- name: Symbolic link to user .profile
|
||||
file:
|
||||
src: "{{ home }}/.profile"
|
||||
dest: "{{ home }}/.dots/config/.profile"
|
||||
state: link
|
||||
force: true
|
||||
|
||||
- name: Setup config directories
|
||||
file:
|
||||
path: "{{ home }}/.config/{{ item.dir }}"
|
||||
|
|
Loading…
Reference in a new issue