Update file run_onchange_after_20-apply-settings.mjs.tmpl

This commit is contained in:
Brian Zalewski 2023-01-09 12:48:35 +00:00
parent 8c79f21bd7
commit cd9bca8e0a

View file

@ -3,6 +3,8 @@
// gnome config hash: {{ include (joinPath .host.home ".config" "desktop" "gnome.yml")| sha256sum }} // gnome config hash: {{ include (joinPath .host.home ".config" "desktop" "gnome.yml")| sha256sum }}
// settings config hash: {{ include (joinPath .host.home ".config" "desktop" "settings.yml")| sha256sum }} // settings config hash: {{ include (joinPath .host.home ".config" "desktop" "settings.yml")| sha256sum }}
const execSync = require('child_process').execSync
{{ includeTemplate "universal/zx" }} {{ includeTemplate "universal/zx" }}
async function loadThemeSettings() { async function loadThemeSettings() {
@ -47,7 +49,7 @@ async function applyGsettings(settings) {
const gsetting = setting.setting const gsetting = setting.setting
const gsettingVal = setting.value const gsettingVal = setting.value
const gsettingCmd = 'gsettings set ' + gsetting + ' ' + gsettingVal const gsettingCmd = 'gsettings set ' + gsetting + ' ' + gsettingVal
await $`${gsettingCmd}` execSync(gsettingCmd)
} catch (e) { } catch (e) {
log('error', 'Gsettings Failure', 'Failed to apply gsetting') log('error', 'Gsettings Failure', 'Failed to apply gsetting')
console.error(e) console.error(e)
@ -81,7 +83,7 @@ async function applyDconfSettings(settings) {
for (const setting of settings) { for (const setting of settings) {
try { try {
const dconfCmd = 'dconf write ' + setting.key + ' ' + setting.value const dconfCmd = 'dconf write ' + setting.key + ' ' + setting.value
await $`${dconfCmd}` await $(dconfCmd)
} catch (e) { } catch (e) {
log('error', 'Dconf Failure', 'Failed to apply dconf setting') log('error', 'Dconf Failure', 'Failed to apply dconf setting')
console.error(e) console.error(e)