feat: Remove old eww folder
This commit is contained in:
parent
be38dd733d
commit
1654ce2be0
17 changed files with 2296 additions and 106 deletions
27
scripts/pacsave
Executable file
27
scripts/pacsave
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
pacfile="$HOME/.config/scripts/pacmanpkg.txt"
|
||||
|
||||
save() {
|
||||
rm $pacfile
|
||||
var=$(pacman -Q)
|
||||
echo $var
|
||||
if [ "$pacfile" != ' ' ]; then
|
||||
touch $pacfile
|
||||
fi
|
||||
echo "$var" | awk '{ print $1 }' >>$pacfile
|
||||
}
|
||||
|
||||
load() {
|
||||
sudo paru -S - <$pacfile
|
||||
}
|
||||
|
||||
if [ "$1" == "-S" ]; then
|
||||
sudo pacman -S $2
|
||||
elif [ "$1" == "-R" ]; then
|
||||
sudo pacman -R $2
|
||||
elif [ "$1" == "save" ]; then
|
||||
save
|
||||
elif [ "$1" == "load" ]; then
|
||||
load
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue