mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-03 15:37:16 -04:00
Replaced micro with vim
This commit is contained in:
+7
-8
@@ -130,7 +130,7 @@ chmod 755 /home/"$username"/{.config,.local/share}
|
|||||||
|
|
||||||
## KDE Plasma
|
## KDE Plasma
|
||||||
if [ "$formfactor" == 1 ] || [ "$formfactor" == 2 ] || [ "$formfactor" == 3 ]; then
|
if [ "$formfactor" == 1 ] || [ "$formfactor" == 2 ] || [ "$formfactor" == 3 ]; then
|
||||||
pacman -S plasma-desktop plasma-wayland-session plasma-wayland-protocols kscreen kwallet-pam kdeplasma-addons spectacle gwenview plasma-nm plasma-pa breeze-gtk kde-gtk-config kio-extras khotkeys kwalletmanager yakuake ark kate bluedevil dolphin qt5-imageformats pipewire pipewire-pulse pipewire-jack pipewire-alsa wireplumber wayland-protocols polkit micro bluez-openrc --needed --noconfirm
|
pacman -S plasma-desktop plasma-wayland-session plasma-wayland-protocols kscreen kwallet-pam kdeplasma-addons spectacle gwenview plasma-nm plasma-pa breeze-gtk kde-gtk-config kio-extras khotkeys kwalletmanager yakuake ark kate bluedevil dolphin qt5-imageformats pipewire pipewire-pulse pipewire-jack pipewire-alsa wireplumber wayland-protocols polkit bluez-openrc --needed --noconfirm
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pam-login -o /etc/pam.d/login
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pam-login -o /etc/pam.d/login
|
||||||
mkdir -p /home/"$username"/.local/share/konsole
|
mkdir -p /home/"$username"/.local/share/konsole
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/konsole-profile -o /home/"$username"/.local/share/konsole/Custom.profile
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/konsole-profile -o /home/"$username"/.local/share/konsole/Custom.profile
|
||||||
@@ -145,7 +145,7 @@ curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/progr
|
|||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/pipewire-start/pipewire-start.sh -o /usr/local/bin/pipewire-start.sh
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/pipewire-start/pipewire-start.sh -o /usr/local/bin/pipewire-start.sh
|
||||||
echo -e \#\!/usr/bin/env bash"\nfstrim -Av &" > /etc/local.d/trim.start
|
echo -e \#\!/usr/bin/env bash"\nfstrim -Av &" > /etc/local.d/trim.start
|
||||||
chmod 755 /usr/local/bin/powerset.sh /usr/local/bin/pipewire-start.sh /etc/local.d/trim.start
|
chmod 755 /usr/local/bin/powerset.sh /usr/local/bin/pipewire-start.sh /etc/local.d/trim.start
|
||||||
chown -R root /usr/local/bin /etc/local.d
|
chown -R root:root /usr/local/bin /etc/local.d
|
||||||
|
|
||||||
# asus g14 2020 configuration
|
# asus g14 2020 configuration
|
||||||
if [ "$formfactor" == 1 ]; then
|
if [ "$formfactor" == 1 ]; then
|
||||||
@@ -195,7 +195,7 @@ fi
|
|||||||
pacman -S openssh --needed --noconfirm
|
pacman -S openssh --needed --noconfirm
|
||||||
mkdir /home/"$username"/.ssh
|
mkdir /home/"$username"/.ssh
|
||||||
touch /home/"$username"/.ssh/authorized_keys
|
touch /home/"$username"/.ssh/authorized_keys
|
||||||
chown -R "$username" /home/"$username"/.ssh
|
chown -R "$username":users /home/"$username"/.ssh
|
||||||
chmod 600 /home/"$username"/.ssh/authorized_keys
|
chmod 600 /home/"$username"/.ssh/authorized_keys
|
||||||
|
|
||||||
# misc configuration
|
# misc configuration
|
||||||
@@ -205,14 +205,13 @@ else
|
|||||||
echo 'vm.swappiness=0' > /etc/sysctl.d/99-swappiness.conf
|
echo 'vm.swappiness=0' > /etc/sysctl.d/99-swappiness.conf
|
||||||
fi
|
fi
|
||||||
echo -e ""$username" soft memlock 64\n"$username" hard memlock 2097152\n"$username" hard nofile 524288\n# End of file" > /etc/security/limits.conf # increase memlock and add support for esync
|
echo -e ""$username" soft memlock 64\n"$username" hard memlock 2097152\n"$username" hard nofile 524288\n# End of file" > /etc/security/limits.conf # increase memlock and add support for esync
|
||||||
mkdir -p /home/"$username"/.gnupg /home/"$username"/.config/micro
|
|
||||||
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/gai.conf -o /etc/gai.conf # configure gai to prefer IPv6
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/gai.conf -o /etc/gai.conf # configure gai to prefer IPv6
|
||||||
echo 'vm.max_map_count=2147483642' > /etc/sysctl.d/90-override.conf # increase max virtual memory maps (helps with some Wine games)
|
echo 'vm.max_map_count=2147483642' > /etc/sysctl.d/90-override.conf # increase max virtual memory maps (helps with some Wine games)
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/micro-settings.json -o /home/"$username"/.config/micro/settings.json # set micro to use spaces in place of tabs
|
pacman -S neofetch htop vim --needed --noconfirm
|
||||||
chmod 755 /home/"$username"/.config /home/"$username"/.config/micro /home/"$username"/.config/micro/settings.json
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/vimrc -o /home/"$username"/.vimrc
|
||||||
chown "$username":users /home/"$username"/.config /home/"$username"/.config/micro /home/"$username"/.config/micro/settings.json
|
chown "$username":users /home/"$username"/.vimrc
|
||||||
pacman -S neofetch htop --needed --noconfirm
|
chmod 644 /home/"$username"/.vimrc
|
||||||
|
|
||||||
# finishing up + cleaning
|
# finishing up + cleaning
|
||||||
rm -rf /chrootInstall.sh /tempfiles
|
rm -rf /chrootInstall.sh /tempfiles
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
" ensure correct basic settings
|
||||||
|
set nocompatible
|
||||||
|
set fileencoding=utf-8
|
||||||
|
|
||||||
|
" show line numbers
|
||||||
|
set number
|
||||||
|
|
||||||
|
" expand all tabs and indents to 4 spaces
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
" enable visually indented text wrapping
|
||||||
|
set wrap
|
||||||
|
set breakindent
|
||||||
|
set showbreak=→
|
||||||
|
|
||||||
|
" do not auto-break lines unless they are 1000+ characters long
|
||||||
|
set textwidth=1000
|
||||||
|
|
||||||
|
" do not create automatic backups of any sort
|
||||||
|
set nobackup
|
||||||
|
set nowritebackup
|
||||||
|
|
||||||
|
" default to case insensitive search unless a capital is typed
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" tell vim to remember certain things when exited
|
||||||
|
" '10 : marks will be remembered for up to 10 previously edited files
|
||||||
|
" "100 : will save up to 100 lines for each register
|
||||||
|
" :20 : up to 20 lines of command-line history will be remembered
|
||||||
|
" % : saves and restores the buffer list
|
||||||
|
" n... : where to save the viminfo files
|
||||||
|
set viminfo='10,\"100,:20,%,n~/.viminfo
|
||||||
|
|
||||||
|
" restores cursor position in recently opened files
|
||||||
|
function! ResCur()
|
||||||
|
if line("'\"") <= line("$")
|
||||||
|
normal! g`"
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup resCur
|
||||||
|
autocmd!
|
||||||
|
autocmd BufWinEnter * call ResCur()
|
||||||
|
augroup END
|
||||||
Reference in New Issue
Block a user