Commit 60921e7a authored by James T. Lee's avatar James T. Lee
Browse files

dunst: Create exact desired icon size

parent 1f6816d4
...@@ -14,6 +14,8 @@ class nest::profile::workstation::dunst { ...@@ -14,6 +14,8 @@ class nest::profile::workstation::dunst {
group => 'root', group => 'root',
} }
$icon_size = inline_template("<%= (32 * scope['nest::gui_scaling_factor']).round %>")
['actions', 'devices', 'status'].each |$category| { ['actions', 'devices', 'status'].each |$category| {
file { "/usr/share/dunst/icons/${category}": file { "/usr/share/dunst/icons/${category}":
ensure => directory, ensure => directory,
...@@ -23,7 +25,7 @@ class nest::profile::workstation::dunst { ...@@ -23,7 +25,7 @@ class nest::profile::workstation::dunst {
source => "/usr/share/icons/breeze-dark/${category}/22", source => "/usr/share/icons/breeze-dark/${category}/22",
recurse => true, recurse => true,
purge => true, purge => true,
validate_cmd => 'rsvg-convert -w 96 -h 96 -f svg \'%\' | sed \'s/96pt/96px/g\' > \'%.tmp\' && mv \'%.tmp\' \'%\'', validate_cmd => "rsvg-convert -w ${icon_size} -h ${icon_size} -f svg '%' | sed 's/${icon_size}pt/${icon_size}px/g' > '%.tmp' && mv '%.tmp' '%'",
checksum => mtime, checksum => mtime,
links => follow, links => follow,
require => Package['gnome-base/librsvg'], require => Package['gnome-base/librsvg'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment