aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2024-12-13 00:41:46 +0100
committerpml68 <contact@pml68.dev>2024-12-13 01:40:45 +0100
commit1e566ea3b67e1e58ec62a662690902e4d9596560 (patch)
treecc1ba0026c9db2bbfb74930df954096d7e19d9b3 /install.sh
parentfix(laptop): patch file (diff)
downloadsuckless-setup-1e566ea3b67e1e58ec62a662690902e4d9596560.tar.gz
feat: better install script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh34
1 files changed, 31 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 848536f..4a0776d 100755
--- a/install.sh
+++ b/install.sh
@@ -1,6 +1,34 @@
#!/bin/sh
-dirs=("dwm" "dmenu" "slstatus" "st")
+dirs="dwm dmenu slstatus st"
-for dir in "${dirs[@]}"; do
- (cd "$dir" && sudo make clean install)
+command_exists() {
+ command -v "$1" >/dev/null 2>&1
+}
+
+for dir in $dirs; do
+ (cd "$dir" && echo "starting $dir installation" && make clean install && echo "$dir installation complete")
done
+
+if command_exists feh; then
+ feh --bg-fill wallpaper.jpg
+ echo "~/.fehbg &" >> ~/.xinitrc
+fi
+
+if command_exists picom; then
+ cp picom.conf /etc/xdg/picom.conf
+ echo "picom &" >> ~/.xinitrc
+fi
+
+command_exists flameshot && echo "flameshot &" >> ~/.xinitrc
+
+command_exists neofetch && cp neofetch -r ~/.config/
+
+command_exists vis && cp vis -r ~/.config/
+
+if command_exists tmux; then
+ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
+ cp tmux -r ~/.config/
+fi
+
+echo "slstatus &" >> ~/.xinitrc
+echo "exec dwm" >> ~/.xinitrc