Skip to content

Commit

Permalink
JC: CS2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jayden-chan committed Feb 14, 2025
1 parent 1ee8a76 commit 9d06c5f
Show file tree
Hide file tree
Showing 16 changed files with 397 additions and 186 deletions.
18 changes: 16 additions & 2 deletions awesome/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,10 @@ local globalkeys = gears.table.join(
awful.spawn.with_shell("bun run " .. home .. "/Dev/audioman/src/index.ts")
end, { description = "run audioman", group = "misc" }),

awful.key({ modkey }, "x", function()
awful.spawn.with_shell('sleep 0.3; xdotool type "$(xclip -selection c -o)"')
end, { description = "type clipboard", group = "misc" }),

awful.key({ modkey, "Shift" }, "F11", function()
awful.spawn.with_shell("killall -SIGUSR1 gpu-screen-recorder")
end, { description = "save clip", group = "misc" }),
Expand Down Expand Up @@ -891,7 +895,12 @@ client.connect_signal("manage", function(c)
end

if not c.maximized and not c.fullscreen then
if c.floating and c.requests_no_titlebar ~= true and (c.type == "normal" or c.type == "dialog") then
if
c.floating
and c.requests_no_titlebar ~= true
and (c.type == "normal" or c.type == "dialog")
and (c.class ~= "cs2")
then
awful.titlebar.show(c)
else
awful.titlebar.hide(c)
Expand All @@ -901,7 +910,12 @@ end)

