La recette du beurre : ou comment gérer ses fichiers de configuration personnels
 
 
 
 
Go to file
Olivier DOSSMANN be3ea7d62c Première grosse initialisation 2019-10-03 23:28:01 +02:00
.config Première grosse initialisation 2019-10-03 23:28:01 +02:00
.zsh/completion Première grosse initialisation 2019-10-03 23:28:01 +02:00
bin Dépôt initial 2019-10-03 22:56:50 +02:00
wallpapers Première grosse initialisation 2019-10-03 23:28:01 +02:00
.Xresources Première grosse initialisation 2019-10-03 23:28:01 +02:00
.compton.conf Première grosse initialisation 2019-10-03 23:28:01 +02:00
.gitconfig Première grosse initialisation 2019-10-03 23:28:01 +02:00
.gitignore_global Première grosse initialisation 2019-10-03 23:28:01 +02:00
.gitmessage.txt Première grosse initialisation 2019-10-03 23:28:01 +02:00
.p10k.zsh Première grosse initialisation 2019-10-03 23:28:01 +02:00
.profile Première grosse initialisation 2019-10-03 23:28:01 +02:00
.tmux.conf Première grosse initialisation 2019-10-03 23:28:01 +02:00
.xinitrc Première grosse initialisation 2019-10-03 23:28:01 +02:00
.zprofile Première grosse initialisation 2019-10-03 23:28:01 +02:00
.zshenv Première grosse initialisation 2019-10-03 23:28:01 +02:00
.zshrc Première grosse initialisation 2019-10-03 23:28:01 +02:00
README.md Première grosse initialisation 2019-10-03 23:28:01 +02:00
TODO Première grosse initialisation 2019-10-03 23:28:01 +02:00

README.md

Les fichiers de configuration d'Olivier

Cf. https://medium.com/toutsbrasil/how-to-manage-your-dotfiles-with-git-f7aeed8adf8b et https://news.ycombinator.com/item?id=11070797

La première fois ça donne :

git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no

et on utilise la commande dotfiles (inclure dans .zshrc) pour ajouter des fichiers :

dotfiles add .zshrc

Les autres fois :

git clone --bare https://github.com/USERNAME/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles checkout
source ~/.zshrc

Ce qui relance zsh pour rendre la commande dotfiles active !

Description

Quelques fichiers de configuration possibles pour des outils quotidiens tels que :

  • Multiplexeur
  • Éditeur
  • Serveur graphique
  • Interpréteur de commande
  • etc.

D'autres viendront au fur et à mesure.

Dépendances

Sont nécessaires :

Cas de ZSH

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
cp dotfiles/zshrc ~/.zshrc
cp dotfiles/p10k.zsh ~/.p10k.zsh

Cas d'i3

Nécessite :

  • .profile pour rendre disponible $HOME/bin
  • .Xresources

Dépendances :

  • gksu (pour éteindre/redémarrer le système à partir de polybar)
  • scrot
  • feh
  • i3-gaps (à la place d'i3)
  • rofi (pour le menu de lancement)
  • compton (pour la transparence et les ombres des fenêtres)
  • polybar (à la place de la barre d'état)
  • ttf-font-awesome-4 (pour afficher des icônes dans la barre d'état)
  • (optionnel) network-manager-applet (pour la configuration wifi)
  • pavucontrol (gestion du son)
  • wireless_tools pour l'affichage wifi dans polybar
  • clipit (presse-papier du bureau)
  • hamster-time-tracker (enregistrement des durées de travail)
  • httpie
  • nvm (pour zshrc qui demande cet outil)
  • dunst (pour notification bureau)

À Configurer (avec un script bash ou autre)

  • .Xdefaults (nécessaire que pour urxvt)
  • .Xresources (thème dark solarized pour X)
  • .gitconfig
  • .gitignore_global
  • .gitmessage.txt
  • .i3status.conf
  • .profile
  • .tmux.conf
  • .vimrc
  • .xinitrc
  • .zprofile
  • .zsh
  • .zshenv
  • .zshrc
  • .p10k.zsh
  • [optionnel] environnement openbox
  • dossier .config
  • dossier bin
  • dossier zsh
  • dossier wallpapers

Clavier FR avec la commande suivante :

localectl --no-convert set-x11-keymap fr,fr pc104 oss,bepo grp:alt_shift_toggle

Autologin

Cf. https://wiki.archlinux.org/index.php/Getty#Automatic_login_to_virtual_console

Configuration de Git

git config --global commit.template ~/.gitmessage.txt 

Selfie de la caméra avec mpv

mpv av://v4l2:/dev/video0

puis on appuie sur la touche [s].

Liens utiles