Initial import: Lua config, trimmed omarchy scripts, theme system
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# archypr:summary=Remove all the named packages from the system if they're installed (otherwise ignore).
|
||||
# archypr:args=<packages...>
|
||||
# archypr:requires-sudo=true
|
||||
|
||||
installed=()
|
||||
for pkg in "$@"; do
|
||||
if pacman -Q "$pkg" &>/dev/null; then
|
||||
installed+=("$pkg")
|
||||
fi
|
||||
done
|
||||
|
||||
if (( ${#installed[@]} > 0 )); then
|
||||
sudo pacman -Rns --noconfirm "${installed[@]}"
|
||||
fi
|
||||
Reference in New Issue
Block a user