Browse Source

Add themes conf

master
Felix 2 years ago
parent
commit
8e4ced5681
3 changed files with 11 additions and 15 deletions
  1. +5
    -0
      defaults/main.yml
  2. +3
    -12
      tasks/gnome-shell-extensions.yml
  3. +3
    -3
      tasks/gsettings.yml

+ 5
- 0
defaults/main.yml View File

@@ -5,3 +5,8 @@ fonts:
interface_font: 'Cantarell 11'
document_font: 'Sans 11'
monospace_font: 'Monospace 11'

themes:
gnome_gtk_theme: 'Adwaita'
gnome_icon_theme: 'Adwaita'
gnome_shell_theme: 'Adwaita'

+ 3
- 12
tasks/gnome-shell-extensions.yml View File

@@ -5,17 +5,10 @@
file: extensions.yml
tags:
- install
- debug

#- name: Debug, list system_pkgs
# debug:
# msg: "{{gnome_shell_extensions}}"
# tags:
# - debug

- name: Empty out gnome shell extensions subdirectories in preparation
file:
path: "/home/{{local_user}}/.local/share/gnome-shell/extensions/{{item.id}}/"
path: "~/.local/share/gnome-shell/extensions/{{item.id}}/"
state: absent
with_items:
- "{{gnome_shell_extensions}}"
@@ -24,9 +17,8 @@

- name: Create gnome shell extensions subdirectories
file:
path: "/home/{{local_user}}/.local/share/gnome-shell/extensions/{{item.id}}/"
path: "~/.local/share/gnome-shell/extensions/{{item.id}}/"
state: directory
owner: "{{local_user}}"
mode: 0755
with_items:
- "{{gnome_shell_extensions}}"
@@ -36,7 +28,7 @@
- name: Install gnome shell extensions
unarchive:
src: 'https://extensions.gnome.org/extension-data/{{item.id}}.v{{item.version}}.shell-extension.zip'
dest: "/home/{{local_user}}/.local/share/gnome-shell/extensions/{{item.id}}/"
dest: "~/.local/share/gnome-shell/extensions/{{item.id}}/"
remote_src: yes
with_items:
- "{{gnome_shell_extensions}}"
@@ -50,7 +42,6 @@
ignore_errors: true
tags:
- install
- debug

- name: Load gnome shell extension data into dconf
shell: "dconf load /org/gnome/shell/extensions/{{item.path}}/"


+ 3
- 3
tasks/gsettings.yml View File

@@ -63,10 +63,10 @@
# Now: Gnome Tweak Tool settings
- org.gnome.desktop.interface enable-animations false
# Set to Arc later on
- org.gnome.desktop.interface gtk-theme 'Adwaita'
- org.gnome.desktop.interface icon-theme 'Adwaita'
- "org.gnome.desktop.interface gtk-theme {{gnome_gtk_theme}}"
- "org.gnome.desktop.interface icon-theme {{gnome_icon_theme}}"
# Set shell theme via User Theme extension
#- org.gnome.shell.extensions.user-theme name ''
- "org.gnome.shell.extensions.user-theme name {{gnome_shell_theme}}"
- org.gnome.desktop.background show-desktop-icons false
#
# Now: Hidden stuff (from alternate-tab extension)


Loading…
Cancel
Save