mirror of
https://github.com/kuhyx/scripts.git
synced 2026-07-04 15:03:09 +02:00
feat: added comments support
This commit is contained in:
parent
c3169aba9f
commit
219c76d6bb
@ -13,6 +13,8 @@ One package name per line:
|
|||||||
package1
|
package1
|
||||||
package2
|
package2
|
||||||
package3
|
package3
|
||||||
|
# This is a comment and will be ignored
|
||||||
|
# Another comment
|
||||||
```
|
```
|
||||||
|
|
||||||
### aur_packages.txt
|
### aur_packages.txt
|
||||||
@ -20,8 +22,12 @@ Package name and repository URL separated by space:
|
|||||||
```
|
```
|
||||||
package-name https://aur.archlinux.org/package-name.git
|
package-name https://aur.archlinux.org/package-name.git
|
||||||
another-package https://aur.archlinux.org/another-package.git
|
another-package https://aur.archlinux.org/another-package.git
|
||||||
|
# This is a comment and will be ignored
|
||||||
|
# Another comment
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note**: Lines starting with anything other than lowercase letters (a-z) or digits (0-9) will be ignored as comments. This includes lines starting with `#`, spaces, uppercase letters, or special characters.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The `main.sh` script will automatically read from these files:
|
The `main.sh` script will automatically read from these files:
|
||||||
@ -33,4 +39,20 @@ The `main.sh` script will automatically read from these files:
|
|||||||
To add or remove packages:
|
To add or remove packages:
|
||||||
1. Edit the appropriate `.txt` file
|
1. Edit the appropriate `.txt` file
|
||||||
2. For AUR packages, ensure the format is correct (package-name followed by space and URL)
|
2. For AUR packages, ensure the format is correct (package-name followed by space and URL)
|
||||||
3. Save the file - the script will automatically pick up changes on next run
|
3. You can add comments by starting lines with `#` or any non-alphanumeric character
|
||||||
|
4. Save the file - the script will automatically pick up changes on next run
|
||||||
|
|
||||||
|
### Comments
|
||||||
|
You can add comments to organize your package lists:
|
||||||
|
```
|
||||||
|
# Essential packages
|
||||||
|
git
|
||||||
|
vim
|
||||||
|
|
||||||
|
# Development tools
|
||||||
|
gcc
|
||||||
|
make
|
||||||
|
|
||||||
|
# Optional packages (commented out)
|
||||||
|
# some-package-i-might-want-later
|
||||||
|
```
|
||||||
|
|||||||
@ -81,7 +81,6 @@ python-cu2qu https://aur.archlinux.org/python-cu2qu.git
|
|||||||
psautohint https://aur.archlinux.org/psautohint.git
|
psautohint https://aur.archlinux.org/psautohint.git
|
||||||
python-inputs https://aur.archlinux.org/python-inputs.git
|
python-inputs https://aur.archlinux.org/python-inputs.git
|
||||||
python-steam https://aur.archlinux.org/python-steam.git
|
python-steam https://aur.archlinux.org/python-steam.git
|
||||||
protonup-qt https://aur.archlinux.org/protonup-qt.git
|
|
||||||
protonhax-git https://aur.archlinux.org/protonhax-git.git
|
protonhax-git https://aur.archlinux.org/protonhax-git.git
|
||||||
nvm-git https://aur.archlinux.org/nvm-git.git
|
nvm-git https://aur.archlinux.org/nvm-git.git
|
||||||
unityhub https://aur.archlinux.org/unityhub.git
|
unityhub https://aur.archlinux.org/unityhub.git
|
||||||
@ -96,3 +95,4 @@ xpadneo-dkms-git https://aur.archlinux.org/xpadneo-dkms-git.git
|
|||||||
xone-dongle-firmware https://aur.archlinux.org/xone-dongle-firmware.git
|
xone-dongle-firmware https://aur.archlinux.org/xone-dongle-firmware.git
|
||||||
ferdium https://aur.archlinux.org/ferdium.git
|
ferdium https://aur.archlinux.org/ferdium.git
|
||||||
flite1 https://aur.archlinux.org/flite1.git
|
flite1 https://aur.archlinux.org/flite1.git
|
||||||
|
protonup https://aur.archlinux.org/protonup-git.git
|
||||||
@ -96,7 +96,10 @@ sudo systemctl start reflector.service
|
|||||||
# Read pacman packages from file
|
# Read pacman packages from file
|
||||||
declare -a pacman_packages
|
declare -a pacman_packages
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[[ -n "$line" ]] && pacman_packages+=("$line")
|
# Skip empty lines and comments (lines not starting with alphanumeric characters)
|
||||||
|
if [[ -n "$line" && "$line" =~ ^[a-z0-9] ]]; then
|
||||||
|
pacman_packages+=("$line")
|
||||||
|
fi
|
||||||
done < "pacman_packages.txt"
|
done < "pacman_packages.txt"
|
||||||
|
|
||||||
for pkg in "${pacman_packages[@]}"; do
|
for pkg in "${pacman_packages[@]}"; do
|
||||||
@ -169,7 +172,10 @@ sudo systemctl start bluetooth.service
|
|||||||
# Read AUR packages from file
|
# Read AUR packages from file
|
||||||
declare -a aur_packages
|
declare -a aur_packages
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[[ -n "$line" ]] && aur_packages+=("$line")
|
# Skip empty lines and comments (lines not starting with alphanumeric characters)
|
||||||
|
if [[ -n "$line" && "$line" =~ ^[a-z0-9] ]]; then
|
||||||
|
aur_packages+=("$line")
|
||||||
|
fi
|
||||||
done < "aur_packages.txt"
|
done < "aur_packages.txt"
|
||||||
|
|
||||||
for entry in "${aur_packages[@]}"; do
|
for entry in "${aur_packages[@]}"; do
|
||||||
@ -200,14 +206,9 @@ scripts/setup_media_organizer.sh
|
|||||||
scripts/setup_pc_startup_monitor.sh
|
scripts/setup_pc_startup_monitor.sh
|
||||||
scripts/setup_periodic_system.sh
|
scripts/setup_periodic_system.sh
|
||||||
scripts/setup_thorium_startup.sh
|
scripts/setup_thorium_startup.sh
|
||||||
|
protonup
|
||||||
yes | sudo pacman -Syuu
|
yes | sudo pacman -Syuu
|
||||||
|
|
||||||
# Installing unreal engine
|
|
||||||
cd ~/aur
|
|
||||||
if [ ! -d "$(basename https://aur.archlinux.org/unreal-engine.git .git)" ]; then
|
|
||||||
git clone https://aur.archlinux.org/unreal-engine.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
#cd unreal-engine
|
#cd unreal-engine
|
||||||
## gh auth login
|
## gh auth login
|
||||||
#gh repo clone EpicGames/UnrealEngine -- -b release --single-branch
|
#gh repo clone EpicGames/UnrealEngine -- -b release --single-branch
|
||||||
|
|||||||
@ -1,33 +1,53 @@
|
|||||||
|
# duh - using default linux for most compatibility
|
||||||
linux
|
linux
|
||||||
|
# needed for compiling basically anything
|
||||||
distcc
|
distcc
|
||||||
|
# probably already installed at this point
|
||||||
git
|
git
|
||||||
|
# bluetooth
|
||||||
bluez
|
bluez
|
||||||
bluez-utils
|
bluez-utils
|
||||||
|
# faster make
|
||||||
icmake
|
icmake
|
||||||
|
# needed for some packages
|
||||||
yodl
|
yodl
|
||||||
texlive-plaingeneric
|
# open gl
|
||||||
docbook-xsl
|
|
||||||
glu
|
glu
|
||||||
|
# sound
|
||||||
pavucontrol-qt
|
pavucontrol-qt
|
||||||
|
# faster compiling
|
||||||
mold
|
mold
|
||||||
|
# faster unpacking
|
||||||
zstd
|
zstd
|
||||||
lz4
|
lz4
|
||||||
xz
|
xz
|
||||||
pigz
|
pigz
|
||||||
lbzip2
|
lbzip2
|
||||||
|
# needed for some packages
|
||||||
doxygen
|
doxygen
|
||||||
graphviz
|
# programming languages needed for some packages
|
||||||
tcl
|
tcl
|
||||||
|
# ? Tool for optimizing the compression of PNG files
|
||||||
pngcrush
|
pngcrush
|
||||||
|
# compilers
|
||||||
gcc-ada
|
gcc-ada
|
||||||
gcc-d
|
gcc-d
|
||||||
|
# fonts for i3 ricing
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
noto-fonts
|
noto-fonts
|
||||||
ttf-font-awesome
|
ttf-font-awesome
|
||||||
|
# calculator
|
||||||
bc
|
bc
|
||||||
|
# for battery - toDo ignore on desktop
|
||||||
acpi
|
acpi
|
||||||
|
# Programming language needed for some pakcages
|
||||||
cargo
|
cargo
|
||||||
|
# opengl api
|
||||||
freeglut
|
freeglut
|
||||||
|
# Latex
|
||||||
|
texlive-plaingeneric
|
||||||
|
docbook-xsl
|
||||||
|
graphviz
|
||||||
texlive-latexextra
|
texlive-latexextra
|
||||||
biber
|
biber
|
||||||
texlive-bibtexextra
|
texlive-bibtexextra
|
||||||
@ -38,14 +58,23 @@ texlive-pstricks
|
|||||||
texlive-games
|
texlive-games
|
||||||
texlive-humanities
|
texlive-humanities
|
||||||
texlive-science
|
texlive-science
|
||||||
|
# Node.js native addon build tool needed for some packages
|
||||||
node-gyp
|
node-gyp
|
||||||
|
# For writing uml diagrams - consider removing
|
||||||
plantuml
|
plantuml
|
||||||
|
# dependency hell injector
|
||||||
npm
|
npm
|
||||||
|
# generates man pages from markdown - consider removing
|
||||||
ruby-ronn
|
ruby-ronn
|
||||||
|
# for GO programming language
|
||||||
go-tools
|
go-tools
|
||||||
|
# ? Posssibly required by some packages - consider removing
|
||||||
asciidoctor
|
asciidoctor
|
||||||
|
# manuals
|
||||||
man-db
|
man-db
|
||||||
|
# git for large files like LLM
|
||||||
git-lfs
|
git-lfs
|
||||||
|
#
|
||||||
nodejs
|
nodejs
|
||||||
electron
|
electron
|
||||||
yarn
|
yarn
|
||||||
@ -250,5 +279,4 @@ gl2ps
|
|||||||
twolame
|
twolame
|
||||||
yasm
|
yasm
|
||||||
a52dec
|
a52dec
|
||||||
libtremor
|
|
||||||
deluge
|
deluge
|
||||||
Loading…
Reference in New Issue
Block a user