prep for new pc

This commit is contained in:
2025-07-25 21:57:25 +03:00
parent b259da57aa
commit 01072668d8
14 changed files with 304 additions and 245 deletions

View File

@@ -1,6 +1,6 @@
import { $ } from "bun";
import { Command } from "commander";
import sharp from "sharp";
// import sharp from "sharp";
import { writeFileSync } from "fs";
import { getRegretevatorState } from "../lib/RegretevatorUtil";
@@ -74,6 +74,7 @@ const SCREENSHOT_PATH = `/home/ocbwoy3/Pictures/Screenshots`;
// useless
async function transformImage(b: Buffer): Promise<Buffer> {
/*
const image = sharp(b).ensureAlpha();
const { width, height } = await image.metadata();
@@ -103,6 +104,8 @@ async function transformImage(b: Buffer): Promise<Buffer> {
.ensureAlpha();
return (await maskedImage.png().toBuffer()) as Buffer;
*/
return b
}
(() => {

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# do NOT use $PATH for this!!
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts fullscreen)

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# do NOT use $PATH for this!!
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts selection)