2 Commits

Author SHA1 Message Date
7220066149 fix: remove $schema key from yazi.toml
Yazi's newer TOML parser requires kebab-case key names.
$schema starts with a non-letter character, causing:
  TOML parse error at line 3: must be a kebab-cased string
2026-06-08 16:06:13 -04:00
a7e18db821 fix: add mocha.conf fallback for pywal colors
Add source = mocha.conf before pywal's colors-hyprland.conf so
Catppuccin Mocha colors always load as defaults. Also define
$color1, $color2, $color3, and $background in mocha.conf as
fallbacks for when pywal hasn't generated its color file.

Fixes two Hyprland errors:
- 'source= globbing error: found no match' when pywal file missing
- 'failed to parse $color2 as a color' gradient parsing error
2026-06-08 16:00:30 -04:00
4 changed files with 9 additions and 24 deletions

2
hypr/.config/hypr/hyprland.conf Normal file → Executable file
View File

@@ -8,6 +8,7 @@
# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
source = mocha.conf
source = ~/.cache/wal/colors-hyprland.conf
################
@@ -77,7 +78,6 @@ exec-once = hypridle
exec-once = hyprlock
exec-once = /usr/bin/emacs --daemon
exec-once = dbus-update-activation-environment --systemd HYPRLAND_INSTANCE_SIGNATURE
exec-once = $HOME/.config/waybar/scripts/disk-monitor.sh --daemon
#############################
### ENVIRONMENT VARIABLES ###

8
hypr/.config/hypr/mocha.conf Normal file → Executable file
View File

@@ -76,3 +76,11 @@ $mantleAlpha = 181825
$crust = rgb(11111b)
$crustAlpha = 11111b
# Fallback colors for when pywal hasn't generated colors-hyprland.conf
# (sourced by hyprland.conf — $color1/$color2 for active border gradients,
# $background for inactive border and general bg usage)
$color1 = rgb(cba6f7)
$color2 = rgb(f5c2e7)
$color3 = rgb(89b4fa)
$background = rgb(1e1e2e)

View File

@@ -213,28 +213,6 @@ tooltip label {
}
/* custom modules */
#custom-disk-monitor {
margin: 0px 0px 0px 5px;
padding: 1px 8px 0px 8px;
font-size: 16px;
color: @text;
border-radius: 5px;
background-color: @set;
}
#custom-disk-monitor.warning {
background-color: #ff9a3c;
color: #FFFFFF;
}
#custom-disk-monitor.critical {
background-color: #dc2f2f;
color: #FFFFFF;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#custom-exit {
margin: 0px 18px 0px 5px;
padding: 0px;

View File

@@ -1,6 +1,5 @@
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
[mgr]
ratio = [ 1, 4, 3 ]