make gnome settings more declarative

This commit is contained in:
Anthony Rodriguez 2024-08-09 22:21:06 +02:00
parent b229b957f5
commit 66fecb4dcf
3 changed files with 12 additions and 7 deletions

View file

@ -34,3 +34,6 @@ vscodium
# fish autogenerated functions # fish autogenerated functions
**/_*.fish **/_*.fish
# gnome settings
dconf.ini

View file

@ -1,8 +1,3 @@
{{- if and (eq .chezmoi.os "linux") (not .is_wsl) -}}
#!/bin/sh
dconf load /org/gnome/ <<EOF
[desktop/input-sources] [desktop/input-sources]
current=uint32 0 current=uint32 0
mru-sources=[('xkb', 'us'), ('xkb', 'ch+fr')] mru-sources=[('xkb', 'us'), ('xkb', 'ch+fr')]
@ -53,9 +48,8 @@ palette=['#51576d', '#e78284', '#a6d189', '#e5c890', '#8caaee', '#f4b8e4', '#81c
use-system-font=false use-system-font=false
use-theme-colors=false use-theme-colors=false
visible-name='nezia' visible-name='nezia'
custom-command='tmux'
[tweaks] [tweaks]
show-extensions-notice=false show-extensions-notice=false
EOF
{{ end }}

View file

@ -0,0 +1,8 @@
#!/bin/bash
{{ if and (eq .chezmoi.os "linux") (not .is_wsl) -}}
dconf load /org/gnome/ < {{ joinPath .chezmoi.sourceDir "dconf.ini" | quote }}
{{ end }}