fix nvenc

This commit is contained in:
2025-06-16 13:09:34 +03:00
parent 0fdc141066
commit a607fb3ed2
7 changed files with 40 additions and 56 deletions

View File

@@ -9,7 +9,7 @@
}, },
"mpris": { "mpris": {
"player": ["cider", "OCbwoy3_s_iPhone"], "player": "cider", // ["cider", "OCbwoy3_s_iPhone"],
"interval": 1, "interval": 1,
"on-scroll-up": "playerctl -p cider,OCbwoy3_s_iPhone volume 0.05+", "on-scroll-up": "playerctl -p cider,OCbwoy3_s_iPhone volume 0.05+",
"on-scroll-down": "playerctl -p cider,OCbwoy3_s_iPhone volume 0.05-", "on-scroll-down": "playerctl -p cider,OCbwoy3_s_iPhone volume 0.05-",

View File

@@ -330,6 +330,9 @@
programs.obs-studio = { programs.obs-studio = {
enable = true; enable = true;
package = (pkgs.obs-studio.override {
cudaSupport = true;
});
plugins = with pkgs.obs-studio-plugins; [ plugins = with pkgs.obs-studio-plugins; [
wlrobs wlrobs
obs-backgroundremoval obs-backgroundremoval

View File

@@ -30,6 +30,8 @@
EGL_PLATFORM = "wayland"; EGL_PLATFORM = "wayland";
}; };
# obs moment
# nixpkgs.config.cudaSupport = true;
hardware.graphics = { # hardware.graphics since NixOS 24.11 hardware.graphics = { # hardware.graphics since NixOS 24.11
enable = true; enable = true;

View File

@@ -16,8 +16,8 @@ const isLatvian = Intl.DateTimeFormat()
.timeZone.startsWith("Europe/Riga"); .timeZone.startsWith("Europe/Riga");
function getOrdinalSuffix(day: number): string { function getOrdinalSuffix(day: number): string {
const j = day % 10, const j = day % 10;
k = day % 100; const k = day % 100;
if (j === 1 && k !== 11) return "st"; if (j === 1 && k !== 11) return "st";
if (j === 2 && k !== 12) return "nd"; if (j === 2 && k !== 12) return "nd";
if (j === 3 && k !== 13) return "rd"; if (j === 3 && k !== 13) return "rd";
@@ -38,62 +38,14 @@ function chooseRandom(array: string[]): string {
const splashes = [ const splashes = [
"Keep on ricing yo' Hyprland", "Keep on ricing yo' Hyprland...",
"Let's make today even better!",
"\"iUseNixBTW\" You literally... Roblox?",
"is it just me or the arch/nix pipeline turned me into a closeted femboy?",
"the nix pipeline is real",
"Anti-OCbwoy3-ifier MV2 Premium.xpi",
"Do crabs think fish are flying?",
"Don't forget to water your thoughts.",
"Fox detected. Please pet gently.",
// Venting ones
"mount /dev/boyfriend ~",
isLatvian
? "Latvia.. I hate it here, I wanna move." /* extremely accurate unbiased content coming from a latvian himself */
: "NOT going back Latvia.",
"rm -rf ~",
// Minecraft (DEI ones)
"Amplify and listen to BIPOC voices!",
"Support the BIPOC community and creators!",
"Contains infinite genders!", "Contains infinite genders!",
"Remember to use gender neutral pronouns!",
"You are valid!", "You are valid!",
"I'm glad you're here!",
"You are welcome here!",
"Your gender is valid!",
// Regretevator ones
"dr! ar u sure i cant drink 20 blogsy's??",
"That subway wuz so dark! Can't have a party withowt silly litez!",
"Blogsy is so AWESOME!", "Blogsy is so AWESOME!",
"My life is liek a video game i think", "I love Blogsy!",
"Whats yer favorite type o wood?", "Whats yer favorite type o wood?",
"Everybody knows th best kind o buildin is made outta grit and woodwork!",
// Me IRL
"tfw Hyprland boots faster than I do",
"everyone gangsta till your free trial of life ends",
// Reality
"flake 'flake:self' does not provide attribute 'willpower'",
"copilot stop writing my thoughts",
"404: purpose not found",
"respawn button greyed out",
"youve reached the end of the existential demo",
"feeling like an empty JSON object"
]; ];
const debug: boolean = false as false | true; const debug: boolean = false as false | true;

View File

@@ -16,13 +16,13 @@ import { getRegretevatorState } from "../lib/RegretevatorUtil";
[BloxstrapRPC] {"command":"SetRichPresence","data":{"details":"REGRETEVATOR","smallImage":{"hoverText":"The Axolotl Sun","assetId":14648053922},"state":"","largeImage":{"hoverText":"THE REGRET ELEVATOR"}}} [BloxstrapRPC] {"command":"SetRichPresence","data":{"details":"REGRETEVATOR","smallImage":{"hoverText":"The Axolotl Sun","assetId":14648053922},"state":"","largeImage":{"hoverText":"THE REGRET ELEVATOR"}}}
IsIngame | details === "REGRETEVATOR"; smallImage?.hoverText === "The Axolotl Sun"; InGame | details === "REGRETEVATOR"; smallImage?.hoverText === "The Axolotl Sun";
==== ====
[BloxstrapRPC] {"command":"SetRichPresence","data":{"state":"Lounging in the lobby","timeStart":0,"timeEnd":0}} [BloxstrapRPC] {"command":"SetRichPresence","data":{"state":"Lounging in the lobby","timeStart":0,"timeEnd":0}}
IsIngame[Lobby] | state === "Lounging in the lobby"; InGame[Lobby] | state === "Lounging in the lobby";
==== ====

27
scripts/bin/musicTest.ts Normal file
View File

@@ -0,0 +1,27 @@
import { $ } from "bun";
import { setConsoleTitle } from "@ocbwoy3/libocbwoy3";
import { existsSync, readFileSync, writeFileSync } from "fs";
setConsoleTitle("Music Test");
try {
const artUrl = await $`playerctl -s -p cider,OCbwoy3_s_iPhone metadata mpris:artUrl`.text();
const title = await $`playerctl -s -p cider,OCbwoy3_s_iPhone metadata title`.text();
const artist = await $`playerctl -s -p cider,OCbwoy3_s_iPhone metadata artist`.text();
const album = await $`playerctl -s -p cider,OCbwoy3_s_iPhone metadata album`.text();
const MT = `${artist.trim()},${album.trim()}`;
if (!existsSync("/tmp/.musictest-info") || readFileSync("/tmp/.musictest-info").toString("utf-8") !== MT) {
writeFileSync("/tmp/.musictest-info",MT)
const x = await fetch(artUrl.trim())
writeFileSync("/tmp/.musictest",await x.bytes())
}
$`notify-send ${title.trim()} ${artist.trim()} -i /tmp/.musictest`.nothrow().catch(a => { });
} catch (e_) {
console.error(e_)
$`notify-send "music test" "lol"`.nothrow().catch(a => { });
}

View File

@@ -55,7 +55,7 @@ try {
} catch (e_) { } catch (e_) {
const cx = `${e_}`.toLowerCase(); const cx = `${e_}`.toLowerCase();
if (cx.includes("enable r2") && cx.includes("cloudflare dashboard")) { if (cx.includes("enable r2") && cx.includes("cloudflare dashboard")) {
$`notify-send "Cloudflare" "You owe Cloudflare money!! >:(<br/><small>${`${e_}`}</small>"`.nothrow().catch(a => { }); $`notify-send "Screenshot" "YOU OWE CLOUDFLARE MONEY!!!!"`.nothrow().catch(a => { });
process.exit(0); process.exit(0);
} }
$`notify-send "Screenshot" "${`${e_}`}"`.nothrow().catch(a => { }); $`notify-send "Screenshot" "${`${e_}`}"`.nothrow().catch(a => { });