mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 14:30:11 +00:00
Final Edits
This commit is contained in:
parent
42be40f65d
commit
b7ff7aaf83
27
src/commands/applications-setup/dwmtitus-setup.sh
Normal file
27
src/commands/applications-setup/dwmtitus-setup.sh
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
. ./common-script.sh
|
||||||
|
|
||||||
|
makeDWM(){
|
||||||
|
cd $HOME && git clone https://github.com/ChrisTitusTech/dwm-titus.git # CD to Home directory to install dwm-titus
|
||||||
|
# This path can be changed (e.g. to linux-toolbox directory)
|
||||||
|
cd dwm-titus/ # Hardcoded path, maybe not the best.
|
||||||
|
sudo ./setup.sh # Run setup
|
||||||
|
sudo make clean install # Run make clean install
|
||||||
|
}
|
||||||
|
|
||||||
|
setupDWM() {
|
||||||
|
echo "Installing DWM-Titus if not already installed"
|
||||||
|
case "$PACKAGER" in # Install pre-Requisites
|
||||||
|
pacman)
|
||||||
|
sudo "$PACKAGER" -S --noconfirm --needed base-devel libx11 libxinerama libxft imlib2
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
sudo "$PACKAGER" install -y build-essential libx11-dev libxinerama-dev libxft-dev libimlib2-dev
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
setupDWM
|
||||||
|
makeDWM
|
|
@ -108,6 +108,10 @@ impl CustomList {
|
||||||
name: "Rofi Setup",
|
name: "Rofi Setup",
|
||||||
command: Command::LocalFile("applications-setup/rofi-setup.sh"),
|
command: Command::LocalFile("applications-setup/rofi-setup.sh"),
|
||||||
},
|
},
|
||||||
|
ListNode {
|
||||||
|
name: "DWM-Titus Setup (Install)",
|
||||||
|
command: Command::LocalFile("applications-setup/dwmtitus-setup.sh")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
ListNode {
|
ListNode {
|
||||||
name: "Full System Update",
|
name: "Full System Update",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user