client.connect_signal("property::floating", function(c)
if not c.maximized and not c.fullscreen then
if c.floating and c.requests_no_titlebar ~= true and (c.type == "normal" or c.type == "dialog") then
if
c.floating
and c.requests_no_titlebar ~= true
and (c.type == "normal" or c.type == "dialog")
and (c.class ~= "cs2")
then
awful.titlebar.show(c)
else
awful.titlebar.hide(c)
Expand Down
168 changes: 92 additions & 76 deletions csgo/autoexec.cfg
Original file line number Diff line number Diff line change
@@ -1,117 +1,133 @@
// Launch options:
// mangohud %command% +exec autoexec.cfg -nojoy -novid -vulkan -freq 240

// CS2
// LD_PRELOAD="" gamemoderun mangohud %command% -nojoy -novid -vulkan -freq 240

// CSGO
// mangohud %command% -nojoy -novid -nosteamcontroller -fullscreen -tickrate 128 +exec autoexec_csgo.cfg

bind "ESCAPE" "cancelselect"
bind "`" "toggleconsole"
bind "escape" "cancelselect"
bind "space" "+jump"
bind "ctrl" "+duck"
bind "shift" "+sprint"
bind "tab" +showscores

bind "SPACE" "+jump"
bind "," "buyammo1"
bind "." "buyammo2"
bind "0" "slot10"
// Mouse
bind "mouse1" "+attack"
bind "mouse2" "+attack2"
bind "mouse3" "+voicerecord"
bind "mouse4" "slot7"
bind "mouse5" "slot8"
bind "mwheeldown" "+jump"

// Number row
bind "`" "toggleconsole"
bind "1" "slot1; -lookatweapon"
bind "2" "slot2; -lookatweapon"
bind "3" "slot3; -lookatweapon"
bind "4" "slot4"
bind "5" "slot5"
bind "6" "noclip"
bind "7" "slot7"
bind "8" "exec crosshair"
bind "9" "exec viewmodel"
bind "0" "exec viewmodel2"
bind "-" "slot10"

// WASD
bind "w" "+forward"
bind "a" "+left"
bind "s" "+back"
bind "d" "+right"

bind "n" "buymenu"
bind "e" "+use"

bind "g" "drop"
// Function keys
unbind "F1"
unbind "F2"
unbind "F3"
unbind "F4"
unbind "F5"
unbind "F6"
unbind "F7"
bind "F8" "say !stay"
bind "F9" "say !switch"
unbind "F10"
unbind "F11"
unbind "F12"

bind "z" slot12
// Buy binds
bind "downarrow" "buy hegrenade;"
bind "kp_multiply" "buy molotov; buy incgrenade;"
bind "leftarrow" "buy flashbang;"
bind "rightarrow" "buy smokegrenade;"

// Misc keys
bind "c" "+radialradio"
bind "e" "+use"
bind "g" "drop"
bind "j" "messagemode"
bind "k" "messagemode2"
bind "m" "teammenu"
bind "n" "buymenu"
bind "q" "lastinv"
bind "r" "+reload"
bind "k" "messagemode2"
bind "j" "messagemode"
bind "CTRL" "+duck"
bind "SHIFT" "+sprint"
bind "F5" "jpeg"
bind "F6" "save quick"
bind "F7" "load quick"
bind "F10" "quit prompt"
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "MOUSE3" "player_ping"
bind "PAUSE" "pause"
bind "t" "+spray_menu"
bind "l" "say (ง︡'-'︠)ง"
bind "'" "greg"

unbind "MWHEELDOWN"
unbind "MWHEELUP"

bind "kp_8" "buy vest;"
bind "kp_9" "buy vesthelm;"
bind "kp_5" "buy deagle; buy revolver;"
bind "\" "buy defuser;"
bind "kp_6" "buy ak47; buy m4a1_silencer;"
bind "kp_3" "buy awp;"
bind "kp_2" "buy fiveseven; buy tec9;"
bind "kp_7" "buy ump45;"
bind "kp_4" "buy mac10; buy mp9;"
bind "kp_1" "buy p250;"
bind "uparrow" "buy ak47; buy m4a1_silencer; buy vesthelm; buy vest;"
bind "leftarrow" "buy flashbang;"
bind "downarrow" "buy hegrenade;"
bind "rightarrow" "buy smokegrenade;"
bind "kp_divide" "buy ssg08;"
bind "kp_multiply" "buy molotov; buy incgrenade;"
bind "kp_minus" "buy famas; buy galilar;"
bind "DEL" "toggle voice_scale 0 1";

bind "mouse5" "slot8"
bind "mouse4" "slot7"
bind "4" "slot4"
bind c "+voicerecord"
bind x "slot10"
bind "v" "+radialradio2"
bind "x" "slot10"
bind "y" "switchhands"
bind "z" slot12

bind TAB +showscores
// Crosshair color
bind "[" "cl_crosshaircolor_r 0; cl_crosshaircolor_g 255; cl_crosshaircolor_b 0"
bind "]" "cl_crosshaircolor_r 255; cl_crosshaircolor_g 0; cl_crosshaircolor_b 255"

bind q "lastinv"
bind y "switchhands"
// Unbinds
unbind ","
unbind "."
unbind "alt"
unbind "h"
unbind "mwheelup"

alias +spin_karambit "-lookatweapon;+reload"
alias -spin_karambit "+lookatweapon;-reload"
bind f "+spin_karambit"

// Jumpthrow
alias "+jumpaction" "+jump;"
alias "+throwaction" "-attack; -attack2"
alias "-jumpaction" "-jump"
bind v "+jumpaction;+throwaction;"

// Run Jumpthrow
alias "+runthrow" "+forward;+jump;";
alias "-runthrow" "-jump;-forward";
bind h "+runthrow;+throwaction";
bind "f" "+spin_karambit"

alias +LJ "+duck; +jump; -forward; +klook"
alias -LJ "-duck; -jump; -klook"

bind "F8" "say !stay"
bind "F9" "say !switch"

exec crosshair
exec viewmodel

cl_radar_always_centered "0"
cl_radar_scale "0.4"
bind b "incrementvar cl_radar_scale 0.4 1.2 0.8"
// Radar
cl_hud_radar_scale "1.3"
cl_radar_always_centered "0"
cl_radar_icon_scale_min "0.2"
cl_radar_rotate "1"
cl_radar_scale "0.4"
cl_radar_square_with_scoreboard "0"
bind b "incrementvar cl_radar_scale 0.4 1.2 0.8"

// Misc settings
cl_allow_animated_avatars "0"
cl_use_opens_buy_menu "0"
r_show_build_info "0"
cl_hud_color 1

// Main menu vanity settings
ui_mainmenu_bkgnd_movie_9CA40421 de_anubis
ui_vanitysetting_team ct
ui_vanitysetting_loadoutslot_ct melee

// Damage prediction
cl_predict_body_shot_fx 1
cl_predict_head_shot_fx 0
cl_predict_kill_ragdolls 1

cl_showfps "0"

fps_max 320
// 1600 DPI
sensitivity "0.47"

fps_max 301
hud_scaling "0.80"
// voice_mixer_volume 0.5
host_writeconfig
44 changes: 19 additions & 25 deletions csgo/crosshair.cfg
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
//cl_crosshair_drawoutline "1"
//cl_crosshair_dynamic_maxdist_splitratio "0.35"
//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 "1"
//cl_crosshair_sniper_show_normal_inaccuracy "0"
//cl_crosshair_sniper_width "1"
//cl_crosshair_t "0"
//cl_crosshairalpha "200"
//cl_crosshaircolor "5"
//cl_crosshaircolor_b "0"
//cl_crosshaircolor_g "255"
//cl_crosshaircolor_r "0"
//cl_crosshairdot "0"
//cl_crosshairgap "0.226215"
//cl_crosshairgap_useweaponvalue "0"
//cl_crosshairsize "2.123888"
//cl_crosshairstyle "4"
//cl_crosshairthickness "0.547707"
//cl_crosshairusealpha "1"
//cl_fixedcrosshairgap "3"
cl_crosshair_drawoutline 0
cl_crosshair_recoil 0
cl_crosshair_t 0
cl_crosshairalpha 255
cl_crosshaircolor 5
cl_crosshairdot 0
cl_crosshairgap -5
cl_crosshairgap_useweaponvalue 0
cl_crosshairsize 2.5
cl_crosshairstyle 4
cl_crosshairthickness 1
cl_crosshairusealpha 0

// apply_crosshair_code CSGO-ManMV-afGOt-SUfzS-KQArF-ksZQM
apply_crosshair_code CSGO-QxJRR-VVapB-zdhtu-hrBxn-i8qmJ
cl_crosshaircolor_r 0
cl_crosshaircolor_g 255
cl_crosshaircolor_b 0

cl_crosshair_friendly_warning 1
cl_crosshair_sniper_width 1
hud_showtargetid 1
Loading

0 comments on commit 9d06c5f

Please sign in to comment.