diff options
| -rw-r--r-- | README.md | 24 | ||||
| -rwxr-xr-x | install.sh | 34 |
2 files changed, 52 insertions, 6 deletions
@@ -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:  @@ -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 |
