1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

fixed fish synchronize, added background script

This commit is contained in:
eoli3n 2020-05-11 16:22:21 +02:00
parent 6f06932acb
commit 187f03b9be
5 changed files with 21 additions and 1 deletions

@ -29,6 +29,7 @@
# Configure root cli
- hosts: server:desktop:laptop
become: yes
roles:
- { role: fish, tags: fish }
- { role: neovim, tags: neovim }

@ -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:

7
screenshots/background.sh Executable file

@ -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