diff --git a/modules/config/manifests/fonts.pp b/modules/config/manifests/fonts.pp new file mode 100644 index 0000000..ec711fb --- /dev/null +++ b/modules/config/manifests/fonts.pp @@ -0,0 +1,21 @@ +class config::fonts { + $fonts = [ + "11-lcdfilter-default.conf", + "10-sub-pixel-rgb.conf", + "30-infinality-aliases.conf" + ]; + + $fonts.each |String $font| { + file { "font config $font": + path => "/etc/fonts/conf.d/$font", + ensure => link, + mode => "0644", + source => "/etc/fonts/conf.avail/$font" + + } + } + + exec { 'update font cache': + command => "gdk-pixbuf-query-loaders --update-cache" + } +} diff --git a/modules/config/manifests/init.pp b/modules/config/manifests/init.pp index 71a1790..5dda184 100644 --- a/modules/config/manifests/init.pp +++ b/modules/config/manifests/init.pp @@ -1,6 +1,7 @@ class config { include 'config::vim' include 'config::git' + include 'config::fonts' file { '/etc/libinput-gestures.conf': ensure => file,