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
dest: "{{ home_directory }}/.zshrc"
- name: Terminal | Disable powerlevel10k prompt
- name: Terminal | Get default profile
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
file:
path: "{{ terminal_config_path }}"
state: directory
- name: Terminal | Dconf - use-custom-command
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/use-custom-command"
value: "true"
- name: Terminal | Copy terminal config
copy:
src: terminalrc
dest: "{{ terminal_config_path }}/terminalrc"
- name: Terminal | Dconf - custom-command
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/custom-command"
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"