diff --git a/tabs/applications-setup/dwmtitus-setup.sh b/tabs/applications-setup/dwmtitus-setup.sh old mode 100644 new mode 100755 index b52eee8f..d1592385 --- a/tabs/applications-setup/dwmtitus-setup.sh +++ b/tabs/applications-setup/dwmtitus-setup.sh @@ -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 \ No newline at end of file