end-4 / dots-hyprland

Modern, feature-rich and accessible desktop configuration.
https://end-4.github.io/dots-hyprland-wiki/en/
GNU General Public License v3.0
3.06k stars 196 forks source link

[Issue]ags load _material from config dir instead of state dir #612

Open lVentus opened 2 weeks ago

lVentus commented 2 weeks ago

When I use switchwall.sh, I found /home/ventus/.local/state/ags/scss/_material.scss is correct, but ags still load the scss from .config folder, instead of .local/state folder. I should edit something in init.js? I tried but doesn't work. Now I edited colorgen.sh and applycolor.sh to copy _material.scss to the .config folder. But this should be only a temporary solution, anyone can help?

By the way, when I dig the code, I found that, when I run these code in `applycolor.sh':

apply_ags() {
    ags run-js "handleStyles(false);"
    ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
}

I only got these in tty

undefined
undefined

I try to run them directly in tty, I also got same result. Does it matter?

Kalidude69 commented 2 weeks ago

When I use switchwall.sh, I found /home/ventus/.local/state/ags/scss/_material.scss is correct, but ags still load the scss from .config folder, instead of .local/state folder. I should edit something in init.js? I tried but doesn't work. Now I edited colorgen.sh and applycolor.sh to copy _material.scss to the .config folder. But this should be only a temporary solution, anyone can help?

By the way, when I dig the code, I found that, when I run these code in `applycolor.sh':

apply_ags() {
    ags run-js "handleStyles(false);"
    ags run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
}

I only got these in tty

undefined
undefined

I try to run them directly in tty, I also got same result. Does it matter?

issues are being ignored :)