summaryrefslogtreecommitdiff
path: root/manifests/xmonad.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 00:58:22 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 02:16:16 +0100
commitdffd09001ccdf3d4d23ca3f37ac9878e41450a3b (patch)
tree8798932a604507d9d7b7761c5666acb52994bcae /manifests/xmonad.pp
parentGandalf web certbot. (diff)
downloadprofiles-dffd09001ccdf3d4d23ca3f37ac9878e41450a3b.tar.gz
profiles-dffd09001ccdf3d4d23ca3f37ac9878e41450a3b.tar.xz
Migrate stuff from ansible.
Diffstat (limited to 'manifests/xmonad.pp')
-rw-r--r--manifests/xmonad.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/xmonad.pp b/manifests/xmonad.pp
new file mode 100644
index 0000000..be8d516
--- /dev/null
+++ b/manifests/xmonad.pp
@@ -0,0 +1,29 @@
+# Setup xmonad, only tested on arch linux
+class profiles::xmonad {
+ ensure_packages ([
+ 'xmonad',
+ 'xmonad-contrib',
+ # apparently really needed by xmonad
+ 'xorg-fonts-misc',
+ 'ghc',
+ 'xorg-xmessage',
+ 'dzen2',
+ 'dmenu',
+ 'rofi',
+ ], { ensure => installed })
+
+ # Rebuilt my local xmonad config after an upgrade to xmonad.
+ # It's required, I think due to something with dynamic linking.
+ # It's actually pretty ugly that I'm hardcoded in here, but
+ # something had to be done.
+ pacman::hook { 'xmonad':
+ description => 'Rebuild local xmonad config.',
+ when => 'PostTransaction',
+ exec => '/bin/sudo -Hu hugo xmonad --recompile',
+ trigger => {
+ type => 'Package',
+ operation => ['Upgrade', 'Install'],
+ target => 'xmonad*',
+ },
+ }
+}