From b7ff7aaf83042025269cfdfb31e7705ad7f59eb7 Mon Sep 17 00:00:00 2001 From: infstate Date: Tue, 30 Jul 2024 14:33:30 -0700 Subject: [PATCH] Final Edits --- .../applications-setup/dwmtitus-setup.sh | 27 +++++++++++++++++++ src/list.rs | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 src/commands/applications-setup/dwmtitus-setup.sh diff --git a/src/commands/applications-setup/dwmtitus-setup.sh b/src/commands/applications-setup/dwmtitus-setup.sh new file mode 100644 index 00000000..e6253ec4 --- /dev/null +++ b/src/commands/applications-setup/dwmtitus-setup.sh @@ -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 \ No newline at end of file diff --git a/src/list.rs b/src/list.rs index 0f7b9bdd..8873fe73 100644 --- a/src/list.rs +++ b/src/list.rs @@ -108,6 +108,10 @@ impl CustomList { name: "Rofi Setup", command: Command::LocalFile("applications-setup/rofi-setup.sh"), }, + ListNode { + name: "DWM-Titus Setup (Install)", + command: Command::LocalFile("applications-setup/dwmtitus-setup.sh") + } }, ListNode { name: "Full System Update",