Skip to content

Commit

Permalink
Add DWM-Titus
Browse files Browse the repository at this point in the history
  • Loading branch information
infstate committed Jul 30, 2024
1 parent f1fc19f commit 8a69f26
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/commands/dotfiles/dwmtitus-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh -e

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
4 changes: 4 additions & 0 deletions src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ impl CustomList {
name: "Rofi Setup",
command: with_common_script!("commands/dotfiles/rofi-setup.sh"),
},
ListNode {
name: "DWM-Titus Setup (Install)",
command: with_common_script!("commands/dotfiles/dwmtitus-setup.sh"),
}
}
});
// We don't get a reference, but rather an id, because references are siginficantly more
Expand Down

0 comments on commit 8a69f26

Please sign in to comment.