From 661bd5c445c6d0084cc923d4d533e359dd84cca4 Mon Sep 17 00:00:00 2001 From: augety Date: Sun, 21 Jul 2024 10:10:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(install):=20=E6=B7=BB=E5=8A=A0=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..463f51e --- /dev/null +++ b/install.sh @@ -0,0 +1,32 @@ +path=$PWD +echo $path + +make_st() { + cd ./st/ + make & sudo make install + cd $path +} + +make_dwm() { + cd ./dwm/ + make + sudo make install + sudo mkdir /usr/share/xsessions/ + sudo cp ./desktop/dwm.desktop /usr/share/xsessions/ + cd $path +} + +make_slstatus() { + cd ./slstatus/ + make && sudo make install + cd $path +} + +ln_script() { + ln -s $PWD/scripts ~/.dwm +} + +make_st +make_dwm +make_slstatus +ln_script