Don't copy fehbg anymore. (plus shell formatting)
This commit is contained in:
parent
9b4cf62459
commit
df718605b0
@ -19,14 +19,13 @@ function func_seltheme {
|
|||||||
2 "Spaceengine Pink" off)
|
2 "Spaceengine Pink" off)
|
||||||
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
|
||||||
clear
|
clear
|
||||||
for choice in $choices
|
for choice in $choices; do
|
||||||
do
|
|
||||||
case $choice in
|
case $choice in
|
||||||
1)
|
1)
|
||||||
echo "nyarch" > "$HOME/.seltheme"
|
echo "nyarch" >"$HOME/.seltheme"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
echo "space-pink" > "$HOME/.seltheme"
|
echo "space-pink" >"$HOME/.seltheme"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -57,7 +56,7 @@ cd ..
|
|||||||
|
|
||||||
# check if the install scripts are the same
|
# check if the install scripts are the same
|
||||||
# NOTE Arguments get passed automatically now
|
# NOTE Arguments get passed automatically now
|
||||||
if ! cmp --silent "$HOME/scripts/arch-config.sh" "$HOME/config/scripts/arch-config.sh" ; then
|
if ! cmp --silent "$HOME/scripts/arch-config.sh" "$HOME/config/scripts/arch-config.sh"; then
|
||||||
echo Removed old config file and launched new one.
|
echo Removed old config file and launched new one.
|
||||||
rm "$HOME/scripts/arch-config.sh" && cp "$HOME/config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@"
|
rm "$HOME/scripts/arch-config.sh" && cp "$HOME/config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@"
|
||||||
fi
|
fi
|
||||||
@ -237,9 +236,9 @@ sudo cp -r ~/config/etc /
|
|||||||
#read -r -p "Do you want to overwrite the grub config? [y/N] " response
|
#read -r -p "Do you want to overwrite the grub config? [y/N] " response
|
||||||
#if [[ "$response" =~ ^([yY][eE][sS][jJ]|[yY])$ ]]
|
#if [[ "$response" =~ ^([yY][eE][sS][jJ]|[yY])$ ]]
|
||||||
#then
|
#then
|
||||||
# copy config
|
# copy config
|
||||||
# sudo cp ~/config/etc/default/grub /etc/default/
|
# sudo cp ~/config/etc/default/grub /etc/default/
|
||||||
# update grub
|
# update grub
|
||||||
# sudo grub-mkconfig -o /boot/grub/grub.cfg
|
# sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
@ -274,17 +273,17 @@ git clone https://gitlab.com/RealStickman-arch/themes.git &>/dev/null
|
|||||||
seltheme="$(cat "$HOME/.seltheme")"
|
seltheme="$(cat "$HOME/.seltheme")"
|
||||||
if [[ "$seltheme" == "nyarch" ]]; then
|
if [[ "$seltheme" == "nyarch" ]]; then
|
||||||
#cp -r "./themes/nyarch/i3" "$HOME/.config/"
|
#cp -r "./themes/nyarch/i3" "$HOME/.config/"
|
||||||
cat "./themes/nyarch/i3/color" >> "$HOME/.config/i3/config"
|
cat "./themes/nyarch/i3/color" >>"$HOME/.config/i3/config"
|
||||||
cp -r "./themes/nyarch/polybar" "$HOME/.config/"
|
cp -r "./themes/nyarch/polybar" "$HOME/.config/"
|
||||||
cp -r "./themes/nyarch/neofetch/lowpoly_flamegirl_blue.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
|
cp -r "./themes/nyarch/neofetch/lowpoly_flamegirl_blue.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
|
||||||
cp "./themes/.fehbg-nyarch" "$HOME/.fehbg"
|
#cp "./themes/.fehbg-nyarch" "$HOME/.fehbg"
|
||||||
#sed -i 's/^NAME=".*"/NAME="Rawrch Linyux"/' /etc/os-release
|
#sed -i 's/^NAME=".*"/NAME="Rawrch Linyux"/' /etc/os-release
|
||||||
elif [[ "$seltheme" == "space-pink" ]]; then
|
elif [[ "$seltheme" == "space-pink" ]]; then
|
||||||
#cp -r "./themes/space-pink/i3" "$HOME/.config/"
|
#cp -r "./themes/space-pink/i3" "$HOME/.config/"
|
||||||
cat "./themes/space-pink/i3/color" >> "$HOME/.config/i3/config"
|
cat "./themes/space-pink/i3/color" >>"$HOME/.config/i3/config"
|
||||||
cp -r "./themes/space-pink/polybar" "$HOME/.config/"
|
cp -r "./themes/space-pink/polybar" "$HOME/.config/"
|
||||||
cp -r "./themes/space-pink/neofetch/lowpoly_flamegirl_orange.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
|
cp -r "./themes/space-pink/neofetch/lowpoly_flamegirl_orange.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
|
||||||
cp "./themes/.fehbg-space-pink" "$HOME/.fehbg"
|
#cp "./themes/.fehbg-space-pink" "$HOME/.fehbg"
|
||||||
fi
|
fi
|
||||||
rm -rf ./themes
|
rm -rf ./themes
|
||||||
|
|
||||||
@ -438,8 +437,8 @@ sudo chmod 600 -R /etc/sudoers.d/
|
|||||||
|
|
||||||
# unzip gimp plugins
|
# unzip gimp plugins
|
||||||
echo Unzipping gimp plugins
|
echo Unzipping gimp plugins
|
||||||
unzip -o ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip -d ~/.config/GIMP/2.10/plug-ins/ > /dev/null
|
unzip -o ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip -d ~/.config/GIMP/2.10/plug-ins/ >/dev/null
|
||||||
rm ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip > /dev/null
|
rm ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip >/dev/null
|
||||||
|
|
||||||
# xfce settings
|
# xfce settings
|
||||||
# disable screensaver & locker
|
# disable screensaver & locker
|
||||||
@ -525,4 +524,5 @@ fi
|
|||||||
exec "$(getent passwd $LOGNAME | cut -d: -f7)"
|
exec "$(getent passwd $LOGNAME | cut -d: -f7)"
|
||||||
|
|
||||||
# exit successfully
|
# exit successfully
|
||||||
$(exit 0); echo "$?"
|
$(exit 0)
|
||||||
|
echo "$?"
|
||||||
|
Loading…
Reference in New Issue
Block a user