From c9e81f814b3d30dd76e94592214b66e1ba3ca31f Mon Sep 17 00:00:00 2001 From: AngeD Date: Tue, 14 Mar 2023 19:51:28 +0100 Subject: [PATCH] fix: paths, laptop check --- base.sh | 2 +- dotfiles.sh | 1 + dwm/install.sh | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/base.sh b/base.sh index 6b1a749..26c5790 100755 --- a/base.sh +++ b/base.sh @@ -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 diff --git a/dotfiles.sh b/dotfiles.sh index b278135..1a39695 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -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' diff --git a/dwm/install.sh b/dwm/install.sh index 93470ae..49234a5 100755 --- a/dwm/install.sh +++ b/dwm/install.sh @@ -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 \