Merge pull request #392 from RazoBeckett/fix/slstatus

[Dwm-Titus-Setup] add slstatus installation option
This commit is contained in:
Chris Titus 2024-09-15 18:49:22 -05:00 committed by GitHub
commit 182f0a4142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

19
tabs/applications-setup/dwmtitus-setup.sh Normal file → Executable file
View File

@ -266,11 +266,30 @@ setupDisplayManager() {
}
install_slstatus() {
printf "Do you want to install slstatus? (y/N): " # using printf instead of 'echo' to avoid newline, -n flag for 'echo' is not supported in POSIX
read -r response # -r flag to prevent backslashes from being interpreted
if [ "$response" = "y" ] || [ "$response" = "Y" ]; then
echo "Installing slstatus"
cd "$HOME/dwm-titus/slstatus" || { echo "Failed to change directory to slstatus"; return 1; }
if $ESCALATION_TOOL make clean install; then
echo "slstatus installed successfully"
else
echo "Failed to install slstatus"
return 1
fi
else
echo "Skipping slstatus installation"
fi
cd "$HOME"
}
checkEnv
checkEscalationTool
setupDisplayManager
setupDWM
makeDWM
install_slstatus
install_nerd_font
clone_config_folders
configure_backgrounds