Only add battery config on laptop
This commit is contained in:
parent
ebebf4a8c8
commit
3488f11c0d
2 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,7 @@ class i3 {
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
group => 'users',
|
group => 'users',
|
||||||
source => 'puppet:///modules/i3/i3status-rust.toml'
|
content => template('i3/i3status-rust.toml.erb')
|
||||||
}
|
}
|
||||||
|
|
||||||
file { 'i3status config':
|
file { 'i3status config':
|
||||||
|
|
|
@ -31,9 +31,11 @@ block = "sound"
|
||||||
interval = 1
|
interval = 1
|
||||||
step_width = 2
|
step_width = 2
|
||||||
|
|
||||||
|
<% if @trusted['hostname'] == 'too-laptop' -%>
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
interval = 5
|
interval = 5
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
Loading…
Reference in a new issue