Feat: gnome configuration in dotfiles
This commit is contained in:
parent
7ea443bbc6
commit
09f3981a23
@ -1,7 +1,5 @@
|
|||||||
---
|
---
|
||||||
user:
|
me:
|
||||||
username: 'vagrant'
|
username: 'user1'
|
||||||
|
|
||||||
dotusers: ["{{ user }}"]
|
|
||||||
|
|
||||||
config2stow: ["nvim", "tmux", "zsh"]
|
config2stow: ["nvim", "tmux", "zsh"]
|
||||||
|
42
roles/dotfiles/tasks/gnome.yml
Normal file
42
roles/dotfiles/tasks/gnome.yml
Normal 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
|
@ -10,11 +10,20 @@
|
|||||||
- name: Clone dotfiles
|
- name: Clone dotfiles
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: 'https://git.opytex.org/lafrite/dotfiles.git'
|
repo: 'https://git.opytex.org/lafrite/dotfiles.git'
|
||||||
dest: /home/{{ item.username }}/.dotfiles
|
dest: ~/.dotfiles
|
||||||
with_items: "{{ dotusers }}"
|
become: true
|
||||||
|
become_user: "{{ me.username }}"
|
||||||
|
|
||||||
- name: stow configs
|
- name: stow configs
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: stow {{ item }}
|
cmd: stow {{ item }}
|
||||||
chdir: ~/.dotfiles/
|
chdir: ~/.dotfiles/
|
||||||
with_items: "{{ config2stow }}"
|
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
|
||||||
|
@ -16,3 +16,4 @@ pacman_gnome:
|
|||||||
- shotwell
|
- shotwell
|
||||||
- pitivi
|
- pitivi
|
||||||
- seahorse
|
- seahorse
|
||||||
|
- python-psutil
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
|
||||||
with_items: "{{ pacman_pkgs }}"
|
with_items: "{{ pacman_pkgs }}"
|
||||||
|
|
||||||
- name: Install AUR pkgs
|
- name: Install AUR pkgs
|
||||||
|
Loading…
Reference in New Issue
Block a user