This commit is contained in:
2026-03-27 23:14:29 +02:00
parent 08fd0ea72c
commit 15bc9617a4
46 changed files with 868 additions and 587 deletions

View File

@@ -50,9 +50,10 @@ import { getRegretevatorState } from "../lib/RegretevatorUtil";
const windowClassFriendyName: { [windowClass: string]: string } = {
steam_app_1671210: "Deltarune",
"deltarune.exe": "Deltarune", // deltarune with proton-cachyos/proton-cachyos-slr + PROTON_ENABLE_WAYLAND=1
"deltarune.exe": "Deltarune", // <-- proton-cachyos
steam_app_1690940: "Deltarune", // <-- demo
"org.vinegarhq.Sober": "Roblox",
steam_app_1690940: "Deltarune", // demo
};
async function getWMClass(): Promise<string> {
@@ -86,7 +87,7 @@ async function getFilename(wmClass?: string): Promise<string> {
const program = new Command("handle-screenshot");
const SCREENSHOT_PATH = `/home/ralsei/Pictures/Screenshots`;
const SCREENSHOT_PATH = `/home/kris/Pictures/Screenshots`;
// useless
async function transformImage(b: Buffer): Promise<Buffer> {

View File

@@ -6,13 +6,13 @@ setConsoleTitle("Music Test");
try {
const artUrl =
await $`playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata mpris:artUrl`.text();
await $`playerctl -s -p cider,chromium,Kris___s_iPhone metadata mpris:artUrl`.text();
const title =
await $`playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata title`.text();
await $`playerctl -s -p cider,chromium,Kris___s_iPhone metadata title`.text();
const artist =
await $`playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata artist`.text();
await $`playerctl -s -p cider,chromium,Kris___s_iPhone metadata artist`.text();
const album =
await $`playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata album`.text();
await $`playerctl -s -p cider,chromium,Kris___s_iPhone metadata album`.text();
const MT = `${artist.trim()},${album.trim()}`;
@@ -28,8 +28,8 @@ try {
$`notify-send ${title.trim()} ${artist.trim()} -i /tmp/.musictest`
.nothrow()
.catch((a) => {});
.catch((a) => { });
} catch (e_) {
console.error(e_);
$`notify-send "music test" "lol"`.nothrow().catch((a) => {});
$`notify-send "music test" "lol"`.nothrow().catch((a) => { });
}

View File

@@ -11,9 +11,9 @@ setConsoleTitle("Screenshot Uploader");
try {
const start = Date.now();
$`notify-send -t 1000 "Screenshot" "Uploading.."`
$`notify-send -a dotfiles-screenshot -t 1000 "Screenshot" "Uploading.."`
.nothrow()
.catch((a) => {});
.catch((a) => { });
configDotenv({
path: `${homedir()}/.ocbwoy3-dotfiles-SECRET-DO-NOT-TOUCH.env`,
});
@@ -34,8 +34,8 @@ try {
execSync(`echo "${url}" | wl-copy -n`);
execSync(
`notify-send "Ekrānuzņēmums" "Attēls augšuplādēts e-z.host ${Date.now() - start}ms"`,
`notify-send -a dotfiles-screenshot "Screenshot" "Uploaded to e-z.host in ${Date.now() - start}ms"`,
);
} catch (e_) {
execSync(`notify-send "Error" "${`${e_}`}"`);
execSync(`notify-send -a dotfiles-screenshot "Error" "${`${e_}`}"`);
}