my bpd is killing me again
This commit is contained in:
@@ -53,10 +53,10 @@ const debug: boolean = false as false | true;
|
||||
|
||||
if (debug === true) {
|
||||
splashes.forEach(async (a) => {
|
||||
execSync(`notify-send "Sveicināti Hyprland!" "${a}"`);
|
||||
execSync(`notify-send "Welcome to Hyprland!" "${a}"`);
|
||||
});
|
||||
} else {
|
||||
const randomSplash = chooseRandom(splashes);
|
||||
|
||||
execSync(`notify-send "Sveicināti Hyprland!" "${randomSplash}"`);
|
||||
execSync(`notify-send "Welcome to Hyprland!" "${randomSplash}"`);
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ try {
|
||||
const url = await UploadToEZ(readFileSync(filePath));
|
||||
|
||||
execSync(`echo "${url}" | wl-copy -n`);
|
||||
execSync(`notify-send "Ekrānuzņēmums" "Augšuplādēts e-z.host ${Date.now() - start}ms"`);
|
||||
execSync(`notify-send "Screenshot" "Uploaded to e-z.host in ${Date.now() - start}ms"`);
|
||||
} catch (e_) {
|
||||
execSync(`notify-send "Kļūda" "${`${e_}`}"`);
|
||||
execSync(`notify-send "Error" "${`${e_}`}"`);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 "Kļūda" "Nevar atrast failu!"
|
||||
notify-send -u critical -t 3 "Error" "Can't find the damn file :("
|
||||
fi
|
||||
|
||||
@@ -7,5 +7,5 @@ echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send "Ekrānuzņēmums" "Attēls nokopēts starpliktuvē!"
|
||||
notify-send "Screenshot" "Fullscreen copied to clipboard!"
|
||||
fi
|
||||
|
||||
@@ -7,5 +7,5 @@ echo "$SS_PATH"
|
||||
|
||||
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
|
||||
wl-copy < "$SS_PATH"
|
||||
notify-send "Ekrānuzņēmums" "Attēls nokopēts starpliktuvē!"
|
||||
notify-send "Screenshot" "Selection copied to clipboard!"
|
||||
fi
|
||||
|
||||
@@ -3,4 +3,4 @@ KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
|
||||
# hyprctl switchxkblayout semico--usb-gaming-keyboard- next
|
||||
|
||||
hyprctl switchxkblayout current next
|
||||
notify-send -u low "Tastatūra" "Valoda mainīta!"
|
||||
notify-send -u low "Keyboard" "Language changed"
|
||||
|
||||
Reference in New Issue
Block a user