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"
|
- name: "cliphist"
|
||||||
enabled: true
|
enabled: true
|
||||||
profile: all
|
profile: all
|
||||||
|
- name: "kanshi"
|
||||||
|
enabled: true
|
||||||
|
profile: all
|
||||||
- name: "gammastep"
|
- name: "gammastep"
|
||||||
enabled: true
|
enabled: true
|
||||||
profile: all
|
profile: all
|
||||||
|
@ -64,16 +67,11 @@
|
||||||
- name: Init arch
|
- name: Init arch
|
||||||
block:
|
block:
|
||||||
- file:
|
- file:
|
||||||
path: /home/mbess/.workstation_setup_state
|
path: /home/mbess/.monakhos
|
||||||
state: touch
|
state: touch
|
||||||
- copy:
|
- copy:
|
||||||
content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"name\":\"{{ device_name }}\", \"profile\":\"{{ profile }}\"}\n"
|
content: "{\"monakhos\": {\"date\": \"{{ ansible_date_time.iso8601 }}\", \"device_name\":\"{{ device_name }}\", \"enabled_profiles\":{{ enabled_profiles | to_json }} }}\n"
|
||||||
dest: "{{ home }}/.workstation_setup_state"
|
dest: "{{ home }}/.monakhos"
|
||||||
- become: yes
|
|
||||||
become_user: "{{ user }}"
|
|
||||||
file:
|
|
||||||
path: "{{ home }}/.monakhos_mbess"
|
|
||||||
state: touch
|
|
||||||
|
|
||||||
- name: Change hostname
|
- name: Change hostname
|
||||||
hostname:
|
hostname:
|
||||||
|
@ -93,6 +91,12 @@
|
||||||
- git
|
- git
|
||||||
- openssh
|
- 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
|
- name: Setup SSH client
|
||||||
include_role:
|
include_role:
|
||||||
name: ssh
|
name: ssh
|
||||||
|
@ -180,6 +184,13 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: dns
|
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
|
- name: Setup config directories
|
||||||
file:
|
file:
|
||||||
path: "{{ home }}/.config/{{ item.dir }}"
|
path: "{{ home }}/.config/{{ item.dir }}"
|
||||||
|
|
Loading…
Reference in a new issue