Skip to content

Instantly share code, notes, and snippets.

@juanje
Created July 4, 2020 02:26
Show Gist options
  • Save juanje/08e8eaeebc6fd8659ca84db5d71e2da9 to your computer and use it in GitHub Desktop.
Save juanje/08e8eaeebc6fd8659ca84db5d71e2da9 to your computer and use it in GitHub Desktop.

Revisions

  1. juanje created this gist Jul 4, 2020.
    28 changes: 28 additions & 0 deletions gnome.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    ---
    - name: Configure desktop
    hosts: localhost
    gather_facts: false

    vars:
    dconf_items:
    - { key: "/org/gnome/desktop/interface/clock-show-date", value: "true" }
    - { key: "/org/gnome/desktop/interface/clock-show-weekday", value: "true" }
    - { key: "/org/gnome/desktop/peripherals/touchpad/natural-scroll", value: "false" }
    - { key: "/org/gnome/shell/extensions/desktop-icons/show-home", value: "false" }
    - { key: "/org/gnome/shell/extensions/desktop-icons/show-trash", value: "false" }
    - { key: "/org/gnome/desktop/sound/allow-volume-above-100-percent", value: "true" }
    - { key: "/org/gnome/settings-daemon/plugins/media-keys/max-screencast-length", value: "300" }

    tasks:

    - name: Ensure dconf module can work
    become: true
    package:
    name: python3-psutil dbus-tools
    state: present

    - name: Ensure Desktop settings
    dconf:
    key: "{{ item.key }}"
    value: "{{ item.value }}"
    with_items: "{{ dconf_items }}"