build-herbstluftwm.sh 699 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. [[ ! -f /bin/apt ]] && exit 2
  4. sudo apt install clang make cmake asciidoc libx11 \
  5. xft freetype xrandr xinerama xsetroot xterm dzen2 dmenu
  6. git clone https://github.com/herbstluftwm/herbstluftwm
  7. cd herbstluftwm
  8. make # build the binaries
  9. # install files
  10. mkdir -p ~/.local/bin
  11. # you also have to put $HOME/bin to your path, e.g. by:
  12. # echo "export PATH=$PATH:$HOME/bin" >> ~/.bashrc # or to your zshrc, etc...
  13. ln -s "$(pwd)/herbstluftwm" ~/.local/bin/
  14. ln -s "$(pwd)/herbstclient" ~/.local/bin/
  15. # copy the configuration
  16. mkdir -p ~/.config/herbstluftwm/
  17. cp share/autostart ~/.config/herbstluftwm/
  18. cp share/panel.sh ~/.config/herbstluftwm/