Compare commits
No commits in common. "4f06bad41b2bcf8fc4bda68b73719a4b9889e66f" and "638fc47dc286ddfea9e3ff81b04872f266306a82" have entirely different histories.
4f06bad41b
...
638fc47dc2
@ -52,8 +52,6 @@ label {
|
|||||||
shadow_size = 10
|
shadow_size = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
source = hyprlock-battery.conf
|
|
||||||
|
|
||||||
image {
|
image {
|
||||||
monitor =
|
monitor =
|
||||||
path = ~/.local/share/avatar.jpg
|
path = ~/.local/share/avatar.jpg
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:10000] cat /sys/class/power_supply/BAT0/capacity | awk '{print $1 "%"}'
|
|
||||||
color = rgb(221, 194, 160) # Rose Pine text
|
|
||||||
font_size = 20
|
|
||||||
font_family = JetBrainsMono
|
|
||||||
position = 40, 160
|
|
||||||
halign = left
|
|
||||||
valign = bottom
|
|
||||||
shadow_passes = 5
|
|
||||||
shadow_size = 10
|
|
||||||
}
|
|
||||||
35
AGENTS.md
35
AGENTS.md
@ -8,31 +8,42 @@
|
|||||||
- All actions must be idempotent, explicit, and user-approved.
|
- All actions must be idempotent, explicit, and user-approved.
|
||||||
- Violating these rules risks breaking the user’s system and is strictly forbidden.
|
- Violating these rules risks breaking the user’s system and is strictly forbidden.
|
||||||
|
|
||||||
## Build/Lint/Test
|
|
||||||
|
## Setup, Lint, and Test
|
||||||
- Main entrypoint: `./setup.sh` (runs all `modules/*.sh` in order)
|
- Main entrypoint: `./setup.sh` (runs all `modules/*.sh` in order)
|
||||||
- To run a single module: `bash modules/XX-name.sh`
|
- To re-run a single module: `bash modules/XX-name.sh`
|
||||||
- No traditional build/lint/test; test by running setup and verifying symlinks/configs
|
- All scripts must be idempotent and safe to re-run
|
||||||
- NEVER run the scripts on your own, ALWAYS ask for permission
|
- No traditional build/lint/test; test by running setup and checking symlinks/configs
|
||||||
|
|
||||||
## Code Style & Conventions
|
## Code Style & Conventions
|
||||||
- Bash scripts only; use `paru` for package management (never `pacman`)
|
- Bash scripts only; use `paru` for package management (never `pacman`)
|
||||||
- Add new packages to the relevant `modules/XX-*.sh` script
|
- Add new packages to the relevant `modules/XX-*.sh` script
|
||||||
- Place dotfiles in repo root or `.config/` as appropriate
|
- Place new dotfiles in repo root or `.config/` as appropriate
|
||||||
- Use `$HOME` and relative paths; never hardcode absolute paths
|
- Symlinking logic is in `modules/02-symlinks.sh`
|
||||||
- Prefer arrays for package lists; always quote variables
|
- Scripts must be modular: one concern per module, no duplicated logic
|
||||||
- Use `set -e` for error handling
|
- Use `$HOME` and relative paths, never hardcode absolute paths
|
||||||
- Scripts must be modular, readable, commented, and extensible
|
- Prefer arrays for package lists, and always quote variables
|
||||||
- Naming: `XX-feature.sh` for modules, lowercase, hyphen-separated
|
- Use `set -e` for error handling in scripts
|
||||||
|
- Follow naming: `XX-feature.sh` for modules, lowercase, hyphen-separated
|
||||||
- App configs (Hyprland, Waybar, etc.) go in `.config/` and use includes/fragments if possible
|
- App configs (Hyprland, Waybar, etc.) go in `.config/` and use includes/fragments if possible
|
||||||
|
- All scripts and configs should be readable, commented, and extensible
|
||||||
|
|
||||||
## Device Profiles
|
## Device Profiles
|
||||||
- Support device types via `DOTFILES_DEVICE=laptop|desktop`; use device-specific config fragments and conditional symlinking
|
- Support multiple device types (e.g., laptop, desktop) via an environment variable or setup prompt (`DOTFILES_DEVICE=laptop|desktop`)
|
||||||
|
- Use device-specific config fragments (e.g., `monitors-laptop.conf`, `monitors-desktop.conf`) and symlink/include them conditionally
|
||||||
|
- Waybar, Hyprland, and input configs should only enable battery, backlight, wifi, and touchpad modules for laptops
|
||||||
|
- Setup scripts and symlinking logic must detect device type and use the correct configs
|
||||||
|
|
||||||
## Copilot/AI Rules
|
## Copilot/AI Rules
|
||||||
- See `.github/copilot-instructions.md` for full conventions
|
- See `.github/copilot-instructions.md` for full conventions
|
||||||
|
- Never use other package managers or hardcoded paths
|
||||||
- All changes must be modular, idempotent, and version-controlled
|
- All changes must be modular, idempotent, and version-controlled
|
||||||
|
|
||||||
|
For more, see `README.md` and `.github/copilot-instructions.md`.
|
||||||
|
|
||||||
## Commit Workflow
|
## Commit Workflow
|
||||||
- After every change, commit with a clear, descriptive message explaining the purpose (not just the file or function name)
|
- After every change, stage and commit your work with a clear, descriptive commit message explaining the purpose of the change (not just the file or function name)
|
||||||
- Example: `git add <changed-files> && git commit -m "fix: correct Waybar config for desktop profile"`
|
- Example: `git add <changed-files> && git commit -m "fix: correct Waybar config for desktop profile"`
|
||||||
|
- Always commit after each logical change, not just at the end of a session
|
||||||
|
- The commit message should focus on the "why" and "what" (e.g., "fix: remove battery module for desktop profile")
|
||||||
- Do not use generic messages like "Update" or "Fix" without context
|
- Do not use generic messages like "Update" or "Fix" without context
|
||||||
|
|||||||
@ -96,10 +96,6 @@ if [ -d "$CONFIG_DIR" ]; then
|
|||||||
"hypr/includes/hypridle-$DOTFILES_DEVICE.conf:hypr/hypridle.conf" # Idle config per device type
|
"hypr/includes/hypridle-$DOTFILES_DEVICE.conf:hypr/hypridle.conf" # Idle config per device type
|
||||||
"waybar/config-$DOTFILES_DEVICE:waybar/config" # Waybar config per device type
|
"waybar/config-$DOTFILES_DEVICE:waybar/config" # Waybar config per device type
|
||||||
)
|
)
|
||||||
# Add battery label for laptops
|
|
||||||
if [ "$DOTFILES_DEVICE" = "laptop" ]; then
|
|
||||||
fragment_types+=("hypr/includes/battery-label.conf:hyprlock-battery.conf")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Symlink each device-specific fragment
|
# Symlink each device-specific fragment
|
||||||
for fragment in "${fragment_types[@]}"; do
|
for fragment in "${fragment_types[@]}"; do
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user