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
This commit is contained in:
1
hypr/.config/hypr/hyprland.conf
Normal file → Executable file
1
hypr/.config/hypr/hyprland.conf
Normal file → Executable 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
|
||||
|
||||
################
|
||||
|
||||
8
hypr/.config/hypr/mocha.conf
Normal file → Executable file
8
hypr/.config/hypr/mocha.conf
Normal file → Executable 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)
|
||||
|
||||
Reference in New Issue
Block a user