Merge branch 'master' of ssh://git_opytex/lafrite/Ansible_workstation

This commit is contained in:
Bertrand Benjamin 2021-06-15 17:04:35 +02:00
commit ca1f2936a8
30 changed files with 295 additions and 2845 deletions

View File

@ -1,6 +1,7 @@
!*.font: xft:monospace:size=9 !*.font: xft:monospace:size=9
! URxvt*font: xft:Ubuntu Mono derivative Powerline:size=9 ! URxvt*font: xft:Ubuntu Mono derivative Powerline:size=9
URxvt.font: xft:Ubuntu Mono derivative Powerline:pixelsize=14,xft:Droid Sans Mono for Powerline:pixelsize=14,xft:DejaVu Sans Mono:pixelsize=14,xft:Droid Sans Fallback:pixelsize=14,xft:FreeSans:pixelsize=14,xft:FreeSans:pixelsize=14 URxvt*font: xft:Hack Nerd Font:pixelsize=12,xft:UbuntuMono Nerd Font:pixelsize=12
! URxvt*font: xft:Ubuntu Mono derivative Powerline:pixelsize=14,xft:Droid Sans Mono for Powerline:pixelsize=14,xft:DejaVu Sans Mono:pixelsize=14,xft:Droid Sans Fallback:pixelsize=14,xft:FreeSans:pixelsize=14,xft:FreeSans:pixelsize=14
URxvt*scrollBar: false URxvt*scrollBar: false
URxvt.perl-ext-common: default,fullscreen,resize-font URxvt.perl-ext-common: default,fullscreen,resize-font
@ -12,57 +13,86 @@ URxvt.resize-font.smaller: C-Down
URxvt.resize-font.bigger: C-Up URxvt.resize-font.bigger: C-Up
! URxvt.foreground: #f6f3e8 ! ! URxvt.foreground: #f6f3e8
! URxvt.background: #242424 ! ! URxvt.background: #242424
! URxvt.cursorColor: #f6f3e8 ! ! URxvt.cursorColor: #f6f3e8
*.foreground: #fcfae1 ! *.foreground: #fcfae1
*.background: #404040 ! *.background: #404040
*.cursorColor: #f595a7 ! *.cursorColor: #f595a7
*.color0: #404040 ! *.color0: #404040
*.color8: #262626 ! *.color8: #262626
*.color1: #b9454b ! *.color1: #b9454b
*.color9: #e75252 ! *.color9: #e75252
*.color2: #bd8d46 ! *.color2: #bd8d46
*.color10: #dea552 ! *.color10: #dea552
*.color3: #f6e497 ! *.color3: #f6e497
*.color11: #d1c180 ! *.color11: #d1c180
*.color4: #f595a7 ! *.color4: #f595a7
*.color12: #d1a5ad ! *.color12: #d1a5ad
*.color5: #d28e2a ! *.color5: #d28e2a
*.color13: #b47a24 ! *.color13: #b47a24
*.color6: #ebcd4f ! *.color6: #ebcd4f
*.color14: #b9a659 ! *.color14: #b9a659
*.color7: #fcfae1 ! *.color7: #fcfae1
*.color15: #f3f2e7 ! *.color15: #f3f2e7
!
!
! ! ! ANSI colours
! ! ! black
! ! URxvt.color0: #073642
! ! URxvt.color8: #002636
! ! ! red
! ! URxvt.color1: #dc322f
! ! URxvt.color9: #cb4b16
! ! ! green
! ! URxvt.color2: #859900
! ! URxvt.color10: #586e75
! ! ! yellow
! ! URxvt.color3: #b58900
! ! URxvt.color11: #657b83
! ! ! blue
! ! URxvt.color4: #268bd2
! ! URxvt.color12: #839496
! ! ! magenta
! ! URxvt.color5: #d33682
! ! URxvt.color13: #6c71c4
! ! ! cyan
! ! URxvt.color6: #2aa198
! ! URxvt.color14: #93a1a1
! ! ! white
! ! URxvt.color7: #eee8d5
! ! URxvt.color15: #fdf6e3
!
! ! Colored man
! URxvt.colorIT: #87af5f
! URxvt.colorBD: #d7d7d7
! URxvt.colorUL: #87afd7
! hard contrast: *background: #1d2021
! ! ANSI colours *background: #282828
! ! black ! soft contrast: *background: #32302f
! URxvt.color0: #073642 *foreground: #ebdbb2
! URxvt.color8: #002636 ! Black + DarkGrey
! ! red *color0: #282828
! URxvt.color1: #dc322f *color8: #928374
! URxvt.color9: #cb4b16 ! DarkRed + Red
! ! green *color1: #cc241d
! URxvt.color2: #859900 *color9: #fb4934
! URxvt.color10: #586e75 ! DarkGreen + Green
! ! yellow *color2: #98971a
! URxvt.color3: #b58900 *color10: #b8bb26
! URxvt.color11: #657b83 ! DarkYellow + Yellow
! ! blue *color3: #d79921
! URxvt.color4: #268bd2 *color11: #fabd2f
! URxvt.color12: #839496 ! DarkBlue + Blue
! ! magenta *color4: #458588
! URxvt.color5: #d33682 *color12: #83a598
! URxvt.color13: #6c71c4 ! DarkMagenta + Magenta
! ! cyan *color5: #b16286
! URxvt.color6: #2aa198 *color13: #d3869b
! URxvt.color14: #93a1a1 ! DarkCyan + Cyan
! ! white *color6: #689d6a
! URxvt.color7: #eee8d5 *color14: #8ec07c
! URxvt.color15: #fdf6e3 ! LightGrey + White
*color7: #a89984
! Colored man *color15: #ebdbb2
URxvt.colorIT: #87af5f
URxvt.colorBD: #d7d7d7
URxvt.colorUL: #87afd7

