Compare commits
No commits in common. "07a91ea1364b3eb90b977aa903addc9b3750887d" and "d308fd50f8f9c316ed348bbff18de983a958b4f1" have entirely different histories.
07a91ea136
...
d308fd50f8
4 changed files with 23 additions and 50 deletions
|
@ -43,7 +43,7 @@ $lock = swaylock --color=000000 --daemonize
|
||||||
# exec-once = $terminal
|
# exec-once = $terminal
|
||||||
# exec-once = nm-applet &
|
# exec-once = nm-applet &
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
# exec-once = waybar & hyprpaper & firefox
|
||||||
exec-once = ~/.local/bin/set_wallpaper
|
exec-once = ~/.local/bin/set_wallpaper && hyprpaper
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
|
|
||||||
|
|
||||||
|
|
9
.vimrc
9
.vimrc
|
@ -6,9 +6,12 @@ filetype off
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'bling/vim-airline' " Lean & mean status/tabline for vim that's light as air.
|
Plug 'bling/vim-airline' " Lean & mean status/tabline for vim that's light as air.
|
||||||
|
Plug 'antoyo/vim-licenses' " Vim Plugin that Provides Commands to Add Licenses at the Top of the Buffer.
|
||||||
Plug 'sjl/badwolf' " A Vim color scheme.
|
Plug 'sjl/badwolf' " A Vim color scheme.
|
||||||
Plug 'rust-lang/rust.vim' " Vim configuration for Rust.
|
Plug 'rust-lang/rust.vim' " Vim configuration for Rust.
|
||||||
Plug 'cespare/vim-toml' " Vim syntax for TOML.
|
Plug 'cespare/vim-toml' " Vim syntax for TOML.
|
||||||
|
Plug 'editorconfig/editorconfig-vim' " EditorConfig plugin
|
||||||
|
Plug 'Yggdroot/indentLine' " Display thin vertical lines at each indentation level
|
||||||
Plug 'leafOfTree/vim-vue-plugin' " Vim syntax and indent plugin for .vue files.
|
Plug 'leafOfTree/vim-vue-plugin' " Vim syntax and indent plugin for .vue files.
|
||||||
Plug 'leafOfTree/vim-svelte-plugin' " Vim syntax and indent plugin for .svelte files.
|
Plug 'leafOfTree/vim-svelte-plugin' " Vim syntax and indent plugin for .svelte files.
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
@ -50,6 +53,12 @@ nnoremap k gk
|
||||||
let &t_ut=''
|
let &t_ut=''
|
||||||
|
|
||||||
|
|
||||||
|
" Licenses
|
||||||
|
let g:licenses_copyright_holders_name = $USER_NICKNAME
|
||||||
|
let g:licenses_authors_name = $USER_NICKNAME
|
||||||
|
let g:licenses_default_commands = ['affero', 'apache', 'bsd3', 'cecill', 'gfdl', 'gpl', 'gplv2', 'isc', 'lgpl', 'mit', 'mpl', 'verbatim']
|
||||||
|
|
||||||
|
|
||||||
" Line number modes
|
" Line number modes
|
||||||
:set number relativenumber
|
:set number relativenumber
|
||||||
:augroup numbertoggle
|
:augroup numbertoggle
|
||||||
|
|
42
README.md
42
README.md
|
@ -5,8 +5,6 @@ This is just a bunch of dotfiles.
|
||||||
|
|
||||||
## ArchLinux packages
|
## ArchLinux packages
|
||||||
|
|
||||||
Installing packages:
|
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
# Base utils
|
# 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 bat duf eza htop inetutils jq kitty-terminfo neovim openssh tmux transmission-cli tree wget whois zellij zsh zsh-syntax-highlighting
|
||||||
|
@ -43,20 +41,6 @@ pacman -S pacman-contrib namcap
|
||||||
pacman -S ccid libnfc mfoc opensc pcsc-tools pcsclite
|
pacman -S ccid libnfc mfoc opensc pcsc-tools pcsclite
|
||||||
```
|
```
|
||||||
|
|
||||||
### Arch User Repository
|
|
||||||
|
|
||||||
Installing yay:
|
|
||||||
|
|
||||||
``` sh
|
|
||||||
mkdir -p "$HOME/projects/builds"
|
|
||||||
git clone "https://aur.archlinux.org/yay.git" "$HOME/projects/builds/yay"
|
|
||||||
cd "$HOME/projects/builds/yay"
|
|
||||||
makepkg
|
|
||||||
pacman -U "yay-<version>-x86_64.pkg.tar.zst"
|
|
||||||
```
|
|
||||||
|
|
||||||
Installing packages:
|
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
# Base utils
|
# Base utils
|
||||||
yay -S liquidprompt vim-plug
|
yay -S liquidprompt vim-plug
|
||||||
|
@ -66,22 +50,18 @@ yay -S brother-dcp1610w brscan-skey brscan4
|
||||||
yay -S cardpeek
|
yay -S cardpeek
|
||||||
```
|
```
|
||||||
|
|
||||||
## vim / neovim
|
## vim
|
||||||
|
|
||||||
Plugins are managed by `vim-plug`, which is installed from the AUR.
|
Plugins are managed by `vim-plug`, which is installed from the AUR.
|
||||||
|
|
||||||
``` sh
|
``` sh
|
||||||
vim +PlugInstall # install all plugins
|
vim +PlugInstall
|
||||||
vim +PlugUpdate # install or update all plugins
|
|
||||||
vim +PlugClean # remove plugins no longer in the list
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Wallpaper
|
## wallpaper
|
||||||
|
|
||||||
The wallpaper is randomly set from images (png, jpg and jpeg) from
|
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/`.
|
||||||
`~/pictures/wallpapers/enabled/`. You should populate this directory with
|
|
||||||
symbolic links pointing to images stored in `~/pictures/wallpapers/`.
|
|
||||||
|
|
||||||
|
|
||||||
## /etc/locale.conf
|
## /etc/locale.conf
|
||||||
|
@ -99,8 +79,7 @@ EOF
|
||||||
|
|
||||||
## rtkit-daemon
|
## rtkit-daemon
|
||||||
|
|
||||||
By default, [rtkit-daemon][rtkit] tends to flood the system logs with not very
|
Par défaut, [rtkit-daemon][rtkit] a tendance à inonder les journaux systèmes de notifications peu intéressantes :
|
||||||
useful notifications:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
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.
|
||||||
|
@ -109,7 +88,7 @@ déc. 31 14:17:00 lpt-01 rtkit-daemon[1347]: Supervising 12 threads of 9 process
|
||||||
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.
|
||||||
```
|
```
|
||||||
|
|
||||||
This can be fixed by setting a higher log level:
|
La solution est de lui fixer un niveau de journalisation plus adapté :
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir "/etc/systemd/system/rtkit-daemon.service.d"
|
sudo mkdir "/etc/systemd/system/rtkit-daemon.service.d"
|
||||||
|
@ -118,14 +97,13 @@ sudo systemctl daemon-reload
|
||||||
sudo systemctl restart rtkit-daemon.service
|
sudo systemctl restart rtkit-daemon.service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Ainsi, `journalctl -f` n'est plus surchargé.
|
||||||
|
|
||||||
[rtkit]: https://archlinux.org/packages/extra/x86_64/rtkit/
|
[rtkit]: https://archlinux.org/packages/extra/x86_64/rtkit/
|
||||||
|
|
||||||
|
|
||||||
## NetworkManager
|
## NetworkManager
|
||||||
|
|
||||||
To deactivate WiFi when a wired connection is up, have a look at example 15
|
Pour désactiver le WiFi lorsqu'une liaison filaire est disponible, regarder l'exemple 15 du `man 7 nmcli-examples`.
|
||||||
from `man 7 nmcli-examples`.
|
|
||||||
|
|
||||||
TL; DR: copy and paste a script in
|
TL; DR: copier/coller un script dans `/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive.sh` et rendre ce fichier exécutable.
|
||||||
`/etc/NetworkManager/dispatcher.d/70-wifi-wired-exclusive.sh` and set it
|
|
||||||
executable.
|
|
||||||
|
|
|
@ -3,22 +3,11 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
WALLPAPER_DIRECTORY="$HOME/pictures/wallpapers/enabled"
|
||||||
HYPRPAPER_CNF="$HOME/.config/hypr/hyprpaper.conf"
|
HYPRPAPER_CNF="$HOME/.config/hypr/hyprpaper.conf"
|
||||||
WALLPAPER_DIR="$HOME/pictures/wallpapers/enabled"
|
|
||||||
WALLPAPER_DIR_WINTER="$WALLPAPER_DIR/winter"
|
|
||||||
|
|
||||||
# Set the wallpaper directory based on the current month
|
if [ -d "$WALLPAPER_DIRECTORY" ]; then
|
||||||
case "$(date '+%m')" in
|
WALLPAPER_FILE="$(find "$WALLPAPER_DIRECTORY" -type l -print | shuf | head -n 1)"
|
||||||
"01"|"02"|"11"|"12")
|
|
||||||
if [ -d "$WALLPAPER_DIR_WINTER" ]; then
|
|
||||||
WALLPAPER_DIR="$WALLPAPER_DIR_WINTER"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Generate the configuration
|
|
||||||
if [ -d "$WALLPAPER_DIR" ]; then
|
|
||||||
WALLPAPER_FILE="$(find "$WALLPAPER_DIR" -maxdepth 1 -type f -print | shuf | head -n 1)"
|
|
||||||
if [ -L "$WALLPAPER_FILE" ]; then
|
if [ -L "$WALLPAPER_FILE" ]; then
|
||||||
WALLPAPER_FILE="$(readlink -f "$WALLPAPER_FILE")"
|
WALLPAPER_FILE="$(readlink -f "$WALLPAPER_FILE")"
|
||||||
fi
|
fi
|
||||||
|
@ -28,6 +17,3 @@ wallpaper = ,$WALLPAPER_FILE
|
||||||
splash = false
|
splash = false
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the wallpaper
|
|
||||||
hyprpaper
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue