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',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3status-rust.toml'
content => template('i3/i3status-rust.toml.erb')
}
file { 'i3status config':

View File

@ -31,9 +31,11 @@ block = "sound"
interval = 1
step_width = 2
<% if @trusted['hostname'] == 'too-laptop' -%>
[[block]]
block = "battery"
interval = 5
<% end -%>
[[block]]
block = "time"