View File

@ -28,6 +28,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC7TiJ6Tnxc_dSE42byTPMug "Bo
https://www.youtube.com/feeds/videos.xml?channel_id=UC9fGq2-6FaftcegcIadLf6A "Bois" "Samuel Mamias" https://www.youtube.com/feeds/videos.xml?channel_id=UC9fGq2-6FaftcegcIadLf6A "Bois" "Samuel Mamias"
https://www.youtube.com/feeds/videos.xml?channel_id=UCOuow_HIYmeaIqi42zVs3qg "Bois" "Kirby Meets Audio" https://www.youtube.com/feeds/videos.xml?channel_id=UCOuow_HIYmeaIqi42zVs3qg "Bois" "Kirby Meets Audio"
https://www.youtube.com/feeds/videos.xml?channel_id=UC7FkqjV8SU5I8FCHXQSQe9Q "Bois" "Ishitani furniture" https://www.youtube.com/feeds/videos.xml?channel_id=UC7FkqjV8SU5I8FCHXQSQe9Q "Bois" "Ishitani furniture"
https://www.youtube.com/feeds/videos.xml?channel_id=UCjaudhGC0gBfEtMyQYzT3pA "Bois" "Atelier Floky"
https://www.youtube.com/feeds/videos.xml?channel_id=UCRix1GJvSBNDpEFY561eSzw "DIY" "Laura Kampf" https://www.youtube.com/feeds/videos.xml?channel_id=UCRix1GJvSBNDpEFY561eSzw "DIY" "Laura Kampf"

File diff suppressed because it is too large Load Diff

@ -1 +0,0 @@
Subproject commit ec6f369a000602e37e7c066b725f9d6bd12538f4

@ -1 +0,0 @@
Subproject commit 688776cf68e1199ca96dca1fb169182dddb95a98

@ -1 +0,0 @@
Subproject commit f81feb1e69e5cb75797d50817752ddfe4933cd68

