dotfiles/run-distro-de-script.sh

16 lines
339 B
Bash
Raw Normal View History

#!/usr/bin/env bash
command_exists() { type "$1" &>/dev/null; }
cd distro-specific-scripts/
distro=""
if command_exists "pacman"; then
distro="arch"
elif command_exists "dnf" || command_exists "rpm-ostree"; then
distro="fedora"
elif command_exists "xbps-install"; then
distro="void"
fi
./${distro}-${XDG_CURRENT_DESKTOP}.sh