Add fonts config

This commit is contained in:
Jake Howard 2017-08-12 18:59:43 +01:00
parent c5329aed95
commit 5a7dafe1fc
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 22 additions and 0 deletions

View file

@ -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"
}
}

View file

@ -1,6 +1,7 @@
class config { class config {
include 'config::vim' include 'config::vim'
include 'config::git' include 'config::git'
include 'config::fonts'
file { '/etc/libinput-gestures.conf': file { '/etc/libinput-gestures.conf':
ensure => file, ensure => file,