fix: paths, laptop check

This commit is contained in:
AngeD 2023-03-14 19:51:28 +01:00
parent ab9a661dcc
commit c9e81f814b
3 changed files with 4 additions and 3 deletions

View File

@ -26,7 +26,7 @@ systemctl enable \
reflector.timer \
systemd-timesyncd
if [ -d /sys/module/battery/ ]; then
if ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1; then
$PACMAN "${laptop_pkg[@]}"
systemctl enable tlp
fi

View File

@ -1,4 +1,5 @@
#!/bin/bash -e
cd
config="git --git-dir $HOME/.dotfiles --work-tree $HOME"
repo='https://git.maby.dev/ange/.dotfiles.git'

View File

@ -27,10 +27,10 @@ case "$(lspci -k | grep -A3 -E '(VGA|3D)')" in
esac
$PACMAN "${pkg[@]}"
cp -rf etc /etc
cp -rfT etc /etc
git clone https://git.maby.dev/ange/suckless /tmp/suckless/
cd $_
cd "$_"
./update.sh
echo -e "${BOLD}${GREEN}DONE. I recommend you run ./dotfiles to get a fully \