From 49c53140e47760f76b52405aaa749a4a7edb9987 Mon Sep 17 00:00:00 2001 From: Guilhem Baccialone Date: Sun, 21 Jun 2026 08:15:42 +0200 Subject: [PATCH] create install.sh and update README --- README.md | 23 +++++++++++++++------ install.sh | 35 ++++++++++++++++++++++++++++++++ mango/.config/mango/autostart.sh | 3 --- mango/.config/mango/config.conf | 1 + 4 files changed, 53 insertions(+), 9 deletions(-) create mode 100755 install.sh diff --git a/README.md b/README.md index 6755ee7..649b5a7 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..79e5b96 --- /dev/null +++ b/install.sh @@ -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 /\$HOME directory" + 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!" diff --git a/mango/.config/mango/autostart.sh b/mango/.config/mango/autostart.sh index bafc1e9..e56c8ec 100755 --- a/mango/.config/mango/autostart.sh +++ b/mango/.config/mango/autostart.sh @@ -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 & diff --git a/mango/.config/mango/config.conf b/mango/.config/mango/config.conf index 97aec28..a2a1f17 100644 --- a/mango/.config/mango/config.conf +++ b/mango/.config/mango/config.conf @@ -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