forked from mirrors_public/oddlama_nix-config
chore: remove picom again. makes everything slow :(
This commit is contained in:
parent
61af9f62a5
commit
954d659264
4 changed files with 2 additions and 29 deletions
|
@ -6,14 +6,7 @@
|
||||||
}:
|
}:
|
||||||
lib.optionalAttrs (!minimal) {
|
lib.optionalAttrs (!minimal) {
|
||||||
boot.blacklistedKernelModules = ["nouveau"];
|
boot.blacklistedKernelModules = ["nouveau"];
|
||||||
services.xserver = {
|
services.xserver.videoDrivers = lib.mkForce ["nvidia"];
|
||||||
videoDrivers = lib.mkForce ["nvidia"];
|
|
||||||
screenSection = ''
|
|
||||||
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
|
|
||||||
Option "AllowIndirectGLXProtocol" "off"
|
|
||||||
Option "TripleBuffer" "on"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia = {
|
nvidia = {
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
# XXX: retest this in the future. Problems were flickering under gles, black screens and refresh issues under vulkan, black wine windows.
|
# XXX: retest this in the future. Problems were flickering under gles, black screens and refresh issues under vulkan, black wine windows.
|
||||||
# ./sway.nix
|
# ./sway.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
./picom.nix
|
|
||||||
]
|
]
|
||||||
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
++ lib.optionals nixosConfig.graphical.gaming.enable [
|
||||||
./games/bottles.nix
|
./games/bottles.nix
|
||||||
|
|
|
@ -59,7 +59,7 @@ in {
|
||||||
out="/tmp/screenshots.$UID/$(date +"%Y-%m-%dT%H:%M:%S%:z")-selection.png"
|
out="/tmp/screenshots.$UID/$(date +"%Y-%m-%dT%H:%M:%S%:z")-selection.png"
|
||||||
mkdir -p "$(dirname "$out")"
|
mkdir -p "$(dirname "$out")"
|
||||||
|
|
||||||
${pkgs.maim}/bin/maim --color=.4,.7,1 --bordersize=1.0 --nodecorations=1 --hidecursor --format=png --quality=10 --noopengl --select "$out"
|
${pkgs.maim}/bin/maim --color=.4,.7,1,0.2 --bordersize=1.0 --nodecorations=1 --hidecursor --format=png --quality=10 --noopengl --select "$out"
|
||||||
notification_id=$(${pkgs.libnotify}/bin/notify-send --icon="$out" --print-id --app-name "screenshot-area" "Screenshot Captured" "📋 copied to clipboard\n⌛ Running OCR...")
|
notification_id=$(${pkgs.libnotify}/bin/notify-send --icon="$out" --print-id --app-name "screenshot-area" "Screenshot Captured" "📋 copied to clipboard\n⌛ Running OCR...")
|
||||||
${pkgs.xclip}/bin/xclip -selection clipboard -t image/png < "$out"
|
${pkgs.xclip}/bin/xclip -selection clipboard -t image/png < "$out"
|
||||||
if ${pkgs.tesseract}/bin/tesseract "$out" - -l eng+deu | ${pkgs.xclip}/bin/xclip -selection primary; then
|
if ${pkgs.tesseract}/bin/tesseract "$out" - -l eng+deu | ${pkgs.xclip}/bin/xclip -selection primary; then
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
{pkgs, ...}: {
|
|
||||||
services.picom = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.picom-next;
|
|
||||||
backend = "glx";
|
|
||||||
# XXX: switch to backend = "xrender"; if glx causes issues
|
|
||||||
settings = {
|
|
||||||
# Unredirect all windows if a full-screen opaque window is detected, to
|
|
||||||
# maximize performance for full-screen windows. Known to cause
|
|
||||||
# flickering when redirecting/unredirecting windows.
|
|
||||||
unredir-if-possible = true;
|
|
||||||
|
|
||||||
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
|
||||||
# calls are finished before picom starts drawing. Needed on
|
|
||||||
# nvidia-drivers with GLX backend for some users.
|
|
||||||
xrender-sync-fence = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue