scripts polish
This commit is contained in:
parent
1faf698ab8
commit
0a3c5294c8
2 changed files with 19 additions and 7 deletions
|
@ -2,13 +2,16 @@
|
|||
|
||||
rm -rf lightdm/ kitty/ sway/ waybar/ helix/ dunst/ aliases packages
|
||||
|
||||
mkdir lightdm
|
||||
xbps-query -m | while IFS= read -r line; do
|
||||
echo "$line" | rev | cut -d'-' -f2- | rev
|
||||
done > packages
|
||||
|
||||
xbps-query -m > packages
|
||||
cp ~/.bash_aliases aliases
|
||||
mkdir lightdm
|
||||
cp /etc/lightdm/lightdm.conf lightdm
|
||||
cp /etc/lightdm/lightdm-mini-greeter.conf lightdm
|
||||
cp /etc/lightdm/bg.png lightdm
|
||||
|
||||
cp ~/.bash_aliases aliases
|
||||
cp -r ~/.config/kitty kitty
|
||||
cp -r ~/.config/sway sway
|
||||
cp -r ~/.config/waybar waybar
|
||||
|
|
17
install.sh
17
install.sh
|
@ -1,7 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
do_you_want_to() {
|
||||
read -rp "Do you want to $1? [y/N] " answer
|
||||
[[ "$answer" =~ ^[Yy]$ ]]
|
||||
}
|
||||
|
||||
do_you_want_to "install all packages" && sudo xbps-install -Su $(cat packages)
|
||||
|
||||
echo "Copying configs..."
|
||||
cp aliases ~/.bash_aliases
|
||||
sudo cp -a lightdm/. /etc/lightdm
|
||||
cp -a kitty/. ~/.config/kitty
|
||||
cp -a sway/. ~/.config/sway
|
||||
cp -a waybar/. ~/.config/waybar
|
||||
|
@ -10,7 +17,9 @@ cp -a dunst/. ~/.config/dunst
|
|||
chmod +x ~/.startup
|
||||
chmod +x ~/.bash_aliases
|
||||
|
||||
sudo xbps-install -Su $(cat packages)
|
||||
|
||||
echo "Building dmenu..."
|
||||
cd dmenu
|
||||
make clean install
|
||||
do_you_want_to "build and install dmenu" && make clean install
|
||||
cd ..
|
||||
|
||||
do_you_want_to "install lightdm configs" && sudo cp -a lightdm/. /etc/lightdm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue