diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:20:31 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-11-29 01:20:31 +0100 |
| commit | c7f29cac7c64f71324cf289e774033245e3bf320 (patch) | |
| tree | f2aff412745b86333e043b92e4f6a94066e9ca53 /install | |
| parent | feat(dwm): tweak default volume on both config variants (diff) | |
| download | suckless-setup-c7f29cac7c64f71324cf289e774033245e3bf320.tar.gz | |
feat: better install script, move vis & tmux stuff to dotfiles repo
Diffstat (limited to 'install')
| -rwxr-xr-x | install | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +#!/bin/sh +programs="dwm dmenu slstatus st fetcha" + +command_exists() { + command -v "$1" >/dev/null 2>&1 +} + +if [ "$(id -u)" -eq 0 ] || [ -n "$SUDO_UID" ]; then + read -p "Install laptop configuration instead of desktop? [y/N] " laptop + if [ "$laptop" = "y" ] || [ "$laptop" = "Y" ]; then + git apply laptop.diff + fi + + for program in $programs; do + (cd "$program" && echo "Starting $program installation" && make -s clean install && echo "$program installation complete" && make -s clean) + done + + if command_exists picom; then + echo "Copying picom configuration" + cp picom.conf /etc/xdg/picom.conf + fi +else + echo "No root permissions, skipping installation of suckless programs and picom config" +fi + + +if command_exists feh; then + echo "Creating ~/.fehbg" + echo '#!/bin/sh' > ~/.fehbg + echo "feh --no-fehbg --bg-fill $(pwd)/wallpaper.jpg" >> ~/.fehbg + chmod 755 ~/.fehbg +fi |
