Configuration file for dwm-bar on macbook air
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.7 KiB

  1. #!/bin/bash
  2. # A script to apply settings at https://github.com/joestandring/dotfiles and various other changes to a fresh Void Linux install
  3. # Joe Standring <git@joestandring.com>
  4. # GNU GPLv3
  5. echo -e "\e[31mChecking permissions...\e[0m"
  6. if [ "$EUID" -eq 0 ]; then
  7. echo "Please do not run this script as root (e.g. using sudo)"
  8. exit
  9. fi
  10. echo -e "\e[31mUpdating and installing packages...\e[0m"
  11. sudo xbps-install -Su
  12. sudo xbps-install -S git neovim neofetch curl wget xorg-minimal calcurse setxkbmap dunst NetworkManager NetworkManager-openvpn network-manager-applet pywal feh pkg-config fontconfig-devel libXinerama-devel libX11-devel libXft-devel ncurses st-terminfo fish-shell compton cmus cmus-flac cmus-pulseaudio pulseaudio alsa-plugins-pulseaudio mpv newsboat ranger transmission socklog-void font-hack-ttf nerd-fonts-ttf make cparser
  13. echo -e "\e[31mCloning dotfiles...\e[0m"
  14. git clone https://github.com/joestandring/dotfiles
  15. mv dotfiles ~/.dot
  16. echo -e "\e[31mMoving files...\e[0m"
  17. cp ~/.dot/.bashrc ~
  18. cp ~/.dot/.xinitrc ~
  19. cp -r ~/.dot/.config ~
  20. echo -e "\e[31mConfiguring Network Manager...\e[0m"
  21. echo 'polkit.addRule(function(action, subject) {
  22. if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("network")) {
  23. return polkit.Result.YES;
  24. }
  25. });' | sudo tee /etc/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules
  26. echo -e "\e[31mConfiguring services...\e[0m"
  27. sudo ln -s /etc/sv/socklog-unix /var/service
  28. sudo ln -s /etc/sv/nanoklogd /var/service
  29. sudo rm -rf /var/service/dhcpcd
  30. sudo rm -rf /var/service/wpa_supplicant
  31. sudo ln -s /etc/sv/NetworkManager /var/service
  32. sudo ln -s /etc/sv/dbus /var/service
  33. echo -e "\e[31mFirst time color setup...\n[0m"
  34. wal -i /usr/share/void-artwork/void-logo.png
  35. ~/.config/dunst/wal.sh
  36. echo -e "\e[31mBuilding packages...\e[0m"
  37. cd ~/.config/st
  38. sudo make clean install
  39. cd ~/.config/dwm
  40. sudo make clean install
  41. cd ~/.config/dmenu
  42. sudo make clean install
  43. echo -e "\e[31mGetting scripts...\e[0m"
  44. mkdir ~/bin
  45. cd
  46. git clone https://github.com/joestandring/countdown
  47. chmod +x ~/countdown/countdown.sh
  48. mv ~/countdown/countdown.sh ~/bin/countdown
  49. rm -rf ~/countdown
  50. git clone https://github.com/joestandring/void-wiki-cli
  51. chmod +x ~/void-wiki-cli/void_wiki.sh
  52. mv ~/void-wiki-cli/void_wiki.sh ~/bin/void-wiki-cli
  53. rm -rf ~/void-wiki-cli
  54. git clone https://github.com/joestandring/dwm-bar
  55. chmod +x ~/dwm-bar/dwm_bar.sh
  56. mv ~/dwm-bar/dwm_bar.sh ~/bin/dwm-bar
  57. mv ~/dwm-bar/bar-functions ~/bin
  58. rm -rf ~/dwm-bar
  59. echo -e "\e[31Configuring Neovim...\e[0m"
  60. curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  61. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  62. echo -e "\e[31Setting up dwm-bar...\e[0m"
  63. echo -e "TO BE ADDED AFTER DWM-BAR-INSTALLER"
  64. echo -e "Finished!\nJust startx to jump right in"