Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 479b9ab

Browse files
authored
Merge pull request #6 from Cyber-Syntax:feat/xdg-base-dir
refactor: use xdg base dir for config files
2 parents 602a02f + f5cec4b commit 479b9ab

10 files changed

Lines changed: 838 additions & 156 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## v0.2.2-alpha
5+
### BREAKING CHANGES
6+
- Users need to setup their config with script and change according to
7+
their needs
8+
9+
### Changed
10+
- fix: redundant code
11+
- refactor!: use XDG Base Directory
12+
413
## v0.2.1-alpha
514
### Changed
615
- Add github action for release
@@ -15,6 +24,6 @@ All notable changes to this project will be documented in this file.
1524

1625
## v0.1.0-alpha
1726
### What's Changed
18-
- Feat/laptop desktop by @Cyber-Syntax in https://github.com/Cyber-Syntax/fedora-setup/pull/1
27+
- Feat/laptop desktop by @Cyber-Syntax in https://github.com/Cyber-Syntax/fedora-setup/pull/2
1928
- fix: wrong way to write grub file by @Cyber-Syntax in https://github.com/Cyber-Syntax/fedora-setup/pull/2
2029
- Initial setup script for Fedora

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ Basically, saving time. Also, I enjoy scripting and wrote this in bash for learn
1212
# How to use the script
1313

1414
1. Please change the variables as your system configuration:
15-
- variables.sh
15+
- ~/.config/fedora-setup/variables.json
16+
- ~/.config/fedora-setup/packages.json
17+
2. Config files according to your system configuration:
1618
- src/configs/01-mytlp.conf
19+
- src/configs/99-qtile.rules
1720

1821
```bash
1922
WARNING:

setup.sh

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,18 @@
88
set -euo pipefail
99
IFS=$'\n\t'
1010

11-
# Source additional functions from separate files.
11+
#!/usr/bin/env bash
12+
13+
# Setup XDG Base Directory paths if not already set
14+
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
15+
1216
source src/logging.sh
13-
source src/variables.sh
14-
source src/packages.sh
17+
source src/config.sh
1518
source src/general.sh
1619
source src/apps.sh
1720
source src/desktop.sh
1821
source src/laptop.sh
1922

20-
echo "=================================================="
21-
echo "important: this script uses configuration values from src/variables.sh"
22-
echo "please ensure you've reviewed and adjusted these values for your system."
23-
echo "=================================================="
24-
#TODO: better way to check and notify user to prevent variable errors.
25-
read -p "Have you reviewed src/variables.sh? (y/n): " user_confirmed
26-
if [[ "${user_confirmed,,}" != "y" ]]; then
27-
log_warn "Please review src/variables.sh before running this script."
28-
exit 1
29-
fi
30-
3123
# Help message
3224
usage() {
3325
cat <<EOF

0 commit comments

Comments
 (0)