create install.sh and update README

This commit is contained in:
Guilhem Baccialone 2026-06-21 08:15:42 +02:00
parent 05c4a780d7
commit 49c53140e4
4 changed files with 53 additions and 9 deletions

View file

@ -1,9 +1,20 @@
# DOTFILES
## Configuration
### Tools I use on my different machine
- alacritty
- fish
- helix
- mango
- zellij
### Tools configuration folder
- [alacritty](https://alacritty.org/)
- [fish](https://fishshell.com/)
- [helix](https://helix-editor.com/)
- [mango](https://mangowm.github.io/) with [dankmaterialshell](https://danklinux.com/)
- [zellij](https://zellij.dev/)
### Prerequisite
- [stow](https://www.gnu.org/software/stow/) (to stow dotfiles)
- [eza](https://eza.rocks/) (ls replacement used in the installation script)
### Install
```
cd $HOME
git clone https://codeberg.org/Guiglin/dotfiles.git
./install.sh
```

35
install.sh Executable file
View file

@ -0,0 +1,35 @@
#!/bin/bash
# Check stow is installed
echo "Checking stow is installed"
if [[ $(which stow 2>/dev/null) ]]; then
echo "stow is installed!"
else
echo "stow is not installed, exiting…"
exit 1
fi
echo "Checking eza is installed"
if [[ $(which eza 2>/dev/null) ]]; then
echo "eza is installed!"
else
echo "eza is not installed, exiting…"
exit 1
fi
# Check the folder is deploy in $HOME
echo "Check the folder is deploy in $HOME"
path=$(dirname $(pwd))
if [[ "$path" != "$HOME" ]]; then
echo "dotfiles folder must be cloned in your /\$HOMEdirectory"
echo "exiting…"
exit 1
fi
echo "dotfiles folder is in the right place"
echo "Stowing dotfiles..."
for folder in $(eza -D)
do
stow "$folder"
done
echo "done!"

View file

@ -8,9 +8,6 @@ gentoo-pipewire-launcher restart >/dev/null 2>&1 &
# ssh agent
ssh-agent -a /run/user/1000/ssh-agent.socket >/dev/null 2>&1 &
# kdeconnectd
kdeconnectd >/dev/null 2>&1 &
# password
/usr/lib/polkit-kde-authentication-agent-1 >/dev/null 2>&1 &

View file

@ -290,6 +290,7 @@ source=./dms/cursor.conf
# autostart your favorite applications here
exec-once=~/.config/mango/autostart.sh
exec-once=kdeconnectd
source=./dms/cursor.conf