User:Spyhawk

From ArchWiki
Jump to: navigation, search

syslinux.cfg

# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
#   * menu.c32 - provides a text menu
#   * vesamenu.c32 - provides a graphical menu
#   * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
#   * hdt.c32 - hardware detection tool
#   * reboot.c32 - reboots the system
#
# To Use: Copy the respective files from /usr/lib/syslinux to /boot/syslinux.
# If /usr and /boot are on the same file system, symlink the files instead
# of copying them.
#
# If you do not use a menu, a 'boot:' prompt will be shown and the system
# will boot automatically after 5 seconds.
#
# Please review the wiki: https://wiki.archlinux.org/index.php/Syslinux
# The wiki provides further configuration examples

DEFAULT windows
PROMPT 0        # Set to 1 if you always want to display the boot: prompt 
TIMEOUT 50
# You can create syslinux keymaps with the keytab-lilo tool
#KBDMAP uk.ktl

# Menu Configuration
# Either menu.c32 or vesamenu32.c32 must be copied to /boot/syslinux 
UI vesamenu.c32

# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
MENU TITLE Boot Menu
MENU BACKGROUND background.jpg
MENU RESOLUTION 1024 768
MENU WIDTH 126
MENU MARGIN 6
#MENU PASSWORDMARGIN 3
MENU ROWS 4
MENU CMDLINEROW 12
MENU TABMSGROW 12
#MENU ENDROW -1
#MENU PASSWORDROW 12
MENU TIMEOUTROW 22
MENU HELPMSGROW 30
#MENU HELPMSGENDROW -1
MENU HIDDENROW -2
#MENU HSHIFT 0
MENU VSHIFT 16
#MENU HIDDEN

MENU COLOR border       30;44   #40ffffff #a0000000 std
MENU COLOR title        1;36;44 #9033ccff #a0000000 std
MENU COLOR sel          7;37;40 #e0ffffff #20ffffff all
MENU COLOR unsel        37;44   #50ffffff #a0000000 std
MENU COLOR help         37;40   #c0ffffff #a0000000 std
MENU COLOR timeout_msg  37;40   #80ffffff #00000000 std
MENU COLOR timeout      1;37;40 #c0ffffff #00000000 std
MENU COLOR msg07        37;40   #90ffffff #a0000000 std
MENU COLOR tabmsg       31;40   #30ffffff #00000000 std

# boot sections follow
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

LABEL arch
    MENU LABEL Arch Linux
    TEXT HELP
    > Boot Linux Operating System
    ENDTEXT
    LINUX ../vmlinuz-linux
    INITRD ../intel-ucode.img,../initramfs-linux.img
    APPEND root=/dev/sda3 rw

#LABEL archfallback
#    MENU LABEL Arch Linux Fallback
#    TEXT HELP
#    > Boot Linux Fallback Operating System
#    ENDTEXT
#    LINUX ../vmlinuz-linux
#    INITRD ../initramfs-linux-fallback.img
#    APPEND root=/dev/sda3 rw

LABEL windows
    MENU LABEL Windows
    TEXT HELP
    > Boot Windows Operating System
    ENDTEXT
    COM32 chain.c32
    APPEND hd0 1

#LABEL hdt
#    MENU LABEL HDT (Hardware Detection Tool)
#    TEXT HELP
#    > Launch Hardware Detection Tool
#    ENDTEXT
#    COM32 hdt.c32

LABEL reboot
    MENU LABEL Reboot
    TEXT HELP
    > Reboot System
    ENDTEXT
    COM32 reboot.c32

LABEL poweroff
    MENU LABEL Poweroff
    TEXT HELP
    > Poweroff System
    ENDTEXT
    COM32 poweroff.c32

/etc/bash.bashrc.local

#
# /etc/bash.bashrc.local
#

#prompt

if [[ ${EUID} == 0 ]] ; then
    PS1='\[\e[1;31m\][\[\e[1;39m\]\u\[\e[1;31m\]@\[\e[1;39m\]\h\[\e[0m\] \W\[\e[1;31m\]]\$\[\e[0m\] '
else
    PS1='\[\e[1;34m\][\[\e[1;39m\]\u\[\e[1;34m\]@\[\e[1;39m\]\h\[\e[0m\] \W\[\e[1;34m\]]\$\[\e[0m\] '
fi

# editor
export EDITOR=vim
export VISUAL=vim
alias vi='vim'
#set -o vi

# wayland
SDL_VIDEODRIVER=wayland
QT_QPA_PLATFORM=wayland-egl

# mesa
MESA_GL_VERSION_OVERRIDE=3.3
MESA_GLSL_VERSION_OVERRIDE=150

# pacaur
export AURDEST=~/aur/clone
alias pac='pacaur'
alias pacaur-test='sudo cp /home/remy/code/pacaur/pacaur /usr/bin/pacaur'
alias pacpage='pod2man --utf8 --section=8  --release="wip" --center="Pacaur Manual" --name="PACAUR" ./README.pod > ./pacaur.8 && gzip -f ./pacaur.8 && sudo mv ./pacaur.8.gz /usr/share/man/man8/'

# pacmatic
export pacman_program=pacaur

# pacdiff
DIFFPROG=vimdiff                 # Default "vimdiff"
DIFFSEARCHPATH="/boot /etc /usr" # Default "/etc"

# fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx

# color
export GREP_COLOR="1;33"
alias grep='grep --color=auto'
export LESS="-R"
alias ls='ls --color=auto'
eval $(dircolors -b)
alias diff='colordiff'

# colored man pages
man() {
	env \
	LESS_TERMCAP_mb=$(printf "\e[1;37m") \
	LESS_TERMCAP_md=$(printf "\e[1;37m") \
	LESS_TERMCAP_me=$(printf "\e[0m") \
	LESS_TERMCAP_se=$(printf "\e[0m") \
	LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
	LESS_TERMCAP_ue=$(printf "\e[0m") \
	LESS_TERMCAP_us=$(printf "\e[0;36m") \
	man "$@"
}

# modified commands
alias more='less'
alias df='df -h'
alias du='du -c -h'
alias mkdir='mkdir -p -v'
alias ..='cd ..'
alias cd..='cd ..'

# ls
alias ls='ls -hF --color=always'	# human readable
alias lr='ls -R'		        # recursive
alias ll='ls -l'		        # list
alias la='ll -la'		        # list hidden files
alias lx='ll -BX'		        # sort by extension
alias lz='ll -rS'	    	        # sort by size
alias lt='ll -rT'		        # sort by date
alias lm='la | more'

# safety features
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
alias ln='ln -i'
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'