@ -1 +0,0 @@
Subproject commit 7a655179a43cd431862a2bf5d297d9e55fd3f814

@ -1 +0,0 @@
Subproject commit 6b6ed2734084fdbb6315357ddcaecf9c8e6f143d

@ -1 +0,0 @@
Subproject commit 15aceda8c4eea621b66faa8673fca0b9fbe2f457

@ -1 +0,0 @@
Subproject commit c172131e0369672bc1b9454a2aec6d532d350dcc

@ -1 +0,0 @@
Subproject commit caf3b1d5696e8d39a905e48f1e89d8c0c565168c

@ -1 +0,0 @@
Subproject commit c947ad2b6a16983724a0153bdf7f66d7a80a32ca

@ -1 +0,0 @@
Subproject commit dfa1e55fe1c7f309f8cce4db0243f14f6edb2d4c

@ -1 +0,0 @@
Subproject commit 087d3e7c72912baeb6b1d7ba626e61d50092c848

@ -1 +0,0 @@
Subproject commit f51a26d3710629d031806305b6c8727189cd1935

@ -1 +0,0 @@
Subproject commit 44ba6fbe45895cd541ebfc87606add5c76e3829b

@ -1 +0,0 @@
Subproject commit d777cb13f23ee1de0d19f4146cab67e3b8fd4681

View File

@ -0,0 +1,11 @@
{
"coc.preferences.formatOnSaveFiletypes": [
"rst",
"javascript",
"python",
"json",
"yaml"
],
"python.jediEnabled": false,
"python.formatting.provider": "black"
}

View File

