diff --git a/awesome/rc.lua b/awesome/rc.lua index 6573760..43c0fdd 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -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" }), @@ -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) @@ -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) diff --git a/csgo/autoexec.cfg b/csgo/autoexec.cfg index 0255eba..013d77b 100644 --- a/csgo/autoexec.cfg +++ b/csgo/autoexec.cfg @@ -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 diff --git a/csgo/crosshair.cfg b/csgo/crosshair.cfg index ff86b65..6de7511 100644 --- a/csgo/crosshair.cfg +++ b/csgo/crosshair.cfg @@ -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 diff --git a/csgo/lsp.cfg b/csgo/lsp.cfg new file mode 100644 index 0000000..2010bcf --- /dev/null +++ b/csgo/lsp.cfg @@ -0,0 +1,186 @@ +# ------------------------------------------------------------------------------- +# This file contains configuration of the audio plugin. +# Package: lsp-plugins (Linux Studio Plugins) +# Package version: 1.2.20 +# Plugin name: Kompressor Stereo (Compressor Stereo) +# Plugin version: 1.0.28 +# UID: compressor_stereo +# CLAP URI: in.lsp-plug.compressor_stereo +# GStreamer identifier: lsp-plugins-compressor-stereo +# LADSPA identifier: 5002091 +# LADSPA label: http://lsp-plug.in/plugins/ladspa/compressor_stereo +# LV2 URI: http://lsp-plug.in/plugins/lv2/compressor_stereo +# VST 2.x identifier: unsc +# VST 3.x identifier: 647370206B31732020202020756E7363 +# +# (C) Linux Studio Plugins +# https://lsp-plug.in/ +# +# ------------------------------------------------------------------------------- + +# Side-chain shared memory link [string] +link = "" + +# Bypass [boolean]: true/false +bypass = false + +# Input gain [G]: 0.00000000..1000.00000000 +g_in = 0.00 db + +# Output gain [G]: 0.00000000..1000.00000000 +g_out = 0.00 db + +# Pause graph analysis [boolean]: true/false +pause = false + +# Clear graph analysis [boolean]: true/false +clear = false + +# Stereo split [boolean]: true/false +ssplit = false + +# Split sidechain source: 0..5 +# 0: Left/Right +# 1: Right/Left +# 2: Mid/Side +# 3: Side/Mid +# 4: Min +# 5: Max +sscs = 0 + +# Sidechain type: 0..2 +# 0: Feed-forward +# 1: Feed-back +# 2: Link +sct = 0 + +# Sidechain mode: 0..3 +# 0: Peak +# 1: RMS +# 2: LPF +# 3: SMA +scm = 1 + +# Sidechain lookahead [ms]: 0.00000000..20.00000000 +sla = 0.00000 + +# Sidechain listen [boolean]: true/false +scl = false + +# Sidechain source: 0..5 +# 0: Middle +# 1: Side +# 2: Left +# 3: Right +# 4: Min +# 5: Max +scs = 0 + +# Sidechain reactivity [ms]: 0.00000000..250.00000000 +scr = 10.00000 + +# Sidechain preamp [G]: 0.00000000..100.00000000 +scp = 0.00 db + +# High-pass filter mode: 0..3 +# 0: off +# 1: 12 dB/oct +# 2: 24 dB/oct +# 3: 36 dB/oct +shpm = 0 + +# High-pass filter frequency [Hz]: 10.00000000..20000.00000000 +shpf = 10.00000 + +# Low-pass filter mode: 0..3 +# 0: off +# 1: 12 dB/oct +# 2: 24 dB/oct +# 3: 36 dB/oct +slpm = 0 + +# Low-pass filter frequency [Hz]: 10.00000000..20000.00000000 +slpf = 20000.00000 + +# Compression mode: 0..2 +# 0: Down +# 1: Up +# 2: Boot +cm = 0 + +# Attack threshold [G]: 0.00100000..1.00000000 +al = -27.50 db + +# Attack time [ms]: 0.00000000..2000.00000000 +at = 0.00000 + +# Release threshold [G]: 0.00000000..1.00000000 +rrl = -inf db + +# Release time [ms]: 0.00000000..5000.00000000 +rt = 100.00000 + +# Hold time [ms]: 0.00000000..1000.00000000 +hold = 0.00000 + +# Ratio: 1.00000000..100.00000000 +cr = 10.00000 + +# Knee [G]: 0.06310000..1.00000000 +kn = -5.00 db + +# Boost threshold [G]: 0.000001000000..0.001000000047 +bth = -72.0065 db + +# Boost signal amount [G]: 0.000251190009..3981.072998046875 +bsa = 6.0000 db + +# Makeup gain [G]: 0.00100000..1000.00000000 +mk = 0.00 db + +# Dry gain [G]: 0.00000000..10.00000000 +cdr = -inf db + +# Wet gain [G]: 0.00000000..10.00000000 +cwt = 0.00 db + +# Dry/Wet balance [%]: 0.00000000..100.00000000 +cdw = 100.00000 + +# Sidechain level visibility Left [boolean]: true/false +slv_l = true + +# Envelope level visibility Left [boolean]: true/false +elv_l = true + +# Gain reduction visibility Left [boolean]: true/false +grv_l = true + +# Input level visibility Left [boolean]: true/false +ilv_l = true + +# Output level visibility Left [boolean]: true/false +olv_l = true + +# Sidechain level visibility Right [boolean]: true/false +slv_r = true + +# Envelope level visibility Right [boolean]: true/false +elv_r = true + +# Gain reduction visibility Right [boolean]: true/false +grv_r = true + +# Input level visibility Right [boolean]: true/false +ilv_r = true + +# Output level visibility Right [boolean]: true/false +olv_r = true + + +# ------------------------------------------------------------------------------- +# KVT parameters +# ------------------------------------------------------------------------------- + + +# ------------------------------------------------------------------------------- diff --git a/csgo/practice.cfg b/csgo/practice.cfg index fb2f1d9..2cbaca2 100644 --- a/csgo/practice.cfg +++ b/csgo/practice.cfg @@ -1,33 +1,6 @@ sv_cheats true -mp_limitteams 0 -mp_autoteambalance false -mp_roundtime 60 -mp_roundtime_defuse 60 -mp_roundtime_hostage 60 -mp_roundtime 60 mp_maxmoney 60000 mp_startmoney 60000 -mp_freezetime 0 -mp_buytime 9999 mp_buy_anywhere 1 -sv_infinite_ammo 1 -ammo_grenade_limit_total 6 -mp_team_intro_time 0 -bot_kick -mp_warmup_end -mp_respawn_on_death_ct True -mp_respawn_on_death_t True -mp_autokick false - -sv_grenade_trajectory_prac_pipreview true -sv_grenade_trajectory_prac_trailtime 8.000000 -sv_grenade_trajectory_time_spectator 8.000000 -sv_showimpacts 2 -sv_showimpacts_time 5 - -mp_restartgame 1 - -sv_regeneration_force_on true - bind c "sv_rethrow_last_grenade" bind 6 noclip diff --git a/csgo/viewmodel.cfg b/csgo/viewmodel.cfg index 3b965ad..2fbe7d8 100644 --- a/csgo/viewmodel.cfg +++ b/csgo/viewmodel.cfg @@ -1,10 +1,6 @@ -cl_viewmodel_shift_left_amt "0" -cl_viewmodel_shift_right_amt "0" -viewmodel_fov "68.000000" -viewmodel_offset_x 2 +viewmodel_presetpos 0 +viewmodel_offset_x 1.0 viewmodel_offset_y 2 viewmodel_offset_z -1.5 -cl_bob_lower_amt "10" -cl_bobamt_lat "0.4" -cl_bobamt_vert "0.25" -cl_bobcycle "0.980000" +viewmodel_fov 65 +cl_prefer_lefthanded 0 diff --git a/csgo/viewmodel2.cfg b/csgo/viewmodel2.cfg new file mode 100644 index 0000000..a041b09 --- /dev/null +++ b/csgo/viewmodel2.cfg @@ -0,0 +1,6 @@ +viewmodel_presetpos 0 +viewmodel_offset_x -2 +viewmodel_offset_y -2 +viewmodel_offset_z 2 +viewmodel_fov 54 +cl_prefer_lefthanded 0 diff --git a/misc/picom.conf b/misc/picom.conf index 5c1d2b3..ff0ccae 100644 --- a/misc/picom.conf +++ b/misc/picom.conf @@ -102,6 +102,7 @@ shadow-exclude = [ "name *= 'picom'", "class_g = 'Kupfer'", "class_g = 'csgo_linux64'", + "class_g = 'cs2'", "class_g = 'steam_app_11020'", "class_g = 'hl2_linux'", "class_g = 'Synapse'", @@ -148,6 +149,7 @@ fade-delta = 5 # Specify a list of conditions of windows that should not be faded. fade-exclude = [ "class_g = 'csgo_linux64'", + "class_g = 'cs2'", "class_g = 'hl2_linux'", "class_g = 'steam_app_11020'", ] @@ -212,6 +214,7 @@ corner-radius = 12 rounded-corners-exclude = [ "window_type = 'dock'", "class_g = 'csgo_linux64'", + "class_g = 'cs2'", "class_g = 'steam_app_11020'", "class_g = 'hl2_linux'", "class_g = 'Dunst'", @@ -269,6 +272,7 @@ blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'", "class_g = 'csgo_linux64'", + "class_g = 'cs2'", "class_g = 'hl2_linux'", "class_g ^= 'kdeconnectd'", "class_g ^= 'kdeconnect.daemon'", diff --git a/nix/common/packages.nix b/nix/common/packages.nix index a851671..e7dc1bd 100644 --- a/nix/common/packages.nix +++ b/nix/common/packages.nix @@ -64,6 +64,7 @@ x42-plugins xclip xcolor + xdotool yaml-language-server zenity zoxide diff --git a/nix/common/secrets.nix b/nix/common/secrets.nix index 494bfbe..f02bc13 100644 --- a/nix/common/secrets.nix +++ b/nix/common/secrets.nix @@ -10,7 +10,7 @@ file = ../secrets/mpv-secrets.lua.age; path = "${config-vars.home-dir}/.config/mpv/scripts/secrets.lua"; mode = "0400"; - owner = "jayden"; + owner = config-vars.username; group = "users"; }; @@ -18,7 +18,7 @@ file = ../secrets/redshift.conf.age; path = "${config-vars.home-dir}/.config/redshift.conf"; mode = "0400"; - owner = "jayden"; + owner = config-vars.username; group = "users"; }; @@ -26,7 +26,7 @@ file = ../secrets/env.age; path = "${config-vars.home-dir}/.config/ENV"; mode = "0400"; - owner = "jayden"; + owner = config-vars.username; group = "users"; }; @@ -34,7 +34,7 @@ file = ../secrets/ssh-config.age; path = "${config-vars.home-dir}/.ssh/config"; mode = "0400"; - owner = "jayden"; + owner = config-vars.username; group = "users"; }; } diff --git a/nix/flake.lock b/nix/flake.lock index 43c1157..303916b 100644 --- a/nix/flake.lock +++ b/nix/flake.lock @@ -393,11 +393,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1737672001, - "narHash": "sha256-YnHJJ19wqmibLQdUeq9xzE6CjrMA568KN/lFPuSVs4I=", + "lastModified": 1738843498, + "narHash": "sha256-7x+Q4xgFj9UxZZO9aUDCR8h4vyYut4zPUvfj3i+jBHE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "035f8c0853c2977b24ffc4d0a42c74f00b182cd8", + "rev": "f5a32fa27df91dfc4b762671a0e0a859a8a0058f", "type": "github" }, "original": { @@ -409,11 +409,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1737746512, - "narHash": "sha256-nU6AezEX4EuahTO1YopzueAXfjFfmCHylYEFCagduHU=", + "lastModified": 1738961098, + "narHash": "sha256-yWNBf6VDW38tl179FEuJ0qukthVfB02kv+mRsfUsWC0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "825479c345a7f806485b7f00dbe3abb50641b083", + "rev": "a3eaf5e8eca7cab680b964138fb79073704aca75", "type": "github" }, "original": { @@ -432,11 +432,11 @@ ] }, "locked": { - "lastModified": 1730922057, - "narHash": "sha256-yZ+mNq889RZIY3DxrW0F/L3wEeqqyQDfXLY8FG0KvnY=", + "lastModified": 1738462371, + "narHash": "sha256-zVIAiCaXrgGAnEuB9yO8z5Y8jcR2N4N2CCQdkCRXGIg=", "owner": "jayden-chan", "repo": "notifications-dbus-mon", - "rev": "c9cf21088feed87c2890616a8267591b5172bdc6", + "rev": "b8004d3194c047cbdf5b12e8f7e81754c117c9bb", "type": "github" }, "original": { @@ -454,7 +454,6 @@ "notifications-dbus-mon": "notifications-dbus-mon", "sensors-mon": "sensors-mon", "spotify-dbus-mon": "spotify-dbus-mon", - "st": "st", "stylix": "stylix", "zen-browser": "zen-browser" } @@ -468,11 +467,11 @@ ] }, "locked": { - "lastModified": 1735705484, - "narHash": "sha256-kUqNmyP4e7Pa81duORc3Ma8C2b+3rV1CXLt7ZOa0iXQ=", + "lastModified": 1738515057, + "narHash": "sha256-4VSCsnvqUl3jS5qfKFkfLjEwUJt3o24e8mav8mrOQEc=", "owner": "jayden-chan", "repo": "sensors-mon", - "rev": "ecc7c5ed1d4114d41717891f3b27192722fee14b", + "rev": "e5b2b701cebfda1b4ab9c908b6bca3c86f614329", "type": "github" }, "original": { @@ -503,26 +502,6 @@ "type": "github" } }, - "st": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1726601565, - "narHash": "sha256-4qiPuTKbslCnyUzHlNIchSKRLIwcbzcZoUEUN+BWEzk=", - "owner": "jayden-chan", - "repo": "st", - "rev": "1ba11886fee878c92d73bf4f0ffba1a6376868a8", - "type": "github" - }, - "original": { - "owner": "jayden-chan", - "repo": "st", - "type": "github" - } - }, "stylix": { "inputs": { "base16": "base16", @@ -544,11 +523,11 @@ "tinted-tmux": "tinted-tmux" }, "locked": { - "lastModified": 1737834796, - "narHash": "sha256-vAaSMmOZv0fyHeGqpaKRF4eWDcpFMBrELv+iCYkxqIE=", + "lastModified": 1738025311, + "narHash": "sha256-O0iFoytYpSxQdWeggIvrHjU5kmX/SRC9mcah9GbwlHk=", "owner": "danth", "repo": "stylix", - "rev": "a178019e0855f5e0048d994e7bc9337f961b6bc9", + "rev": "70505ba00ff09390b84cf50d52d48ee828727976", "type": "github" }, "original": { @@ -690,11 +669,11 @@ ] }, "locked": { - "lastModified": 1737869730, - "narHash": "sha256-4u/VS7fiqAtnEnm2z7DSNzNyM7sUB+nq3aGKcKBwodg=", + "lastModified": 1739020698, + "narHash": "sha256-Css32HJ8tu/kMJRNP/HP68gkxJmbAYjpLKwQi+FFIFQ=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "39c4c603ee641aed350dce31562ad6dd6f0044d8", + "rev": "8fd70f6fbc28c1c6d3387e256addeb4e5eddd25c", "type": "github" }, "original": { diff --git a/nix/home/mpv/script-all-audio.nix b/nix/home/mpv/script-all-audio.nix index 160a537..eb5b435 100644 --- a/nix/home/mpv/script-all-audio.nix +++ b/nix/home/mpv/script-all-audio.nix @@ -60,7 +60,7 @@ if string.find(input_path, "/Replay_") then activate_all_audio() if string.find(input_path, "_clip") then - mp.set_property("volume", 50) + mp.set_property("volume", 65) mp.set_property("mute", "no") else mp.set_property("volume", 85) @@ -68,6 +68,12 @@ end end + if string.find(input_path, "vlc%-record") then + activate_all_audio() + mp.set_property("volume", 50) + mp.set_property("mute", "no") + end + -- un-mute and disable looping for music files if string.match(input_path, "%.flac$") then mp.set_property("volume", 100) diff --git a/nix/hosts/grace/configuration.nix b/nix/hosts/grace/configuration.nix index 382f462..272773c 100644 --- a/nix/hosts/grace/configuration.nix +++ b/nix/hosts/grace/configuration.nix @@ -106,6 +106,7 @@ in unstable.ansel unstable.caffeine-ng unstable.hugin + unstable.polychromatic unstable.prismlauncher # make the NVIDIA X11 libraries available for gpu-screen-recorder @@ -206,6 +207,15 @@ in enable32Bit = true; }; + hardware.openrazer = { + enable = true; + users = [ config-vars.username ]; + verboseLogging = false; + keyStatistics = false; + devicesOffOnScreensaver = false; + batteryNotifier.enable = false; + }; + services.sunshine = { enable = true; autoStart = false; diff --git a/nix/hosts/grace/home.nix b/nix/hosts/grace/home.nix index 5a8da39..0ec5e60 100644 --- a/nix/hosts/grace/home.nix +++ b/nix/hosts/grace/home.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ lib, config-vars, ... }: let fingerprint = { @@ -38,9 +38,13 @@ in programs.autorandr.profiles."00-main" = { inherit fingerprint; config = main-config; + + hooks.postswitch = '' + killall gpu-screen-recorder + ''; }; - programs.autorandr.profiles."99-stretched" = { + programs.autorandr.profiles."43-stretched" = { inherit fingerprint; config = lib.recursiveUpdate main-config { "DP-0" = { @@ -49,7 +53,8 @@ in }; hooks.postswitch = '' - killall picom + bash ${config-vars.dotfiles-dir}/scripts/gamemode.sh + killall gpu-screen-recorder ''; }; } diff --git a/scripts/gamemode.sh b/scripts/gamemode.sh new file mode 100755 index 0000000..5ac046c --- /dev/null +++ b/scripts/gamemode.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +for id in $(xinput | rg "Razer Razer Viper V3 Pro" | rg "pointer" | rg "id=(\d+)" --color=never --only-matching --replace='$1'); do + xinput --set-prop "$id" 'libinput Accel Speed' -0.55 +done + +for id in $(xinput | rg "Razer Razer Viper V2 Pro" | rg "pointer" | rg "id=(\d+)" --color=never --only-matching --replace='$1'); do + xinput --set-prop "$id" 'libinput Accel Speed' -0.55 +done + +polychromatic-cli --name "Razer Viper V2 Pro (Wireless)" --dpi 1600 +polychromatic-cli --name "Razer Viper V2 Pro (Wireless)" --option poll_rate --parameter 1000 +polychromatic-cli --name "Razer Viper V3 Pro (Wireless)" --dpi 1600 +polychromatic-cli --name "Razer Viper V3 Pro (Wireless)" --option poll_rate --parameter 1000 + +if [ "$1" = "--mouse-only" ]; then + exit 0 +fi + +killall picom +"$DOT/scripts/liquidctl.sh" 4 diff --git a/zsh/functions.zsh b/zsh/functions.zsh index a517c3b..5492044 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -44,7 +44,7 @@ function shadowplay () { -f 60 \ -fm vfr \ -k av1 \ - -q high \ + -q very_high \ -r 200 \ -v yes \ -w DP-0 \