dotfiles/README.md

109 lines
3.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dotfiles
This is just a bunch of dotfiles.
## ArchLinux packages
``` sh
# Base utils
pacman -S bat duf eza htop inetutils jq kitty-terminfo neovim openssh tmux transmission-cli tree wget whois zellij zsh zsh-syntax-highlighting
pacman -S shared-mime-info xdg-user-dirs
pacman -S reflector
pacman -S skim
pacman -S yazi unarchiver ffmpegthumbnailer fd ripgrep-all poppler zoxide
# Rust
pacman -S cargo-audit cargo-outdated cargo-release rustup
# Python
pacman -S python ruff uv
# CLI software
pacman -S dog exiv2 gnupg imagemagick mkcert ncdu nmap pass playerctl python-shodan python-weasyprint qrencode rsync shellcheck sqlmap ssh-audit xsv yt-dlp
# Hyprland
pacman -S hyprland xdg-desktop-portal-hyprland qt5-wayland qt6-wayland
pacman -S pipewire wireplumber pipewire-audio pipewire-alsa pipewire-pulse pipewire-jack pipewire-x11-bell
pacman -S brightnessctl dunst fuzzel hyprpaper otf-font-awesome udiskie waybar wl-clipboard
pacman -S grim slurp
pacman -S swaylock
# Graphical software
pacman -S atril firefox gedit gimp handbrake kitty mpv openshot pcmanfm-gtk3 rhythmbox ristretto sweethome3d tumbler thunderbird vlc
pacman -S gvfs xarchiver
# Fonts
pacman -S noto-fonts noto-fonts-emoji ttf-dejavu ttf-inconsolata ttf-liberation ttf-roboto
# Archives
pacman -S unrar p7zip zip unzip minizip
# Command-line copy/paste utilities
pacman -S wl-clipboard xclip
# MS-DOS
pacman -S dosfstools mtools
# AUR
pacman -S pacman-contrib namcap
# Smartcards
pacman -S ccid libnfc mfoc opensc pcsc-tools pcsclite
```
``` sh
# Base utils
yay -S liquidprompt vim-plug
# Printer
yay -S brother-dcp1610w brscan-skey brscan4
# Graphical software
yay -S cardpeek
```
## vim
Plugins are managed by `vim-plug`, which is installed from the AUR.
``` sh
vim +PlugInstall
```
## wallpaper
The wallpaper is randomly set from images (png, jpg and jpeg) from `~/pictures/wallpapers/enabled/`. You should populate this directory with symbolic links pointing to images stored in `~/pictures/wallpapers/`.
## /etc/locale.conf
```
cat >/etc/locale.conf << EOF
LANG=en_US.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
EOF
```
## rtkit-daemon
Par défaut, [rtkit-daemon][rtkit] a tendance à inonder les journaux systèmes de notifications peu intéressantes :
```
déc. 31 14:16:56 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users.
déc. 31 14:16:56 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users.
déc. 31 14:17:00 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users.
déc. 31 14:17:00 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 processes of 1 users.
```
La solution est de lui fixer un niveau de journalisation plus adapté :
```
sudo mkdir "/etc/systemd/system/rtkit-daemon.service.d"
echo "[Service]\nLogLevelMax=4" | sudo tee /etc/systemd/system/rtkit-daemon.service.d/log.conf >/dev/null
sudo systemctl daemon-reload
sudo systemctl restart rtkit-daemon.service
```
Ainsi, `journalctl -f` n'est plus surchargé.
[rtkit]: https://archlinux.org/packages/extra/x86_64/rtkit/
## NetworkManager
Pour désactiver le WiFi lorsqu'une liaison filaire est disponible, regarder l'exemple 15 du `man 7 nmcli-examples`.
TL; DR: copier/coller un script dans `/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive.sh` et rendre ce fichier exécutable.