From 05523a806aaf27beabd9913d82d01d3b8eb3c644 Mon Sep 17 00:00:00 2001 From: Jade Date: Fri, 12 May 2023 16:24:22 +0200 Subject: [PATCH] i don't even know anymore lmao --- common.nix | 3 +-- hosts/monosodium-glutamate-g/configuration.nix | 3 +++ modules/neovim.nix | 1 + other/scripts/desktop/ocr-screenshot.sh | 5 +++-- 4 files changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 other/scripts/desktop/ocr-screenshot.sh diff --git a/common.nix b/common.nix index 7ff46c6..ce98932 100644 --- a/common.nix +++ b/common.nix @@ -68,8 +68,7 @@ with builtins; #}; #security.sudo.extraConfig = "Defaults insults"; - - + boot.kernel.sysctl.vm.max_map_count = 2147483642; hardware.opengl.enable = true; diff --git a/hosts/monosodium-glutamate-g/configuration.nix b/hosts/monosodium-glutamate-g/configuration.nix index 9f18ec1..620a6a4 100644 --- a/hosts/monosodium-glutamate-g/configuration.nix +++ b/hosts/monosodium-glutamate-g/configuration.nix @@ -64,6 +64,8 @@ #} #]; + boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + programs.corectrl.enable = true; networking.hostName = "monosodium-glutamate-g"; @@ -88,6 +90,7 @@ nvtop-amd radeontop rgp + tea ]; programs.wireshark.enable = true; diff --git a/modules/neovim.nix b/modules/neovim.nix index c1eb155..f91bb3c 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -13,6 +13,7 @@ in with lib; { ]; programs.neovim = { enable = true; + defaultEditor = true; viAlias = true; vimAlias = true; vimdiffAlias = true; diff --git a/other/scripts/desktop/ocr-screenshot.sh b/other/scripts/desktop/ocr-screenshot.sh old mode 100644 new mode 100755 index cd5b4fe..6cf3da8 --- a/other/scripts/desktop/ocr-screenshot.sh +++ b/other/scripts/desktop/ocr-screenshot.sh @@ -20,7 +20,8 @@ case $selection_menu1 in ;; esac -tesseract $tmp_img.png $tmp_img &> /dev/null -xclip -i $tmp_img.txt -selection clipboard +tesseract $tmp_img.png $tmp_img +cat $tmp_img +xclip -i $tmp_img -selection clipboard exit