Feat: gnome configuration in dotfiles

This commit is contained in:
Bertrand Benjamin 2022-01-05 14:41:33 +01:00
parent 7ea443bbc6
commit 09f3981a23
5 changed files with 56 additions and 7 deletions

View File

@ -1,7 +1,5 @@
---
user:
username: 'vagrant'
dotusers: ["{{ user }}"]
me:
username: 'user1'
config2stow: ["nvim", "tmux", "zsh"]

View File

@ -0,0 +1,42 @@
---
- name: <super + q> to close window
dconf:
key: "/org/gnome/desktop/wm/keybindings/close"
value: "['<Super>q']"
state: present
- name: <super + enter> to fire a terminal - binding
dconf:
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding"
value: "'<Super>Return'"
state: present
- name: <super + enter> to fire a terminal - command
dconf:
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command"
value: "'urxvt'"
state: present
- name: <super + enter> 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

View File

@ -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

View File

@ -16,3 +16,4 @@ pacman_gnome:
- shotwell
- pitivi
- seahorse
- python-psutil

View File

@ -12,7 +12,6 @@
community.general.pacman:
name: "{{ item }}"
state: present
update_cache: yes
with_items: "{{ pacman_pkgs }}"
- name: Install AUR pkgs