arch-config/3-post-reboot/xmonad.sh

13 lines
682 B
Bash
Executable file

git clone https://github.com/xmonad/xmonad /home/afonso/.config/xmonad/xmonad-git
git clone https://github.com/xmonad/xmonad-contrib /home/afonso/.config/xmonad/xmonad-contrib-git
cd /home/afonso/.config/xmonad/ || exit
~/.ghcup/bin/stack init
~/.ghcup/bin/stack install
git clone https://codeberg.org/xmobar/xmobar /home/afonso/.config/xmobar/xmobar-git/
cd /home/afonso/.config/xmobar/
~/.ghcup/bin/stack init
sed -i "s/# flags: {}/ flags:\n xmobar:\n all_extensions: true\n with_threaded: true/" /home/afonso/.config/xmobar/stack.yaml
sed -i "s/# extra-deps: \[\]/ extra-deps:\n - netlink-1.1.1.0/" /home/afonso/.config/xmobar/stack.yaml
~/.ghcup/bin/stack install