From d1551afbc7151af72fdb2135c49c55e7c84d5022 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 25 Feb 2024 00:09:17 +0300 Subject: [PATCH] Mangohud : Move config to nix. --- .config/MangoHud/MangoHud.conf | 33 ------------------- .config/MangoHud/presets.conf | 23 ------------- .config/docker/config.json | 3 -- .../system/module/common/Environment.nix | 2 +- .config/linux/system/module/common/Nvim.nix | 32 +++++++++--------- .gitignore | 10 +----- 6 files changed, 18 insertions(+), 85 deletions(-) delete mode 100644 .config/MangoHud/MangoHud.conf delete mode 100644 .config/MangoHud/presets.conf delete mode 100644 .config/docker/config.json diff --git a/.config/MangoHud/MangoHud.conf b/.config/MangoHud/MangoHud.conf deleted file mode 100644 index 6fc0a85..0000000 --- a/.config/MangoHud/MangoHud.conf +++ /dev/null @@ -1,33 +0,0 @@ -### Config. - -no_display=0 -# hud_compact=1 -hud_no_margin=1 -font_size=12 -toggle_hud=F1 -fps_sampling_period=1000 -# toggle_preset=Shitf_L+F1 -# preset=5,6 - -### Graphics. - -fps_limit=165 -fps_limit_method=early -af=16 -vsync=3 -gl_vsync=1 - -### NOTE: temporary while presets do not work in flatpak. -throttling_status=1 -cpu_temp=1 -gpu_temp=1 -gpu_junction_temp=1 -device_battery=gamepad,mouse -frame_timing=0 -benchmark_percentiles=0 -battery=1 -battery_time=1 -time=1 -ram=1 -vram=1 -swap=1 diff --git a/.config/MangoHud/presets.conf b/.config/MangoHud/presets.conf deleted file mode 100644 index df63084..0000000 --- a/.config/MangoHud/presets.conf +++ /dev/null @@ -1,23 +0,0 @@ -[preset 5] -throttling_status=1 -cpu_temp=1 -gpu_temp=1 -gpu_junction_temp=1 -device_battery=gamepad,mouse -frame_timing=0 -benchmark_percentiles=0 -battery=1 -battery_time=1 -time=1 -ram=1 -vram=1 -swap=1 - -[preset 6] -cpu_temp=1 -gpu_temp=1 -device_battery=gamepad,mouse -frame_timing=0 -benchmark_percentiles=0 -battery=1 -battery_time=1 diff --git a/.config/docker/config.json b/.config/docker/config.json deleted file mode 100644 index b118ac1..0000000 --- a/.config/docker/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "detachKeys": "ctrl-z" -} diff --git a/.config/linux/system/module/common/Environment.nix b/.config/linux/system/module/common/Environment.nix index 40da499..103d1e2 100644 --- a/.config/linux/system/module/common/Environment.nix +++ b/.config/linux/system/module/common/Environment.nix @@ -7,6 +7,6 @@ # Mangohud. MANGOHUD = "true"; - MANGOHUD_CONFIGFILE = "~/.config/MangoHud/MangoHud.conf"; + MANGOHUD_CONFIG = "no_display=0,hud_no_margin=1,font_size=12,toggle_hud=F1,fps_sampling_period=1000,fps_limit=165,fps_limit_method=early,af=16,vsync=3,gl_vsync=,,throttling_status=1,cpu_temp=1,gpu_temp=1,gpu_junction_temp=1,device_battery=gamepad,mouse,frame_timing=0,benchmark_percentiles=0,battery=1,battery_time=1,time=1,ram=1,vram=1,swap=1"; }; } diff --git a/.config/linux/system/module/common/Nvim.nix b/.config/linux/system/module/common/Nvim.nix index c95666b..9854e6b 100644 --- a/.config/linux/system/module/common/Nvim.nix +++ b/.config/linux/system/module/common/Nvim.nix @@ -11,22 +11,6 @@ in { customRC = '' lua dofile("${nvimSrc}/key/Rekey.lua") lua dofile("${nvimSrc}/key/Leader.lua") - lua dofile("${nvimSrc}/key/Autocomplete.lua") - lua dofile("${nvimSrc}/key/Buffer.lua") - lua dofile("${nvimSrc}/key/Comment.lua") - lua dofile("${nvimSrc}/key/Common.lua") - lua dofile("${nvimSrc}/key/Filetree.lua") - lua dofile("${nvimSrc}/key/Fold.lua") - lua dofile("${nvimSrc}/key/Gitsigns.lua") - lua dofile("${nvimSrc}/key/Lsp.lua") - lua dofile("${nvimSrc}/key/Navigation.lua") - lua dofile("${nvimSrc}/key/Sort.lua") - lua dofile("${nvimSrc}/key/Telescope.lua") - lua dofile("${nvimSrc}/key/Terminal.lua") - lua dofile("${nvimSrc}/key/Todo.lua") - lua dofile("${nvimSrc}/key/Trouble.lua") - lua dofile("${nvimSrc}/key/Update.lua") - lua dofile("${nvimSrc}/key/Whichkey.lua") lua dofile("${nvimSrc}/config/Autoread.lua") lua dofile("${nvimSrc}/config/Etc.lua") lua dofile("${nvimSrc}/config/Search.lua") @@ -49,6 +33,22 @@ in { lua dofile("${nvimSrc}/plugin/Align.lua") lua dofile("${nvimSrc}/plugin/Treesitter.lua") lua dofile("${nvimSrc}/plugin/Fold.lua") + lua dofile("${nvimSrc}/key/Autocomplete.lua") + lua dofile("${nvimSrc}/key/Buffer.lua") + lua dofile("${nvimSrc}/key/Comment.lua") + lua dofile("${nvimSrc}/key/Common.lua") + lua dofile("${nvimSrc}/key/Filetree.lua") + lua dofile("${nvimSrc}/key/Fold.lua") + lua dofile("${nvimSrc}/key/Gitsigns.lua") + lua dofile("${nvimSrc}/key/Lsp.lua") + lua dofile("${nvimSrc}/key/Navigation.lua") + lua dofile("${nvimSrc}/key/Sort.lua") + lua dofile("${nvimSrc}/key/Telescope.lua") + lua dofile("${nvimSrc}/key/Terminal.lua") + lua dofile("${nvimSrc}/key/Todo.lua") + lua dofile("${nvimSrc}/key/Trouble.lua") + lua dofile("${nvimSrc}/key/Update.lua") + lua dofile("${nvimSrc}/key/Whichkey.lua") ''; }; }; diff --git a/.gitignore b/.gitignore index 9e1ac54..3360c7c 100644 --- a/.gitignore +++ b/.gitignore @@ -58,10 +58,6 @@ !/.config/linux/ !/.config/linux/** -# MangoHud config. -!/.config/MangoHud/ -!/.config/MangoHud/** - # Nix. !/.config/nix/ !/.config/nix/** @@ -80,15 +76,11 @@ # Htop settings. !/.config/htop/ -!/.config/htop/** +!/.config/htop/htoprc # User dirs. !/.config/user-dirs.dirs -# Ssh. -!/.ssh/ -/.ssh/** - # Local configs. !/.local/ /.local/*