Skip to content

Instantly share code, notes, and snippets.

@dramaturg
Created April 30, 2017 14:27
Show Gist options
  • Save dramaturg/f25ddd5dfc970af54d4a43119e91d5e9 to your computer and use it in GitHub Desktop.
Save dramaturg/f25ddd5dfc970af54d4a43119e91d5e9 to your computer and use it in GitHub Desktop.
Running i3 in a mate session playbook snippet
- name: get gsettings
shell: gsettings list-recursively
register: gsettings
changed_when: false
- name: set gsettings
shell: gsettings set {{item.schema}} {{item.key}} {{item.value}}
when: "'{{item.schema}} {{item.key}} {{item.value}}' not in gsettings.stdout"
with_items:
- { schema: 'org.mate.background', key: 'show-desktop-icons', value: 'false' }
- { schema: 'org.mate.background', key: 'draw-background', value: 'false' }
- { schema: 'org.mate.media-handling', key: 'automount-open', value: 'false' }
- { schema: 'org.mate.session', key: 'required-components-list', value: "[\\'windowmanager\\']" }
- { schema: 'org.mate.session.required-components', key: 'panel', value: "''" }
- { schema: 'org.mate.session.required-components', key: 'windowmanager', value: "\\'i3\\'" }
- { schema: 'org.mate.session.required-components', key: 'filemanager', value: "''" }
- { schema: 'org.mate.screensaver', key: 'idle-activation-enabled', value: 'false' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment