Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
60921e7a
Commit
60921e7a
authored
Aug 02, 2018
by
James T. Lee
Browse files
dunst: Create exact desired icon size
parent
1f6816d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
manifests/profile/workstation/dunst.pp
manifests/profile/workstation/dunst.pp
+3
-1
No files found.
manifests/profile/workstation/dunst.pp
View file @
60921e7a
...
@@ -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/96
px/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'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment