1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: remove picom again. makes everything slow :(

This commit is contained in:
oddlama 2023-10-01 14:03:42 +02:00
parent 61af9f62a5
commit 954d659264
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 2 additions and 29 deletions

View file

@ -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.
# ./sway.nix
./i3.nix
./picom.nix
]
++ lib.optionals nixosConfig.graphical.gaming.enable [
./games/bottles.nix

View file

@ -59,7 +59,7 @@ in {
out="/tmp/screenshots.$UID/$(date +"%Y-%m-%dT%H:%M:%S%:z")-selection.png"
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...")
${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

View file

@ -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;
};
};
}