toansible: Add kitty installation
This commit is contained in:
parent
7ced039f7f
commit
6fb0387ac6
4 changed files with 30 additions and 13 deletions
13
configs.yml
13
configs.yml
|
@ -24,19 +24,6 @@ grub:
|
||||||
sudo sed -i -E 's/^#?GRUB_DISABLE_SUBMENU.+/GRUB_DISABLE_SUBMENU=y/' /etc/default/grub &&
|
sudo sed -i -E 's/^#?GRUB_DISABLE_SUBMENU.+/GRUB_DISABLE_SUBMENU=y/' /etc/default/grub &&
|
||||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
|
||||||
kitty:
|
|
||||||
- install:
|
|
||||||
- kitty
|
|
||||||
- symlink:
|
|
||||||
- dotfiles/kitty.conf
|
|
||||||
- ~/.config/kitty/kitty.conf
|
|
||||||
- clone:
|
|
||||||
- https://github.com/dexpota/kitty-themes.git
|
|
||||||
- ~/.git_clones/kitty-themes
|
|
||||||
- symlink:
|
|
||||||
- ~/.git_clones/kitty-themes/themes/gruvbox_dark.conf
|
|
||||||
- ~/.config/kitty/theme.conf
|
|
||||||
|
|
||||||
bash:
|
bash:
|
||||||
- install:
|
- install:
|
||||||
- bash-completion
|
- bash-completion
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
- kitty
|
||||||
- terminator
|
- terminator
|
||||||
- neovim
|
- neovim
|
||||||
- ssh-agent
|
- ssh-agent
|
||||||
|
|
29
roles/kitty/tasks/main.yml
Normal file
29
roles/kitty/tasks/main.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install kitty (Archlinux)
|
||||||
|
become: true
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- kitty
|
||||||
|
when: ansible_distribution == 'Archlinux'
|
||||||
|
|
||||||
|
- name: Install kitty (Debian)
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- kitty
|
||||||
|
when: ansible_distribution == 'Debian'
|
||||||
|
|
||||||
|
- name: Copy kitty config
|
||||||
|
copy:
|
||||||
|
src: kitty.conf
|
||||||
|
dest: ~/.config/kitty/kitty.conf
|
||||||
|
|
||||||
|
- name: Clone kitty themes
|
||||||
|
command: git clone https://github.com/dexpota/kitty-themes.git ~/.git_clones/kitty-themes
|
||||||
|
|
||||||
|
- name: Symlink the kitty theme
|
||||||
|
file:
|
||||||
|
src: ~/.git_clones/kitty-themes/themes/gruvbox_dark.conf
|
||||||
|
path: ~/.config/kitty/theme.conf
|
||||||
|
state: link
|
Loading…
Add table
Reference in a new issue