system configuration files update
This commit is contained in:
1
.bashrc
1
.bashrc
@@ -21,6 +21,7 @@ PS1="$PS1"'\[\033[01;93m\]$(__git_ps1)' # github branch
|
||||
PS1="$PS1"'\[\033[00m\]\$ ' # shell sign
|
||||
|
||||
export EDITOR=nvim
|
||||
|
||||
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # coloured GCC warnings and errors
|
||||
eval "$(_AUTO_CPUFREQ_COMPLETE=bash_source auto-cpufreq)"
|
||||
|
||||
|
||||
19
.xinitrc
19
.xinitrc
@@ -2,23 +2,26 @@
|
||||
# load system xinit scripts
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in "/etc/X11/xinit/xinitrc.d"/?*.sh; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
source "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-G0 & # set NVIDIA as primary GPU
|
||||
xrandr --auto #
|
||||
xrandr --dpi 96 # set dpi
|
||||
#xrandr --setprovideroutputsource modesetting NVIDIA-G0 & # set NVIDIA as primary GPU
|
||||
xrandr --auto --dpi 96 &
|
||||
|
||||
nvidia-settings -l # apply nvidia-settings
|
||||
nvidia-settings -l & # apply nvidia-settings
|
||||
export __GL_YIELD="USLEEP" # fix for awful diagonal screen tear
|
||||
|
||||
numlockx on # ensure numlock is on before setting keymap
|
||||
|
||||
[[ -f "/etc/xprofile" ]] && source "/etc/xprofile" # load the system-wide xprofile
|
||||
[[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" # load the local xprofile configuration
|
||||
[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" # load local keymap
|
||||
[[ -f "/etc/xprofile" ]] && source "/etc/xprofile" & # load the system-wide xprofile
|
||||
[[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" & # load the local xprofile configuration
|
||||
[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" & # load local keymap
|
||||
|
||||
# start the keyring daemon
|
||||
eval "$(gnome-keyring-daemon --start)"
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
# start the graphical environment (replaces shell)
|
||||
exec /usr/bin/cinnamon-session
|
||||
|
||||
Reference in New Issue
Block a user