feat(install): 添加安装脚本

This commit is contained in:
augety 2024-07-21 10:10:08 +08:00
parent b6ff344e7b
commit 661bd5c445

32
install.sh Executable file
View File

@ -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