Add fonts config
This commit is contained in:
parent
c5329aed95
commit
5a7dafe1fc
2 changed files with 22 additions and 0 deletions
21
modules/config/manifests/fonts.pp
Normal file
21
modules/config/manifests/fonts.pp
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue