# 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', 'haskell-dbus', 'haskell-old-locale', 'haskell-old-time', ], { 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': ensure => 'absent', description => 'Rebuild local xmonad config.', when => 'PostTransaction', exec => '/bin/sudo -Hu hugo xmonad --recompile', trigger => { type => 'Package', operation => ['Upgrade', 'Install'], target => 'xmonad*', }, } }