52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
---
|
|
- name: Gruvbox Rice
|
|
hosts: localhost
|
|
connection: local
|
|
|
|
tasks:
|
|
- name: Set gruvbox pywal theme
|
|
ansible.builtin.shell: wal --theme base16-gruvbox-medium
|
|
args:
|
|
executable: /bin/zsh
|
|
|
|
- name: Set gruvbox wallpaper
|
|
ansible.builtin.shell: feh --bg-fill /home/vashqlf/Pictures/wallpapers/gruvbox_tilly2v3.jpg
|
|
args:
|
|
executable: /bin/zsh
|
|
|
|
- name: Copy gruvbox i3 config
|
|
ansible.builtin.copy:
|
|
src: /home/vashqlf/Code/Ansible/playbooks/rices/files/gruvbox-i3
|
|
dest: /home/vashqlf/.config/i3/config
|
|
owner: vashqlf
|
|
group: vashqlf
|
|
mode: '0644'
|
|
|
|
- name: Reload i3 config
|
|
ansible.builtin.shell: i3-msg reload
|
|
args:
|
|
executable: /bin/zsh
|
|
|
|
- name: Set gruvbox theme in nvim
|
|
ansible.builtin.lineinfile:
|
|
path: /home/vashqlf/.config/nvim/lua/chadrc.lua
|
|
regexp: 'theme'
|
|
line: ' theme = "gruvbox",'
|
|
|
|
- name: Reload NvChad config in running nvim instances
|
|
ansible.builtin.shell: |
|
|
for addr in $XDG_RUNTIME_DIR/nvim.*; do
|
|
nvim --server $addr --remote-send ':lua require("nvchad.utils").reload() <cr>'
|
|
done
|
|
ignore_errors: true
|
|
|
|
- name: Reload NvChad config in case not running
|
|
ansible.builtin.shell: nvim --headless "+lua require('nvchad.utils').reload()" +qa
|
|
args:
|
|
executable: /bin/zsh
|
|
|
|
- name: Fix rofi config
|
|
ansible.builtin.shell: /home/vashqlf/Code/Shell/rasi-wal-fix.sh
|
|
args:
|
|
executable: /bin/zsh
|