Compare commits

...

5 Commits

Author SHA1 Message Date
Augusto Gunsch 98fbfa5390
Change GTK theme 2021-11-27 10:29:57 -03:00
Augusto Gunsch 9e52a1adab
Fix variable name 2021-11-13 14:12:11 -03:00
Augusto Gunsch fbc4fb24b9
Add neovim plugin config 2021-11-13 13:31:02 -03:00
Augusto Gunsch 757039302b
Add root permission for doas 2021-11-12 23:40:44 -03:00
Augusto Gunsch d52368ecec
Fix typo 2021-11-08 21:26:46 -03:00
2 changed files with 17 additions and 6 deletions

View File

@ -1,5 +1,4 @@
PAC,alsa-utils,Utilities for ALSA
PAC,breeze-icons,Icon set
PAC,clang,C compiler
PAC,cmake,Meta-build system
PAC,cmus,Terminal music player
@ -20,7 +19,7 @@ PAC,libxinerama,X11 extension which provides support for extending a desktop acr
PAC,lxsession,Graphical authentication agent
PAC,man,Interface to system manuals
PAC,maxima,Computer algebra system
AUR,midnight-gtk-theme-git,GTK theme
AUR,gtk-theme-material-black,GTK theme
AUR,mmv,Batch renamer
PAC,mpv,Media player
PAC,mupdf,Lightweight PDF viewer

1 PAC alsa-utils Utilities for ALSA
PAC breeze-icons Icon set
2 PAC clang C compiler
3 PAC cmake Meta-build system
4 PAC cmus Terminal music player
19 PAC lxsession Graphical authentication agent
20 PAC man Interface to system manuals
21 PAC maxima Computer algebra system
22 AUR midnight-gtk-theme-git gtk-theme-material-black GTK theme
23 AUR mmv Batch renamer
24 PAC mpv Media player
25 PAC mupdf Lightweight PDF viewer

View File

@ -32,6 +32,7 @@ cd "$(dirname "$0")"
### URLs ###
DOTFILES="https://github.com/augustogunsch/dotfiles"
VIM_PLUGIN_CFG="https://github.com/augustogunsch/vim-plugin-config"
PACKAGES_URL="https://raw.githubusercontent.com/augustogunsch/install-arch/master/packages.csv"
### COLORS ###
@ -198,7 +199,7 @@ install_aur() {
echo -ne "Installing ${LGREEN}$1${NC} from AUR ($2)..."
fi
se +e
set +e
quiet sudo -u nobody GOCACHE="$AUR_BUILD_DIR/go" makepkg --noconfirm
if [ $? -eq 0 ]; then
set +e
@ -462,6 +463,7 @@ configure_doas() {
append_line $DOAS_CONF "permit persist $DOAS_USER as root"
append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syu"
append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syyu"
append_line $DOAS_CONF "permit nopass root"
fi
}
@ -507,16 +509,26 @@ configure_nvim_for() {
ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
set -e
echo "done"
echo -n "Downloading neovim plugins configuration (~/.vim-plugin-config)..."
quiet sudo -u "$1" git clone "$VIM_PLUGIN_CFG" ./.vim-plugin-config
echo "done"
echo -n "Linking neovim plugins configuration..."
qpushd ./.vim-plugin-config
quiet sudo -u "$1" ./install.sh
echo "done"
qpopd
}
# pwd must be the home dir of the user
install_dotfiles_for() {
echo -n "Downloading dotfiles for $1 (~/dotfiles)..."
quiet sudo -u "$1" git clone "$DOTFILES" ./dotfiles
echo -n "Downloading dotfiles for $1 (~/.dotfiles)..."
quiet sudo -u "$1" git clone "$DOTFILES" ./.dotfiles
echo "done"
echo -n "Linking dotfiles..."
qpushd "./dotfiles"
qpushd ./.dotfiles
quiet sudo -u "$1" ./install.sh
echo "done"
qpopd