mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-09-25 10:25:03 +02:00
16 lines
361 B
TypeScript
16 lines
361 B
TypeScript
import Gio from "gi://Gio"
|
|
import options from "options"
|
|
|
|
const settings = new Gio.Settings({
|
|
schema: "org.gnome.desktop.interface",
|
|
})
|
|
|
|
function gtk() {
|
|
const scheme = options.theme.scheme.value
|
|
settings.set_string("color-scheme", `prefer-${scheme}`)
|
|
}
|
|
|
|
export default function init() {
|
|
options.theme.scheme.connect("changed", gtk)
|
|
gtk()
|
|
}
|