make quickshell's color generation handle ags

This commit is contained in:
end-4
2025-05-11 16:32:32 +02:00
parent 23af7648e4
commit 543243239a
3 changed files with 82 additions and 0 deletions
+8
View File
@@ -44,7 +44,9 @@ apply_term() {
for file in /dev/pts/*; do
if [[ $file =~ ^/dev/pts/[0-9]+$ ]]; then
{
cat "$STATE_DIR"/user/generated/terminal/sequences.txt >"$file"
} & disown || true
fi
done
}
@@ -54,5 +56,11 @@ apply_qt() {
python "$CONFIG_DIR/scripts/kvantum/changeAdwColors.py" # apply config colors
}
apply_ags() {
pidof agsv1 && agsv1 run-js "handleStyles(false);"
pidof agsv1 && agsv1 run-js 'openColorScheme.value = true; Utils.timeout(2000, () => openColorScheme.value = false);'
}
apply_ags &
apply_qt &
apply_term &