mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-26 06:08:35 +01:00
updated fish sync
This commit is contained in:
parent
e7917ed3f5
commit
c85d0d66c4
4
TODO
4
TODO
@ -5,7 +5,6 @@
|
|||||||
- sway keybind screens output
|
- sway keybind screens output
|
||||||
|
|
||||||
# DE
|
# DE
|
||||||
* try a GTK theme with some transparency
|
|
||||||
- tray menu theme and over window
|
- tray menu theme and over window
|
||||||
- firefox menu size when scaling
|
- firefox menu size when scaling
|
||||||
* sway border issue : https://github.com/swaywm/sway/issues/5327
|
* sway border issue : https://github.com/swaywm/sway/issues/5327
|
||||||
@ -27,7 +26,8 @@
|
|||||||
* wofi issues : https://todo.sr.ht/~scoopta/wofi
|
* wofi issues : https://todo.sr.ht/~scoopta/wofi
|
||||||
|
|
||||||
# IMPROVMENTS
|
# IMPROVMENTS
|
||||||
- dynamic username: sed 's/user/{{ user }}/g' and use templating
|
* try a GTK theme with some transparency
|
||||||
|
* dynamic username: sed 's/user/{{ user }}/g' and use templating
|
||||||
- how to configure a user and root for desktop in one run ?
|
- how to configure a user and root for desktop in one run ?
|
||||||
- fish role is ugly
|
- fish role is ugly
|
||||||
- readd terminfo role
|
- readd terminfo role
|
||||||
|
21
roles/fish/README.md
Normal file
21
roles/fish/README.md
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
##### files/fish tree
|
||||||
|
|
||||||
|
- ``cli`` dir is the basedir and will be sync on all hosts
|
||||||
|
- ``desktop`` dir will be sync only on desktop hosts.
|
||||||
|
- If you want to configure something for a specific host, use this snippets in *fish* script:
|
||||||
|
```
|
||||||
|
if test "$hostname" = "host1"
|
||||||
|
set -x key "value"
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
fish
|
||||||
|
├── cli
|
||||||
|
│ ├── conf.d # Default config dir
|
||||||
|
│ ├── config.fish # Default config file
|
||||||
|
│ └── functions # Default functions dir
|
||||||
|
└── desktop
|
||||||
|
├── conf.d # Desktop hosts config dir
|
||||||
|
└── functions # Desktop hosts functions dir
|
||||||
|
```
|
7
roles/fish/files/fish/desktop/conf.d/desktop.fish
Normal file
7
roles/fish/files/fish/desktop/conf.d/desktop.fish
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Set path by host
|
||||||
|
|
||||||
|
if test "$hostname" = "osz"
|
||||||
|
set -x fish_user_paths $HOME/bin $HOME/go/bin $HOME/.gem/ruby/2.7.0/bin
|
||||||
|
end
|
||||||
|
|
||||||
|
set -x VAGRANT_DEFAULT_PROVIDER 'libvirt'
|
4
roles/fish/files/fish/desktop/functions/gpick.fish
Normal file
4
roles/fish/files/fish/desktop/functions/gpick.fish
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Defined in - @ line 1
|
||||||
|
function cpic --description 'alias cpic'
|
||||||
|
grim -g (slurp -p) -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail -n1 | awk '{ print $3 }' | pastel color -;
|
||||||
|
end
|
@ -1,4 +0,0 @@
|
|||||||
# Defined in - @ line 1
|
|
||||||
function cpic --description 'alias cpic'
|
|
||||||
grim -g (slurp -p) -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-;
|
|
||||||
end
|
|
@ -1,4 +0,0 @@
|
|||||||
# Defined in - @ line 1
|
|
||||||
function gpull --description 'Pull from googledrive to ~/googledrive/'
|
|
||||||
rclone sync googledrive: ~/googledrive/;
|
|
||||||
end
|
|
@ -1,4 +0,0 @@
|
|||||||
# Defined in - @ line 1
|
|
||||||
function gpush --description 'Push from ~/googledrive/ to googledrive'
|
|
||||||
rclone sync ~/googledrive/ googledrive: ;
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
set -x fish_user_paths $HOME/bin $HOME/go/bin $HOME/.gem/ruby/2.7.0/bin
|
|
||||||
set -x BROWSER 'firefox'
|
|
||||||
set -x VAGRANT_DEFAULT_PROVIDER 'libvirt'
|
|
@ -42,24 +42,32 @@
|
|||||||
src: dircolors
|
src: dircolors
|
||||||
dest: ~/.config/
|
dest: ~/.config/
|
||||||
|
|
||||||
- name: Sync fish config files (root)
|
# Separated root|users synchronize as module bugs when using become on the task: it copies always in user homedir
|
||||||
|
- name: Sync fish config files for cli (if user)
|
||||||
synchronize:
|
synchronize:
|
||||||
src: files/fish
|
src: fish/cli/
|
||||||
dest: /root/.config
|
dest: ~/.config/fish
|
||||||
recursive: yes
|
|
||||||
when: ansible_user_id == "root"
|
|
||||||
tags: rsync
|
|
||||||
|
|
||||||
- name: Sync fish config files (users)
|
|
||||||
synchronize:
|
|
||||||
src: files/fish
|
|
||||||
dest: ~/.config
|
|
||||||
recursive: yes
|
recursive: yes
|
||||||
when: ansible_user_id != "root"
|
when: ansible_user_id != "root"
|
||||||
tags: rsync
|
|
||||||
|
|
||||||
- name: Laptops fish configuration
|
- name: Sync fish config files for cli (if root)
|
||||||
copy:
|
synchronize:
|
||||||
src: laptop.fish
|
src: fish/cli/
|
||||||
dest: ~/.config/fish/conf.d/
|
dest: /root/.config/fish
|
||||||
when: "'laptop' in {{ group_names }}"
|
recursive: yes
|
||||||
|
when: ansible_user_id == "root"
|
||||||
|
|
||||||
|
- name: Sync fish config files for desktop (if user)
|
||||||
|
synchronize:
|
||||||
|
src: files/fish/desktop/
|
||||||
|
dest: ~/.config/fish
|
||||||
|
recursive: yes
|
||||||
|
when: ansible_user_id != "root"
|
||||||
|
|
||||||
|
- name: Sync fish config files for desktop (if root)
|
||||||
|
synchronize:
|
||||||
|
src: files/fish/desktop
|
||||||
|
dest: /root/.config/fish
|
||||||
|
recursive: yes
|
||||||
|
when: ansible_user_id == "root"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user