@ -8,3 +8,5 @@
vmap < <gv vmap < <gv
vmap > >gv vmap > >gv
" Automatically spell check last error in insert mode
inoremap <c-f> <c-g>u<Esc>[s1z=`]a<c-g>u

View File

@ -49,7 +49,7 @@ set smartcase " Override ignorecase if search patern c
set wildmenu " Enable wildmenu set wildmenu " Enable wildmenu
set spell " Enable spell checking set spell " Enable spell checking
set spelllang=fr set spelllang=fr,en
set nrformats+=alpha " letter concidered as number for Ctrl-A or Ctrl-X set nrformats+=alpha " letter concidered as number for Ctrl-A or Ctrl-X

View File

@ -1,6 +1,7 @@
let maplocalleader = "\<Space>" let maplocalleader = "\<Space>"
let g:tex_conceal = "" let g:tex_conceal = ""
set conceallevel=0
let g:vimtex_compiler_latexmk = { let g:vimtex_compiler_latexmk = {
\ 'backend' : 'nvim', \ 'backend' : 'nvim',

View File

@ -1,10 +0,0 @@
zsh-users/zsh-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
desyncr/auto-ls
andrewferrier/fzf-z
https://github.com/denysdovhan/spaceship-prompt spaceship

17
files/dotfiles/zshenv Normal file
View File

@ -0,0 +1,17 @@
export TERM='rxvt-256color'
# XDG
export XDG_CONFIG_HOME=$HOME/.config
# editor
export EDITOR="nvim"
export VISUAL="nvim"
# zsh
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export HISTFILE="$ZDOTDIR/.zhistory" # History filepath
export HISTSIZE=10000 # Maximum events for internal history
export SAVEHIST=10000 # Maximum events in history file

View File

@ -1,5 +1,61 @@
# Created by newuser for 5.5.1 fpath+=$ZDOTDIR/pure
source <(antibody init)
antibody bundle < ~/.zsh_plugins.txt autoload -U compinit
PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin:$(yarn config get prefix)/bin" zstyle ':completion:*' menu select
source ~/.zshrc.local zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
# Prompt theme
# git clone https://github.com/sindresorhus/pure ~/.config/zsh/
autoload -U promptinit; promptinit
prompt pure
# Cursor for vimode
# ZLE hooks for prompt's vi mode status
function zle-line-init zle-keymap-select {
# Change the cursor style depending on keymap mode.
case $KEYMAP {
vicmd)
printf '\e[0 q' # Box.
;;
viins|main)
printf '\e[6 q' # Vertical bar.
;;
}
}
zle -N zle-line-init
zle -N zle-keymap-select
# Switch between vimode quickly
export KEYTIMEOUT=1
# Alias
## Colors
alias ls='ls --color'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
## Prompt when over right
alias cp='cp -iv'
alias mv='mv -iv'
alias rm='rm -i'
# Autosuggestions
# git clone https://github.com/zsh-users/zsh-autosuggestions ~/.config/zsh/
source ~/.config/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
# Syntax Highlight
# git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.config/zsh/
source ~/.config/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Auto-ls
source ~/.config/zsh/auto-ls/auto-ls.zsh
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh

View File

@ -1,45 +0,0 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory nomatch
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/lafrite/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Autocompletion insensitive to case
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=245"
# automatic color scheme with pywall
# Vim keybindings
bindkey -v
# substring search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
# fzf
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
# fzf-z
export FZFZ_EXTRA_DIRS="/media/documents/"
# Alias
alias notes="vim -c Note"
# taskwarrior alias
alias in="task add +in"
export EDITOR="vim"
# auto_ls pluting
export AUTO_LS_COMMANDS=(ls git-status)

View File

@ -89,7 +89,7 @@
- name: <super + enter> to fire a terminal - command - name: <super + enter> to fire a terminal - command
dconf: dconf:
key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command" key: "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command"
value: "'alacritty'" value: "'urxvt'"
state: present state: present
become: true become: true
become_user: "{{ me.username }}" become_user: "{{ me.username }}"

View File

@ -7,6 +7,7 @@
- firefox-i18n-fr - firefox-i18n-fr
- chromium - chromium
- inkscape - inkscape
- pstoedit # Enable latex in inkscape
- thunderbird - thunderbird
- thunderbird-i18n-fr - thunderbird-i18n-fr
- libreoffice-fresh - libreoffice-fresh

View File

@ -1,4 +1,13 @@
--- ---
- name: dotfiles -- Copying Xdefaults
template:
src: files/dotfiles/Xdefaults
dest: /home/{{ item.username }}/.Xdefaults
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
# Tmux
- name: dotfiles -- Copy tmux.conf - name: dotfiles -- Copy tmux.conf
template: template:
src: files/dotfiles/tmux.conf src: files/dotfiles/tmux.conf
@ -7,51 +16,63 @@
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
# Zsh config
- name: dotfiles -- Download antibody
get_url:
url: https://raw.githubusercontent.com/getantibody/installer/master/install
dest: /tmp/antibody.sh
mode: 0770
when: prompt == "zsh"
- name: dotfiles -- Execute the antibody.sh # ZSH
shell: /tmp/antibody.sh - name: dotiles -- create .config/zsh directory
become: yes file:
ignore_errors: yes path: /home/{{ item.username }}/.config/zsh/
when: prompt == "zsh" state: directory
mode: '0755'
- name: dotfiles -- Remove the antibody.sh with_items: "{{ dotusers }}"
file: path=/tmp/antibody.sh state=absent when: prompt == 'zsh'
when: prompt == "zsh"
- name: dotfiles -- Copy local zshrc - name: dotfiles -- Copy local zshrc
template: template:
src: files/dotfiles/zshrc src: files/dotfiles/zshrc
dest: /home/{{ item.username }}/.zshrc dest: /home/{{ item.username }}/.config/zsh/.zshrc
owner: "{{ item.username }}" owner: "{{ item.username }}"
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'
- name: dotfiles -- Copy local zshrc.local - name: dotfiles -- Copy local zshenv
template: template:
src: files/dotfiles/zshrc.local src: files/dotfiles/zshenv
dest: /home/{{ item.username }}/.zshrc.local dest: /home/{{ item.username }}/.zshenv
owner: "{{ item.username }}" owner: "{{ item.username }}"
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'
- name: dotfiles -- Copy local zsh_plugins.txt - name: dotiles -- clone zsh syntax-hightlighting
template: git:
src: files/dotfiles/zsh_plugins.txt repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: /home/{{ item.username }}/.zsh_plugins.txt dest: /home/{{ item.username }}/.config/zsh/zsh-syntax-highlighting
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'
- name: dotiles -- clone zsh autosuggestions
git:
repo: https://github.com/zsh-users/zsh-autosuggestions.git
dest: /home/{{ item.username }}/.config/zsh/zsh-autosuggestions
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh auto-ls
git:
repo: https://github.com/desyncr/auto-ls
dest: /home/{{ item.username }}/.config/zsh/auto-ls
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh pure prompt
git:
repo: https://github.com/sindresorhus/pure.git
dest: /home/{{ item.username }}/.config/zsh/pure
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
# Fish config # Fish config
- name: dotfiles -- Create fish config directory - name: dotfiles -- Create fish config directory
file: file:
@ -131,6 +152,15 @@
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: editor == 'nvim' when: editor == 'nvim'
# coc snippets
- name: dotfiles -- Copying snippets
copy:
src: files/dotfiles/ultisnips/
dest: /home/{{ item.username }}/.config/coc/ultisnips
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
# Alacritty terminal # Alacritty terminal
- name: dotfiles -- Copy alacritty config - name: dotfiles -- Copy alacritty config
copy: copy:
@ -168,12 +198,3 @@
group: "{{ item.group }}" group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: not server when: not server
# coc snippets
- name: dotfiles -- Copying snippets
copy:
src: files/dotfiles/ultisnips/
dest: /home/{{ item.username }}/.config/coc/ultisnips
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"

View File

@ -1,20 +1,9 @@
--- ---
# - name: download default grml configuration
# get_url:
# url: http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
# dest: /etc/zsh/newuser.zshrc.recommended
# backup: yes
#
# - name: download default grml configuration
# get_url:
# url: http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc
# dest: /etc/zsh/zshrc
# force: yes
# backup: yes
- name: Install base CLI packages - name: Install base CLI packages
pacman: pacman:
name: zsh name:
- zsh
- grml-zsh-config
state: present state: present
- name: Set shell for root to zsh - name: Set shell for root to zsh
@ -24,3 +13,58 @@
tags: tags:
- first_deployement - first_deployement
# ZSH dotfiles
- name: dotiles -- create .config/zsh directory
file:
path: /home/{{ item.username }}/.config/zsh/
state: directory
mode: '0755'
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotfiles -- Copy local zshrc
template:
src: files/dotfiles/zshrc
dest: /home/{{ item.username }}/.config/zsh/.zshrc
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotfiles -- Copy local zshenv
template:
src: files/dotfiles/zshenv
dest: /home/{{ item.username }}/.zshenv
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh syntax-hightlighting
git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: /home/{{ item.username }}/.config/zsh/zsh-syntax-highlighting
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh autosuggestions
git:
repo: https://github.com/zsh-users/zsh-autosuggestions.git
dest: /home/{{ item.username }}/.config/zsh/zsh-autosuggestions
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh auto-ls
git:
repo: https://github.com/desyncr/auto-ls
dest: /home/{{ item.username }}/.config/zsh/auto-ls
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh pure prompt
git:
repo: https://github.com/sindresorhus/pure.git
dest: /home/{{ item.username }}/.config/zsh/pure
with_items: "{{ dotusers }}"
when: prompt == 'zsh'

View File

@ -6,7 +6,7 @@ public_key:
- user: "{{ me }}" - user: "{{ me }}"
key: id_ed25519_home.pub key: id_ed25519_home.pub
prompt: fish prompt: zsh
editor: nvim editor: nvim
autofs: autofs: