next gen init
This commit is contained in:
parent
84872dc103
commit
a16479ee7a
40 changed files with 239 additions and 894 deletions
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This file only installs what is needed for the sync to perform...
|
||||
|
||||
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \
|
||||
rsync
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \
|
||||
zsh \
|
||||
cmake # for fastfetch
|
||||
|
||||
# install fastfetch
|
||||
[ -d /tmp/fastfetch ] || \
|
||||
git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch
|
||||
|
||||
if [ ! -f /tmp/fastfetch/build/fastfetch ]; then
|
||||
pushd /tmp/fastfetch
|
||||
mkdir -p build
|
||||
pushd build
|
||||
cmake ..
|
||||
cmake --build . --target fastfetch
|
||||
$SUDO mv fastfetch /usr/local/bin/fastfetch
|
||||
popd
|
||||
popd
|
||||
fi
|
||||
|
||||
# install omz
|
||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed"
|
||||
|
||||
# favourite omz plugins
|
||||
PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-autosuggestions $PL_DIR
|
||||
PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
||||
[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR
|
||||
|
||||
# set default shell
|
||||
$SUDO usermod $USER --shell /bin/zsh
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
HOME_FILES=${HOME_FILES:-./files/home}
|
||||
ROOT_FILES=${ROOT_FILES:-./files/root}
|
||||
|
||||
# overwrite files but preserve files surrounding
|
||||
rsync -av $HOME_FILES/ $HOME
|
||||
$SUDO rsync -av $ROOT_FILES/ /
|
|
@ -1,23 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
PACKAGE_LIST=${PACKAGE_LIST:-./package.list}
|
||||
GRAPHICAL_PACKAGE_LIST=${GRAPHICAL_PACKAGE_LIST:-./gpackage.list}
|
||||
|
||||
_APPLICATIONS=""
|
||||
while read -r pkg; do
|
||||
[ -z "$pkg" ] && continue
|
||||
[ "$(echo "$pkg" | cut -c1)" = "#" ] && continue
|
||||
_APPLICATIONS="$_APPLICATIONS $pkg"
|
||||
done < "$PACKAGE_LIST"
|
||||
|
||||
if [ "${NO_GRAPHICS:-no}" = "no" ]; then
|
||||
if [ -f "$GRAPHICAL_PACKAGE_LIST" ]; then
|
||||
while read -r pkg; do
|
||||
[ -z "$pkg" ] && continue
|
||||
[ "$(echo "$pkg" | cut -c1)" = "#" ] && continue
|
||||
_APPLICATIONS="$_APPLICATIONS $pkg"
|
||||
done < "$GRAPHICAL_PACKAGE_LIST"
|
||||
fi
|
||||
fi
|
||||
|
||||
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM $_APPLICATIONS
|
|
@ -1,49 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This file configures builds and installs DWM.
|
||||
|
||||
[ "${NO_GRAPHICS:-no}" = "yes" ] && return 0
|
||||
|
||||
# install dependencies
|
||||
$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \
|
||||
feh \
|
||||
network-manager-applet \
|
||||
alsa-utils \
|
||||
dstat \
|
||||
curl \
|
||||
flameshot \
|
||||
dmenu \
|
||||
i3lock
|
||||
|
||||
# clone
|
||||
[ -d /tmp/dotfiles-dwm ] || git clone https://git.suckless.org/dwm /tmp/dotfiles-dwm
|
||||
|
||||
# config
|
||||
cp ./files/dwm/config.h /tmp/dotfiles-dwm/config.h
|
||||
|
||||
# build, patch and install
|
||||
pushd /tmp/dotfiles-dwm
|
||||
|
||||
# patches
|
||||
curl https://dwm.suckless.org/patches/systray/dwm-systray-6.4.diff -o /tmp/dwm-systray.diff
|
||||
git apply -3 /tmp/dwm-systray.diff
|
||||
|
||||
$SUDO make install
|
||||
popd
|
||||
|
||||
# dwm boot/manage scripts
|
||||
chmod +x ./files/dwm/*.sh
|
||||
|
||||
$SUDO cp ./files/dwm/dwm-start.sh /usr/local/bin/dwm-start
|
||||
$SUDO cp ./files/dwm/dwm-status.sh /usr/local/bin/dwm-status
|
||||
$SUDO cp ./files/dwm/dwm-sync.sh /usr/local/bin/dwm-sync
|
||||
$SUDO cp ./files/dwm/dwm-lock.sh /usr/local/bin/dwm-lock
|
||||
|
||||
$SUDO chmod +x /usr/local/bin/dwm-*
|
||||
|
||||
# DM entry
|
||||
$SUDO cp ./files/dwm/dwm.desktop /usr/share/xsessions/dwm.desktop
|
||||
|
||||
# background
|
||||
rm -rf $HOME/Pictures/background.*
|
||||
curl https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/9757d496-239b-46c5-baea-6873cbfe9b3d/ddkbeml-015b05e6-6f8f-471e-a3a4-1c4360127ea6.jpg -o $HOME/Pictures/background.jpg
|
Loading…
Add table
Add a link
Reference in a new issue