Added ags
TODO copy ags config
This commit is contained in:
16
roles/ags/files/lib/gtk.ts
Normal file
16
roles/ags/files/lib/gtk.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user