ayy
This commit is contained in:
@@ -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_}`}"`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user