move distro/de-specific stuff to its own folder

This commit is contained in:
askiiart 2024-07-10 14:38:12 -05:00
parent 3110da2e40
commit 6bd1edfd47
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
5 changed files with 23 additions and 19 deletions

15
run-distro-de-script.sh Normal file
View file

@ -0,0 +1,15 @@
#!/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