mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Merge pull request #392 from RazoBeckett/fix/slstatus
[Dwm-Titus-Setup] add slstatus installation option
This commit is contained in:
commit
182f0a4142
19
tabs/applications-setup/dwmtitus-setup.sh
Normal file → Executable file
19
tabs/applications-setup/dwmtitus-setup.sh
Normal file → Executable 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
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
setupDisplayManager
|
setupDisplayManager
|
||||||
setupDWM
|
setupDWM
|
||||||
makeDWM
|
makeDWM
|
||||||
|
install_slstatus
|
||||||
install_nerd_font
|
install_nerd_font
|
||||||
clone_config_folders
|
clone_config_folders
|
||||||
configure_backgrounds
|
configure_backgrounds
|
Loading…
Reference in New Issue
Block a user