feat: conky, doas compatibility and dwm startup

This commit is contained in:
AngeD 2023-01-03 23:40:42 +01:00
parent f1fdfb2eb2
commit f002b34b6f
12 changed files with 54 additions and 18 deletions

View file

@ -31,7 +31,8 @@ function add_opt() {
}
if ! [ -w '/var/run/docker.sock' ] && [ "$EUID" != 0 ]; then
exec sudo -- "$0" "$@"
command -v sudo > /dev/null && exec sudo -- "$0" "$@"
command -v doas > /dev/null && exec doas -- "$0" "$@"
fi
c=1