customize-xfce-anisble/playbook/roles/role-one/tasks/xfce-terminal.yml

59 lines
1.6 KiB
YAML
Raw Normal View History

2022-03-13 13:15:51 +01:00
---
- name: Terminal | Clone powerlevel10k repository
git:
repo: "{{ powerlevel10k_git }}"
dest: "{{ home_directory }}/powerlevel10k"
2022-03-13 13:15:51 +01:00
depth: 1
- name: Terminal | Install zsh
2022-03-21 14:15:40 +01:00
become: yes
2022-03-13 13:15:51 +01:00
apt:
name: zsh
state: present
- name: Terminal | Change shell to zsh
2022-03-21 14:15:40 +01:00
become: yes
2022-03-13 13:15:51 +01:00
shell:
cmd: "chsh -s $(which zsh)"
2022-03-14 08:42:18 +01:00
- name: Terminal | Copy powerlevel10k configuration
copy:
src: p10k.zsh
dest: "{{ home_directory }}/.p10k.zsh"
2022-03-14 08:42:18 +01:00
- name: Terminal | Copy zshrc configuration
copy:
src: zshrc
dest: "{{ home_directory }}/.zshrc"
2022-03-14 08:42:18 +01:00
- name: Terminal | Get default profile
2022-03-13 13:15:51 +01:00
shell:
cmd: "gsettings get org.gnome.Terminal.ProfilesList default"
register: default_profile
- name: Terminal | Dconf - use-custom-command
dconf:
key: "/org/gnome/terminal/legacy/profiles:/:{{ default_profile.stdout.strip(\"'\") }}/use-custom-command"
value: "true"
- 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"