Only add battery config on laptop

This commit is contained in:
Jake Howard 2018-01-25 21:50:31 +00:00
parent ebebf4a8c8
commit 3488f11c0d
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 1 deletions

View file

@ -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':

View file

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