mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-23 20:09:44 +00:00
feat(dwmtitus-setup): add slstatus installation option
Compiles and Installs slstatus
This commit is contained in:
parent
1a17dbf2ac
commit
65f26795bb
26
tabs/applications-setup/dwmtitus-setup.sh
Normal file → Executable file
26
tabs/applications-setup/dwmtitus-setup.sh
Normal file → Executable file
|
@ -295,11 +295,37 @@ 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
|
||||
case "$response" in
|
||||
[Yy] | [Yy][Ee][Ss]) # Matches: Y, y, Yes, yes, YES, yEs, yeS, etc.
|
||||
echo "Installing slstatus"
|
||||
cd 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
|
||||
;;
|
||||
[Nn] | [Nn][Oo]) # same logic as above, but for No
|
||||
echo "Skipping slstatus installation"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid input. Please enter y/yes or n/no."
|
||||
install_slstatus
|
||||
;;
|
||||
esac
|
||||
cd ..
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
setupDisplayManager
|
||||
setupDWM
|
||||
makeDWM
|
||||
install_slstatus
|
||||
install_nerd_font
|
||||
clone_config_folders
|
||||
configure_backgrounds
|
||||
|
|
Loading…
Reference in New Issue
Block a user