From afe0656eca8ce2c4f257c7573bb82165cdf7f5d7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 19 Oct 2017 13:30:41 +0100 Subject: [PATCH] Autostart compton --- deploy.sh | 4 +++- manifests/post-packages.pp | 9 +++++++++ modules/i3/manifests/autostart.pp | 9 --------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 manifests/post-packages.pp diff --git a/deploy.sh b/deploy.sh index 1663f8c..a45d51d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -6,6 +6,8 @@ puppet apply manifests/main.pp --modulepath=modules/ --verbose patch /usr/bin/makepkg -N < makepkg.patch -puppet apply manifests/packages.pp --modulepath=modules/ --verbose +puppet apply manifests/packages.pp --verbose patch /usr/bin/makepkg -NR < makepkg.patch + +puppet apply manifests/post-packages.pp --verbose diff --git a/manifests/post-packages.pp b/manifests/post-packages.pp new file mode 100644 index 0000000..ec590b1 --- /dev/null +++ b/manifests/post-packages.pp @@ -0,0 +1,9 @@ +node default { + file {"autostart compton": + ensure => link, + path => '/home/jake/.config/autostart/compton.desktop', + mode => '0644', + owner => 'jake', + source => '/usr/share/applications/compton.desktop' + } +} diff --git a/modules/i3/manifests/autostart.pp b/modules/i3/manifests/autostart.pp index cdee804..f12867d 100644 --- a/modules/i3/manifests/autostart.pp +++ b/modules/i3/manifests/autostart.pp @@ -26,13 +26,4 @@ class i3::autostart { source => "/etc/xdg/autostart/$program.desktop" } } - - file {"autostart compton": - ensure => link, - path => '/home/jake/.config/autostart/compton.desktop', - mode => '0644', - owner => 'jake', - source => '/usr/share/applications/compton.desktop' - - } }