aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md24
-rwxr-xr-xinstall.sh34
2 files changed, 52 insertions, 6 deletions
diff --git a/README.md b/README.md
index e569bbe..1d9521d 100644
--- a/README.md
+++ b/README.md
@@ -8,12 +8,16 @@ My personal suckless setup.
- Alt+Shift+F: Opens Zen Browser
- PrtScr: Opens Flameshot
-## Installation
+## Dependencies
Install necessary packages (Arch Linux specific, other distros will differ)
```sh
sudo pacman -S picom feh flameshot ttf-jetbrains-mono-nerd libqalculate
```
+## Installation
+
+### Manual
+
Clone the repo
```sh
git clone https://github.com/pml68/suckless-setup
@@ -34,9 +38,15 @@ cp tmux -r ~/.config
# Start tmux, and install necessary plugins with C-a I
```
-Build and install each suckless program manually or with the included script
+Build and install each suckless program
```sh
-./install.sh
+cd dwm
+sudo make clean install
+cd ..
+
+cd dmenu
+sudo make clean install
+# ...
```
Set the background
@@ -54,6 +64,14 @@ slstatus &
exec dwm
```
+### Automated
+
+Simply run the included script
+```sh
+chmod +x install.sh
+./install.sh
+```
+
# Screenshot:
![Screenshot](screenshot.png)
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