diff --git a/install.yml b/install.yml index 764423b..7ce1c03 100644 --- a/install.yml +++ b/install.yml @@ -29,6 +29,7 @@ # Configure root cli - hosts: server:desktop:laptop become: yes + roles: - { role: fish, tags: fish } - { role: neovim, tags: neovim } diff --git a/roles/fish/tasks/main.yml b/roles/fish/tasks/main.yml index 1a493ff..744712a 100644 --- a/roles/fish/tasks/main.yml +++ b/roles/fish/tasks/main.yml @@ -18,6 +18,7 @@ changed_when: false - name: Install pureprompt plugin + become_method: su shell: | fish -c "omf install pure" fish -lc "ln -s $OMF_PATH/themes/pure/conf.d/pure.fish ~/.config/fish/conf.d/pure.fish" @@ -32,6 +33,7 @@ changed_when: false - name: Install git plugin + become_method: su shell: fish -c "omf install https://github.com/jhillyerd/plugin-git" when: gitcheck is failed @@ -40,11 +42,21 @@ src: dircolors dest: ~/.config/ -- name: Sync fish config files +- name: Sync fish config files (root) + synchronize: + src: files/fish + dest: /root/.config + recursive: yes + when: ansible_user_id == "root" + tags: rsync + +- name: Sync fish config files (users) synchronize: src: files/fish dest: ~/.config recursive: yes + when: ansible_user_id != "root" + tags: rsync - name: Laptops fish configuration copy: diff --git a/screenshots/background.sh b/screenshots/background.sh new file mode 100755 index 0000000..1cffbef --- /dev/null +++ b/screenshots/background.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +background="https://unsplash.com/photos/wQLAGv4_OYs/download?force=true&w=1920" + +wget "$background" -O /tmp/background.jpg + +swaymsg output "*" bg /tmp/background.jpg fill diff --git a/neofetch/config b/screenshots/neofetch/config similarity index 100% rename from neofetch/config rename to screenshots/neofetch/config diff --git a/neofetch/neofetch.sh b/screenshots/neofetch/neofetch.sh similarity index 100% rename from neofetch/neofetch.sh rename to screenshots/neofetch/neofetch.sh