ayy
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -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) => { });
|
||||
}
|
||||
|
||||
@@ -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_}`}"`);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
hyprctl notify 1 5000 0 " Loading OCbwoy3's Dotfiles"
|
||||
|
||||
# Dotfiles
|
||||
notify-send "Sveicināti Hyprland!" "some basic startup code"
|
||||
notify-send "Welcome to Hyprland!" "some basic startup code"
|
||||
notify-send "Hyprland" "Enabled debugging overlay"
|
||||
notify-send "OCbwoy3's Dotfiles" "Keyboard Layout: English"
|
||||
notify-send "Screenshot" "Saved and copied to clipboard."
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOTFILES_DIR="/home/ralsei/config/config"
|
||||
DOTFILES_DIR="/etc/nixos/config"
|
||||
|
||||
# fastfetch
|
||||
ln -sfn "${DOTFILES_DIR}/fastfetch" "${HOME}/.config/fastfetch"
|
||||
@@ -29,4 +29,6 @@ ln -sfn "${DOTFILES_DIR}/wofi" "${HOME}/.config/wofi"
|
||||
# dotfile font
|
||||
ln -sfn "${DOTFILES_DIR}/dotfile_deps/DotfilesFont.otf" "${HOME}/.local/share/fonts/DotfilesFont.otf"
|
||||
|
||||
ln -sfn "${DOTFILES_DIR}/kitty" "${HOME}/.config/kitty
|
||||
|
||||
echo "symlinked this that"
|
||||
|
||||
@@ -7,5 +7,5 @@ LAST_SCREENSHOT=$(ls -t "$SCREENSHOTS_DIR" | head -n 1)
|
||||
if [[ -n "$LAST_SCREENSHOT" ]]; then
|
||||
swappy -f "$SCREENSHOTS_DIR/$LAST_SCREENSHOT" -o "$SCREENSHOTS_DIR/$LAST_SCREENSHOT"
|
||||
else
|
||||
notify-send -u critical -t 3 "Error" "Can't find the damn file :("
|
||||
notify-send -a dotfiles-screenshot -u critical -t 3 "Error" "Can't find the damn file :("
|
||||
fi
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
pkill -9 waybar > /dev/null
|
||||
|
||||
hyprctl dispatch exec "GTK_THEME=Adwaita waybar -c ~/config/config/waybar/config -s ~/config/config/waybar/style.css" > /dev/null &
|
||||
# hyprctl dispatch exec "GTK_THEME=Adwaita waybar -c ~/config/config/waybar/config -s ~/config/config/waybar/style.css" > /dev/null &
|
||||
hyprctl reload > /dev/null &
|
||||
|
||||
ROBLOX_PID="$(pidof sober)"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { existsSync, readFileSync } from "fs";
|
||||
|
||||
// removed in tuxstrap v2
|
||||
const STATE_FILE_PATH = "/tmp/.regretevator_state";
|
||||
|
||||
type DeadUnknownState = { state: "DEAD" | "UNKNOWN" };
|
||||
@@ -14,6 +15,8 @@ export type RegretevatorState = DeadUnknownState | InElevatorState;
|
||||
|
||||
/*
|
||||
|
||||
when using dotfilesfont, `ý` is replaced with the regretevator icon
|
||||
|
||||
➜ config git:(main) ✗ cat /tmp/.regretevator_state
|
||||
{"text":"ý 82","tooltip":"On Floor 82"}
|
||||
➜ config git:(main) ✗ cat /tmp/.regretevator_state
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# do NOT use $PATH for this!!
|
||||
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts fullscreen)
|
||||
SS_PATH=$(timeout 30s bun run /etc/nixos/scripts/bin/handleScreenshot.ts fullscreen)
|
||||
|
||||
echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ralsei/Pictures/Screenshots/* ]]; then
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/kris/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send -i "$SS_PATH" "Ekrānuzņēmums" "nokopēts starpliktuvē!"
|
||||
notify-send -i "$SS_PATH" "Screenshot" "copied to clipboard!"
|
||||
fi
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# do NOT use $PATH for this!!
|
||||
SS_PATH=$(timeout 30s bun run ~/config/scripts/bin/handleScreenshot.ts selection)
|
||||
SS_PATH=$(timeout 30s bun run /etc/nixos/scripts/bin/handleScreenshot.ts selection)
|
||||
|
||||
echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ralsei/Pictures/Screenshots/* ]]; then
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/kris/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send -i "$SS_PATH" "Ekrānuzņēmums" "nokopēts starpliktuvē!"
|
||||
notify-send -a dotfiles-screenshot -i "$SS_PATH" "Screenshot" "selection copied to clipboard!"
|
||||
fi
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# hyprctl switchxkblayout semico--usb-gaming-keyboard- next
|
||||
|
||||
hyprctl switchxkblayout current next
|
||||
notify-send -u low "Tastatūra" "Valoda mainīta"
|
||||
notify-send -r 13 "Keyboard" "Language changed!"
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
function _sanitize {
|
||||
sed -r "s/(^[ ]*)|([ ]*$)//g" | sed -r 's/\&/\&/g' | sed -r 's/\"/\"/g' | sed -r "s/'/\'/g"
|
||||
sed -r "s/(^[ ]*)|([ ]*$)//g" | sed -r 's/\&/\&/g' | sed -r 's/\"/\"/g' | sed -r "s/'/\'/g"
|
||||
}
|
||||
|
||||
# {{artist}} — {{title}}
|
||||
|
||||
SONGNAME="$( playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata -f "{{artist}} — {{title}}" | _sanitize )"
|
||||
ALBUMNAME="$( playerctl -s -p cider,chromium,OCbwoy3_s_iPhone metadata album | _sanitize )"
|
||||
SONGNAME="$( playerctl -s -p cider,chromium,Kris___s_iPhone metadata -f "{{artist}} — {{title}}" | _sanitize )"
|
||||
ALBUMNAME="$( playerctl -s -p cider,chromium,Kris___s_iPhone metadata album | _sanitize )"
|
||||
|
||||
if [ ${#SONGNAME} -gt 0 ] ; then
|
||||
printf "{\"text\": \" $SONGNAME\", \"tooltip\": \"$ALBUMNAME\", \"class\":\"music\" }"
|
||||
printf "{\"text\": \" $SONGNAME\", \"tooltip\": \"$ALBUMNAME\", \"class\":\"music\" }"
|
||||
else
|
||||
printf "{\"text\": \"\", \"tooltip\": \" \", \"class\":\"invisible\" }"
|
||||
printf "{\"text\": \"\", \"tooltip\": \" \", \"class\":\"invisible\" }"
|
||||
fi
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
# bun run ~/config/scripts/bin/actWithMusic.ts notif $@
|
||||
exec ~/config/scripts/bin/ocbwoy3-actwithmus notif $@
|
||||
# bun run /etc/nixos/scripts/bin/actWithMusic.ts notif "$@"
|
||||
exec /etc/nixos/scripts/bin/ocbwoy3-actwithmus notif "$@"
|
||||
|
||||
Reference in New Issue
Block a user