1
0
Fork 0
dotfiles2000/system/arch/x_gpdpocket2.yaml

120 lines
2.9 KiB
YAML
Raw Normal View History

- name: "Specials only for GPD Pocket 2"
hosts: localhost
connection: local
tasks:
- name: "Console settings (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/vconsole.conf
owner: root
group: root
mode: 0644
content: |
KEYMAP=us
FONT=latarcyrheb-sun32
- name: "Update pacman cache"
community.general.pacman:
update_cache: True
- name: "Install packages"
ansible.builtin.package:
name: '{{ item }}'
state: present
update_cache: False
with_items:
- keyd
- name: "Keyd config for gpdp2"
ansible.builtin.copy:
dest: /etc/keyd/defaul.conf
owner: root
group: root
mode: 0644
content: |
[ids]
*
[main]
y = z
z = y
` = compose
yen = `
[alt]
a = macro(compose " a)
u = macro(compose " u)
o = macro(compose " o)
s = macro(compose s s)
[alt+shift]
a = macro(compose " A)
u = macro(compose " U)
o = macro(compose " O)
# ẞ works w/o extra definition
- name: "Service: Keyd"
ansible.builtin.service:
name: keyd.service
state: started
enabled: yes
- name: "X11: Keyboard (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/X11/xorg.conf.d/00-keyboard.conf
src: ./lib/etc/X11/xorg.conf.d/00-keyboard.conf.gpdp2
owner: root
group: root
mode: 0644
- name: "X11: Intel Graphics (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/X11/xorg.conf.d/20-intel.conf
src: ./lib/etc/X11/xorg.conf.d/20-intel.conf.gpdp2
owner: root
group: root
mode: 0644
- name: "X11: Monitor (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/X11/xorg.conf.d/30-display.conf
src: ./lib/etc/X11/xorg.conf.d/30-display.conf.gpdp2
owner: root
group: root
mode: 0644
- name: "X11: Touchscreen (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/X11/xorg.conf.d/99-touchscreen.conf
src: ./lib/etc/X11/xorg.conf.d/99-touchscreen.conf.gpdp2
owner: root
group: root
mode: 0644
- name: "X11: Xresources (GPD Pocket 2)"
ansible.builtin.copy:
dest: /etc/X11/Xresources
src: ./lib/etc/X11/Xresources.gpdp2
owner: root
group: root
mode: 0644
- name: "GPD fan module"
ansible.builtin.copy:
dest: /etc/modules-load.d/gpd-pocket-fan.conf
owner: root
group: root
mode: 0644
content: |
gpd-pocket-fan
- name: "GPD fan module config"
ansible.builtin.copy:
dest: /etc/modprobe.d/gpd-pocket-fan.conf
owner: root
group: root
mode: 0644
content: |
options gpd-pocket-fan temp_limits=40000,40001,40002