Use dconf to update terminal preferences
Some checks failed
buildbot/travis_bionic Build done.

This commit is contained in:
swapnil 2022-03-22 20:40:24 +05:30
parent c78817339d
commit 7204fa768a

View File

@ -27,16 +27,32 @@
src: zshrc src: zshrc
dest: "{{ home_directory }}/.zshrc" dest: "{{ home_directory }}/.zshrc"
- name: Terminal | Disable powerlevel10k prompt - name: Terminal | Get default profile
shell: shell:
cmd: "echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >>! ~/.zshrc" cmd: "gsettings get org.gnome.Terminal.ProfilesList default"
register: default_profile
- name: Terminal | Make sure terminal_config_path directory exists - name: Terminal | Dconf - use-custom-command
file: dconf:
path: "{{ terminal_config_path }}" key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/use-custom-command"
state: directory value: "true"
- name: Terminal | Copy terminal config - name: Terminal | Dconf - custom-command
copy: dconf:
src: terminalrc key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/custom-command"
dest: "{{ terminal_config_path }}/terminalrc" value: "'zsh'"
- name: Terminal | Dconf - use-theme-transparency
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/use-theme-transparency"
value: "false"
- name: Terminal | Dconf - use-transparent-background
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/use-transparent-background"
value: "true"
- name: Terminal | Dconf - background-transparency-percent
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/background-transparency-percent"
value: "5"