diff --git a/roles/dotfiles/defaults/main.yml b/roles/dotfiles/defaults/main.yml index d217f75..aa4801c 100644 --- a/roles/dotfiles/defaults/main.yml +++ b/roles/dotfiles/defaults/main.yml @@ -1,7 +1,5 @@ --- -user: - username: 'vagrant' - -dotusers: ["{{ user }}"] +me: + username: 'user1' config2stow: ["nvim", "tmux", "zsh"] diff --git a/roles/dotfiles/tasks/gnome.yml b/roles/dotfiles/tasks/gnome.yml new file mode 100644 index 0000000..cc06bf7 --- /dev/null +++ b/roles/dotfiles/tasks/gnome.yml @@ -0,0 +1,42 @@ +--- +- name: to close window + dconf: + key: "/org/gnome/desktop/wm/keybindings/close" + value: "['q']" + state: present + +- name: to fire a terminal - binding + dconf: + key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding" + value: "'Return'" + state: present + +- name: to fire a terminal - command + dconf: + key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command" + value: "'urxvt'" + state: present + +- name: to fire a terminal - name + dconf: + key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name" + value: "'Terminal'" + state: present + +- name: Shell theme + dconf: + key: "/org/gnome/shell/extensions/user-theme/name" + value: "'Materia-dark-compact'" + state: present + +- name: Gtk theme + dconf: + key: "/org/gnome/desktop/interface/gkt-theme" + value: "'Materia-dark-compact'" + state: present + +- name: Icon theme + dconf: + key: "/org/gnome/desktop/interface/icon-theme" + value: "'Tela-orange-dark'" + state: present diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml index 54c730c..a9f381f 100644 --- a/roles/dotfiles/tasks/main.yml +++ b/roles/dotfiles/tasks/main.yml @@ -10,11 +10,20 @@ - name: Clone dotfiles ansible.builtin.git: repo: 'https://git.opytex.org/lafrite/dotfiles.git' - dest: /home/{{ item.username }}/.dotfiles - with_items: "{{ dotusers }}" + dest: ~/.dotfiles + become: true + become_user: "{{ me.username }}" - name: stow configs ansible.builtin.command: cmd: stow {{ item }} chdir: ~/.dotfiles/ with_items: "{{ config2stow }}" + become: true + become_user: "{{ me.username}}" + +- name: Gnome config + import_tasks: gnome.yml + become: true + become_user: "{{ me.username }}" + when: no # soucis avec la version de psutil diff --git a/roles/gnome/defaults/main.yml b/roles/gnome/defaults/main.yml index 7f92144..0f7541b 100644 --- a/roles/gnome/defaults/main.yml +++ b/roles/gnome/defaults/main.yml @@ -16,3 +16,4 @@ pacman_gnome: - shotwell - pitivi - seahorse + - python-psutil diff --git a/roles/workstation/tasks/arch.yml b/roles/workstation/tasks/arch.yml index 0d3ff5e..ac42832 100644 --- a/roles/workstation/tasks/arch.yml +++ b/roles/workstation/tasks/arch.yml @@ -12,7 +12,6 @@ community.general.pacman: name: "{{ item }}" state: present - update_cache: yes with_items: "{{ pacman_pkgs }}" - name: Install AUR pkgs