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

56 lines
2 KiB
YAML
Raw Normal View History

2019-10-21 08:09:44 +00:00
---
# Copyright 2021 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.
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.Xresources
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2019-10-21 08:09:44 +00:00
src: Xresources
dest: "{{ ansible_env.HOME }}/.Xresources"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.stalonetrayrc
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2019-11-20 10:26:13 +00:00
src: stalonetrayrc
dest: "{{ ansible_env.HOME }}/.stalonetrayrc"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.fvwm/config
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
src: fvwmrc
dest: "{{ ansible_env.HOME }}/.fvwm/config"
2022-08-18 15:57:20 +00:00
- name: Create NetBSD $HOME/.xsession
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2019-11-10 17:39:26 +00:00
src: xsession-netbsd
dest: "{{ ansible_env.HOME }}/.xsession"
when: ansible_system == "NetBSD"
2022-08-18 15:57:20 +00:00
- name: Create NetBSD $HOME/.xinitrc
2021-02-19 20:32:22 +00:00
ansible.builtin.file:
2019-11-10 17:39:26 +00:00
src: ".xsession"
dest: "{{ ansible_env.HOME }}/.xinitrc"
state: link
2020-01-22 09:40:29 +00:00
when: ansible_system == "NetBSD"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/autostart/xrdb.desktop
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2020-04-12 21:25:16 +00:00
src: "xrdb.desktop"
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/autostart/xrdb.desktop"
2020-04-20 09:25:31 +00:00
when: ansible_distribution == "Fedora" or ansible_distribution == "Debian"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_DATA_HOME/applications/todo.desktop
2021-02-19 20:32:22 +00:00
ansible.builtin.template:
2020-06-11 10:09:17 +00:00
src: todo.desktop
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_DATA_HOME }}/applications/todo.desktop"
2022-08-18 15:57:20 +00:00
- name: Create $HOME/.xbindkeysrc
2021-02-19 20:32:22 +00:00
ansible.builtin.copy:
2020-06-23 10:10:23 +00:00
src: "xbindkeysrc"
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
2022-08-18 15:57:20 +00:00
- name: Create $XDG_CONFIG_HOME/fontconfig/fonts.conf
2021-09-27 21:32:36 +00:00
ansible.builtin.copy:
src: "fonts.conf"
2022-08-18 15:37:57 +00:00
dest: "{{ ansible_env.XDG_CONFIG_HOME }}/fontconfig/fonts.conf"