Slowly adding things

pull/1/head
John Hammond 2019-10-01 10:18:50 -04:00
parent e633bee5ed
commit f1633662d0
5 changed files with 199 additions and 3 deletions

Binary file not shown.

74
Xresources Normal file
View File

@ -0,0 +1,74 @@
! special
*.foreground: #f8f8f2
*.background: #272822
*.cursorColor: #f8f8f2
! black
*.color0: #272822
*.color8: #75715e
! red
*.color1: #f92672
*.color9: #f92672
! green
*.color2: #a6e22e
*.color10: #a6e22e
! yellow
*.color3: #f4bf75
*.color11: #f4bf75
! blue
*.color4: #66d9ef
*.color12: #66d9ef
! magenta
*.color5: #ae81ff
*.color13: #ae81ff
! cyan
*.color6: #a1efe4
*.color14: #a1efe4
! white
*.color7: #f8f8f2
*.color15: #f9f8f5

View File

@ -18,13 +18,112 @@ COLOR_WHITE=$(tput setaf 7)
BOLD=$(tput bold) BOLD=$(tput bold)
COLOR_RESET=$(tput sgr0) COLOR_RESET=$(tput sgr0)
function echo_red(){ function echo_red(){
echo "${COLOR_RED}${BOLD}$1${COLOR_RESET}i" echo "${COLOR_RED}${BOLD}$1${COLOR_RESET}"
} }
function echo_green(){ function echo_green(){
echo "${COLOR_GREEN}${BOLD}$1${COLOR_RESET}" echo "${COLOR_GREEN}${BOLD}$1${COLOR_RESET}"
} }
echo_green "Hello everyone" function echo_yellow(){
echo "${COLOR_YELLOW}${BOLD}$1${COLOR_RESET}"
}
###############################################################
SUDO_DEPENDENCIES="sudo"
AUDIO_DEPENDENCES="pulseaudio pavucontrol"
GIT_DEPENDENCIES="git"
VIM_DEPENDENCIES="vim"
TMUX_DEPENDENCIES="tmux"
X_DEPENDENCIES="xorg-xinit xorg-server xorg-xrandr"
YAY_DEPENDENCINES="base-devel"
I3_DEPENDENCIES="i3 gnu-free-fonts"
TERMINATOR_DEPENDENCIES="terminator"
URXVT_DEPENDENCIES="rxvt-unicode"
DEPENDENCIES="\
$SUDO_DEPENDENCIES \
$AUDIO_DEPENDENCIES \
$GIT_DEPENDENCIES \
$VIM_DEPENDENCIES \
$TMUX_DEPENDENCIES \
$X_DEPENDENCIES \
$YAY_DEPENDENCIES \
$I3_DEPENDENCIES \
$TERMINATOR_DEPENDENCIES \
"
###############################################################
function configure_x(){
echo_green "Configuring X"
echo "exec i3" > ~/.xinitrc
cp Xresources ~/.Xresources
}
function configure_terminator(){
echo_green "Configuring Terminator"
cp terminator_config ~/.config/terminator/config
}
function configure_bashrc(){
echo_green "Getting default .bashrc"
curl -s "https://gist.githubusercontent.com/indrakaw/1fdbc51639081216f04a025b1add2506/raw/04838587ce726800d2679abd6df6274a64fcb4d8/.bashrc" > ~/.bashrc
}
function configure_tmux(){
echo 'source "$HOME/.bashrc"' > ~/.bash_profile
cp tmux.conf ~/.tmux.conf
}
###############################################################
function set_timezone(){
echo_green "Setting timezone to EST5EDT"
ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime
hwclock --systohc
}
function set_locale(){
echo_green "Setting locale"
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen
}
function set_hostname(){
echo_green "Setting hostname"
echo arch > /etc/hostname
cat <<EOF >/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
EOF
}
function pre_install(){
set_timezone
set_locale
set_hostname
}
function install_niceties(){
pacman -Sy $DEPENDENCIES --noconfirm --color=always
}
pre_install
install_niceties
configure_x
configure_terminator
configure_bashrc
configure_tmux

22
terminator_config Normal file
View File

@ -0,0 +1,22 @@
[global_config]
hide_from_taskbar = True
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
cursor_color = "#aaaaaa"
font = Source Code Pro Medium 11
foreground_color = "#ffffff"
palette = "#2e3436:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#06989a:#d3d7cf:#555753:#ef2929:#8ae234:#fce94f:#729fcf:#ad7fa8:#34e2e2:#eeeeec"
scrollback_infinite = True
scrollbar_position = hidden
show_titlebar = False
use_system_font = False

1
tmux.conf Normal file
View File

@ -0,0 +1 @@
set -g default-terminal "xterm-256color"