fbcdf5051cccf865d9020828f469afc10d921705
[~bandali/configs] / setup
1 #!/bin/bash
2
3 sudo systemctl start dhcpcd
4
5 # install cower & pacaur
6 mkdir -p usr/build
7 cd $_
8 git clone https://aur.archlinux.org/cower.git
9 git clone https://aur.archlinux.org/pacaur.git
10 cd cower
11 gpg --recv-keys --keyserver hkp://pgp.mit.edu 1EB2638FF56C0C53
12 makepkg -si
13 cd ../pacaur
14 makepkg -si
15
16 # mirrors
17 pacaur -S reflector
18 sudo reflector --sort rate --save /etc/pacman.d/mirrorlist -c "Canada" -f 5 -l 5
19
20 # dkms and broadcom-wl driver
21 pacaur -S linux-headers dkms
22 pacaur -S broadcom-wl-dkms
23
24 # X, drivers, lightdm, Xfce
25 pacaur -S mesa-libgl libva-intel-driver xorg-{xprop,server{,-utils}} vulkan-intel
26 pacaur -S pulseaudio pulseaudio-alsa
27 pacaur -S lightdm{,-gtk-greeter}
28 sudo systemctl enable lightdm
29 pacaur -S xfce4{,-screenshoter}
30
31 # other essentials
32 pacaur -S wget openssh
33 pacaur -S thunar-volman gvfs{,-mtp}
34 pacaur -S ntfs-3g
35 pacaur -S mba6x_bl-dkms
36 pacaur -S firefox chromium
37 pacaur -S unrar mpv youtube-dl
38 pacaur -S feh sxiv-git
39 pacaur -S p{a,n}mixer-gi
40 pacaur -S pavucontrol
41 pacaur -S rxvt-unicode-pixbuf urxvt-perls urxvt-font-size-git
42 pacaur -S dunst-git
43 pacaur -S light-git kbdlight
44 pacaur -S pass
45 pacaur -S rofi{,-pass}-git
46 pacaur -S teiler
47 pacaur -S ncdu
48 pacaur -S w3m neofetch-git
49 pacaur -S gnome-keyring seahorse
50 pacaur -S meld
51 pacaur -S ttf-symbola
52 pacaur -S stow
53
54 # tlp and powertop
55 pacaur -S tlp powertop
56 # TODO: create powertop service
57 sudo vi /etc/systemd/system/powertop.service
58 sudo systemctl enable powertop.service
59 sudo systemctl disable systemd-rfkill
60 # TODO: copy tlp config
61 sudo systemctl enable tlp tlp-sleep
62
63 # fonts
64 pacaur -S ttf-liberation ttf-ubuntu-font-family
65 pacaur -S ttf-inconsolata adobe-source-code-pro-fonts
66 pacaur -S ttf-roboto cantarell-fonts
67
68 pacaur -S elementary-xfce-icons
69 pacaur -S xfce-theme-greybird
70
71 # LibreOffice & TeX
72 pacaur -S hunspell{,-en}
73 pacaur -S libreoffice
74 pacaur -S tex{info,live-{bin,core,{fonts,formats,generic,latex,plain}extra,htmlxml,humanities,pictures,publishers,science}}
75
76 # macfanctld
77 pacaur -S macfanctld
78 sudo systemctl enable macfanctld.service
79 sudo systemctl start macfanctld.service
80
81 # stack
82 gpg --recv-keys --keyserver hkp://pgp.mit.edu 702353E0F7E48EDB
83 pacaur -S ncurses5-compat-libs stack
84
85 # fix ` and ~
86 sudo vi /etc/modprobe.d/hid_apple.conf
87 # TODO: copy file
88 sudo mkinitcpio -p linux
89
90 # window manager
91 pacaur -S {bspwm,sxhkd}-git
92
93
94 # connman
95 pacaur -S wpa_supplicant connman{,-gtk}
96
97 sudo systemctl stop dhcpcd
98 sudo systemctl enable connman
99
100 # stow
101 cd $HOME/dotfiles
102 stow bspwm
103 stow sxhkd
104 stow compton
105 stow rofi
106 stow rofi-pass
107 stow dunst
108 stow fontconfig
109 stow gtk
110 stow x
111 stow xdg
112 stow latexmk
113 stow zathura