commit 0b4e097cc440a35fb1f629568721b1f382f26d65
parent e0e0133d1cea4fc9261677cd93813da74aa14da0
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Fri, 24 Mar 2023 19:18:28 +0100
Update README and make script less dumb
nonsystemd repo bug seems to be fixed so removed the info about it.
Instead of checking for the src dir on every iteration of the suckless
install function, do it once during `prepare` and add the missing "do"
:)
Diffstat:
2 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/README b/README
@@ -20,17 +20,6 @@ Customization
You can change the source for the progs.list, the dotfiles and suckless repo by
editing the corresponding variables at the beginning of the script
-AUR
----
-The usage of the AUR is highly discouraged by the Parabola developers.
-
-
-Issues
-------
-Due to a bug in the nonsystemd repo some programs that depend on pipewire/libpipewire
-won't install. So far, this affects mpd and mpv from this script. This is a known bug
-(see https://labs.parabola.nu/issues/3455) and is not the scripts fault.
-
Troubleshooting
---------------
diff --git a/zerog b/zerog
@@ -3,6 +3,7 @@
### VARIABLES ###
name="$(logname)"
+homedir="/home/$name"
progs="https://hanetzok.net/zerog/progs.list"
dotfiles="git://git.hanetzok.net/dotfiles"
logfile="/tmp/zerog.log"
@@ -33,6 +34,9 @@ prepare() {
# Get progs.list
cd /tmp && curl -O "$progs" || { error "Could not download progs.list"; }
+
+ # Check for src dir and create if not found
+ [ -d "/home/$name/.local/src" ] || sudo -u "$name" mkdir -p /home/"$name"/.local/src
}
install_programs() { # Read from progs.list and install each entry
@@ -51,7 +55,6 @@ get_dotfiles() { # Download dotfiles and place them in $HOME
suckless() { # Clone and install suckless programs
printf "### Installing suckless software ###\n"
- [ -d "/home/$name/.local/src" ] || su -u "$name" mkdir -p /home/"$name"/.local/src
for program in dwm st dmenu; do
cd /home/"$name"/.local/src
printf "Installing $program\n"