2020-04-23 14:29:03 +02:00
|
|
|
# Sway Acid Dark
|
2016-03-29 20:44:38 +02:00
|
|
|
|
2019-12-01 16:35:24 +01:00
|
|
|
[![Build Status](https://travis-ci.org/eoli3n/dotfiles.svg?branch=master)](https://travis-ci.org/eoli3n/dotfiles)
|
2017-12-26 01:15:08 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
**Sway fish pure waybar neovim**
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/sway.png)
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
**Tiny irc client**
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/irc.png)
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
**Firefox/Tabliss Wofi**
|
2016-09-17 18:35:54 +02:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/ff.png)
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
**Connman/Thunar GTK Theme**
|
2017-12-22 13:25:54 +01:00
|
|
|
|
2020-05-11 16:52:19 +02:00
|
|
|
![alt tag](https://github.com/eoli3n/dotfiles/blob/master/screenshots/gtk.png)
|
2017-12-23 22:44:23 +01:00
|
|
|
|
2020-05-13 22:02:27 +02:00
|
|
|
### Why Ansible ?
|
2017-12-29 02:55:10 +01:00
|
|
|
|
2020-05-13 22:02:27 +02:00
|
|
|
- Modularity: [Roles](https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html) as modules.
|
|
|
|
- Factorization: It uses [jinja2](https://docs.ansible.com/ansible-container/container_yml/template.html) templating engine.
|
|
|
|
- Simplicity: No agent, only SSH, available via pip.
|
|
|
|
- Flexibility: Push your dotfiles from/to any hosts.
|
|
|
|
- Toolbox: Dry-run mode, diff mode, secrets encryption, tags...
|
2016-12-27 20:05:23 +01:00
|
|
|
|
2020-05-12 12:46:46 +02:00
|
|
|
### How to
|
2017-12-29 03:00:53 +01:00
|
|
|
|
2020-05-13 22:06:57 +02:00
|
|
|
**Use carefully**, backup your home before using !
|
2020-05-14 00:24:31 +02:00
|
|
|
You should use ``--check`` and ``--diff`` to dryrun first.
|
2019-12-01 16:29:03 +01:00
|
|
|
|
2020-05-13 22:02:27 +02:00
|
|
|
Check details in ``roles/*/README.md``.
|
2019-12-01 16:29:03 +01:00
|
|
|
|
2020-05-13 22:06:57 +02:00
|
|
|
##### 1. Fork Me!
|
2020-05-13 22:02:27 +02:00
|
|
|
|
2020-05-13 22:06:57 +02:00
|
|
|
##### 2. Clone your repo
|
2020-05-13 22:02:27 +02:00
|
|
|
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 13:09:50 +02:00
|
|
|
git clone https://github.com/*/dotfiles
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 11:32:43 +02:00
|
|
|
|
|
|
|
Then, configure desktop environment in [group_vars/all.yml](group_vars/all.yml).
|
|
|
|
|
2020-05-13 22:06:57 +02:00
|
|
|
##### 3. Configure inventory
|
2020-05-13 22:02:27 +02:00
|
|
|
|
2020-05-14 00:23:03 +02:00
|
|
|
Create inventory file from template.
|
|
|
|
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
|
|
|
cd dotfiles
|
2020-05-12 12:46:46 +02:00
|
|
|
cp hosts.template hosts
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 00:23:03 +02:00
|
|
|
|
|
|
|
Add your hostnames in section:
|
2020-05-14 11:10:08 +02:00
|
|
|
- ***cli***: install only cli tools
|
|
|
|
- ***desktop***: install cli tools + desktop environment
|
2017-12-29 02:55:10 +01:00
|
|
|
|
2020-05-14 00:23:03 +02:00
|
|
|
Define which user will get configurations with *ansible_user* var.
|
2020-05-14 11:11:01 +02:00
|
|
|
- *desktop* hosts **can't use root**.
|
2020-05-14 00:23:03 +02:00
|
|
|
|
|
|
|
###### a. localhost run
|
|
|
|
|
2020-05-14 11:12:50 +02:00
|
|
|
Let's use a trick to let ansible think that there is 2 different hosts.
|
|
|
|
It will configure *root* with *cli* tools only and *user* with *desktop* environment.
|
2020-05-14 11:09:02 +02:00
|
|
|
That trick needs ``-K`` without ``-b`` when running playbook.
|
|
|
|
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 11:09:02 +02:00
|
|
|
[cli]
|
|
|
|
cli_user ansible_connection=local ansible_user=root
|
2019-12-01 16:29:03 +01:00
|
|
|
[desktop]
|
2020-05-14 11:09:02 +02:00
|
|
|
desktop ansible_connection=local ansible_user=user
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
|
|
|
|
2020-05-14 00:23:03 +02:00
|
|
|
###### b. multiple hosts run
|
|
|
|
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 00:23:03 +02:00
|
|
|
[cli]
|
|
|
|
server1 ansible_user=root
|
2020-05-13 22:02:27 +02:00
|
|
|
[desktop]
|
2020-05-14 00:23:03 +02:00
|
|
|
host1 ansible_user=user
|
|
|
|
host2 ansible_user=user2
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
|
|
|
|
2020-05-14 11:30:57 +02:00
|
|
|
##### 4. Configure SSH
|
2019-12-01 16:29:03 +01:00
|
|
|
|
2020-05-13 22:02:27 +02:00
|
|
|
Push your SSH public key on all your ``users@hosts``
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-13 22:02:27 +02:00
|
|
|
ssh-copy-id -i path/to/ssh/key.pub user@host
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
|
|
|
|
2020-05-14 11:30:57 +02:00
|
|
|
##### 5. (Dry)Run
|
2019-12-01 16:29:03 +01:00
|
|
|
|
|
|
|
```
|
2020-05-13 22:02:27 +02:00
|
|
|
ansible-playbook install.yml -CD
|
|
|
|
ansible-playbook install.yml
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
2020-05-14 11:15:18 +02:00
|
|
|
To configure cli tools for root on desktop hosts:
|
|
|
|
*Note: ansible_user needs to be sudoers.*
|
2019-12-01 16:32:57 +01:00
|
|
|
```
|
2020-05-14 11:09:02 +02:00
|
|
|
ansible-playbook install.yml -b -K -l desktop
|
2019-12-01 16:29:03 +01:00
|
|
|
```
|
|
|
|
|
2020-05-14 00:23:38 +02:00
|
|
|
-----
|
|
|
|
|
|
|
|
##### Previously
|
2017-01-15 12:55:50 +01:00
|
|
|
|
|
|
|
* [i3-gaps Dark Solarized](https://github.com/eoli3n/dotfiles/tree/zsh-agnoster-solarized)
|
2020-05-11 16:59:50 +02:00
|
|
|
* [i3-gaps Acid Dark](https://github.com/eoli3n/dotfiles/tree/i3-gaps-acid-dark)
|