workstation/roles/home-gui/tasks/dotfiles.yml

64 lines
2.3 KiB
YAML

---
# Copyright 2021-2023 Anthony Perkins
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Create $HOME/.Xresources
ansible.builtin.copy:
src: Xresources
dest: "{{ ansible_env.HOME }}/.Xresources"
- name: Create $HOME/.stalonetrayrc
ansible.builtin.copy:
src: stalonetrayrc
dest: "{{ ansible_env.HOME }}/.stalonetrayrc"
- name: Create $HOME/.fvwm/config
ansible.builtin.copy:
src: fvwmrc
dest: "{{ ansible_env.HOME }}/.fvwm/config"
- name: Create NetBSD $HOME/.xsession
ansible.builtin.copy:
src: xsession-netbsd
dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "NetBSD"
- name: Create NetBSD $HOME/.xinitrc
ansible.builtin.file:
src: ".xsession"
dest: "{{ ansible_env.HOME }}/.xinitrc"
state: link
when: ansible_system == "NetBSD"
- name: Create $XDG_CONFIG_HOME/autostart/xrdb.desktop
ansible.builtin.copy:
src: "xrdb.desktop"
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart/xrdb.desktop"
when: ansible_distribution == "Fedora" or ansible_distribution == "Debian"
- name: Create $XDG_DATA_HOME/applications/todo.desktop
ansible.builtin.template:
src: todo.desktop
dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/todo.desktop"
- name: Create $HOME/.xbindkeysrc
ansible.builtin.copy:
src: "xbindkeysrc"
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
- name: Create $XDG_CONFIG_HOME/fontconfig/fonts.conf
ansible.builtin.copy:
src: "fonts.conf"
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig/fonts.conf"
- name: Create $HOME/.icewm
ansible.builtin.copy:
src: "icewm/"
dest: "{{ ansible_env.HOME }}/.icewm"
mode: preserve
- name: Create $XDG_CONFIG_HOME/picom.conf
ansible.builtin.copy:
src: "picom.conf"
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/picom.conf"