From 3947185069f3e21feeb76ee45d2d5ad4d67e1263 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 2 Feb 2021 12:28:00 +0100 Subject: csgo config --- autoload.cfg | 29 +++++++++++++++++++++++++++++ install.sh | 11 ++++++----- 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 autoload.cfg diff --git a/autoload.cfg b/autoload.cfg new file mode 100644 index 0000000..207f13a --- /dev/null +++ b/autoload.cfg @@ -0,0 +1,29 @@ +cl_crosshair_drawoutline "0" +cl_crosshair_dynamic_maxdist_splitratio "0.200000" +cl_crosshair_dynamic_splitalpha_innermod "1" +cl_crosshair_dynamic_splitalpha_outermod "0.5" +cl_crosshair_dynamic_splitdist "7" +cl_crosshair_friendly_warning "1" +cl_crosshair_outlinethickness "0.000000" +cl_crosshair_sniper_show_normal_inaccuracy "0" +cl_crosshair_sniper_width "1" +cl_crosshair_t "1" +cl_crosshairalpha "255.000000" +cl_crosshaircolor "5" +cl_crosshaircolor_b "255" +cl_crosshaircolor_g "0" +cl_crosshaircolor_r "255" +cl_crosshairdot "0" +cl_crosshairgap "-3.000000" +cl_crosshairgap_useweaponvalue "0" +cl_crosshairsize "3.000000" +cl_crosshairstyle "4" +cl_crosshairthickness "1.000000" +cl_crosshairusealpha "1" +cl_fixedcrosshairgap "3" + +sensitivity 0.5 + +safezonex 0.8 +safezoney 1.0 +cl_hud_color 4 diff --git a/install.sh b/install.sh index 8554980..af49f6c 100755 --- a/install.sh +++ b/install.sh @@ -16,6 +16,7 @@ CONFIGS=( ["sway"]=".config" ["sxhkd"]=".config" ["deadd"]=".config" ["rofi"]=".config" + ["autoload.cfg"]=".local/share/Steam/steamapps/common/Counter-Strike Global Offensive/csgo/cfg/" [".vim"]="." [".xinitrc"]="." [".bashrc"]="." @@ -104,12 +105,12 @@ selector() { #1: source 2: destination link() { - if [ -e $2 ]; then + if [ -e "$2" ]; then if yes_no "$(basename $2) exists. Overwrite?"; then - if [ -d $2 ]; then - rm -R $2 + if [ -d "$2" ]; then + rm -R "$2" else - rm $2 + rm "$2" fi else return @@ -120,7 +121,7 @@ link() { } choose_target() { - if [ ! -z ${CONFIGS[$1]} ]; then + if [ ! -z "${CONFIGS[$1]}" ]; then echo "Install $(pwd)/$1 to $HOME/${CONFIGS[$1]}/$1" link "$(pwd)/$1" "$HOME/${CONFIGS[$1]}/$1" elif [ ! -z "${SETS[$1]}" ]; then -- cgit v1.2.3