in latvian!!!!

This commit is contained in:
2025-06-23 15:53:06 +03:00
parent 2afeeb829e
commit aced665fbe
13 changed files with 45 additions and 32 deletions

View File

@@ -30,8 +30,8 @@ try {
const url = await UploadToEZ(readFileSync(filePath));
$`echo "${url}" | wl-copy -n`.nothrow().catch(a => { });
$`notify-send "Screenshot" "Uploaded to e-z.host in ${Date.now() - start}ms, URL copied to clipboard"`.nothrow().catch(a => { });
$`notify-send "Ekrānuzņēmums" "Augšuplādēts e-z.host ${Date.now() - start}ms"`.nothrow().catch(a => { });
} catch (e_) {
$`notify-send "Screenshot" "${`${e_}`}"`.nothrow().catch(a => { });
$`notify-send "Kļūda" "${`${e_}`}"`.nothrow().catch(a => { });
}

View File

@@ -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 screenshot :("
notify-send -u critical -t 3 "Kļūda" "Nevar atrast failu!"
fi

View File

@@ -2,7 +2,7 @@
GAMES=$(cat ~/config/scripts/lib/games.txt)
SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Launch Roblox...")
SELECTED=$(echo "$GAMES" | cut -d'%' -f1 | wofi --show dmenu -p "Uzspēlē Roblox...")
if [ -n "$SELECTED" ]; then
PLACE_ID=$(echo "$GAMES" | grep "^$SELECTED" | sed 's/.*%%% //')

View File

@@ -14,10 +14,8 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then
# keyword decoration:active_opacity 1;\
# keyword decoration:inactive_opacity 1;\
# keyword decoration:fullscreen_opacity 1;"
notify-send -t 5000 -u critical "OCbwoy3's Dotfiles" "Enabled game mode"
pkill -9 waybar
exit
fi
bash ~/config/scripts/hot-reload.sh
# hyprctl reload
notify-send -t 5000 -u critical "OCbwoy3's Dotfiles" "Disabled game mode"

View File

@@ -7,5 +7,5 @@ echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send "Screenshot" "Successfully captured screenshot to clipboard.\n<small>Open swappy with SUPER+ALT+SHIFT+PS.</small>"
notify-send "Ekrānuzņēmums" "Attēls nokopēts starpliktuvē!"
fi

View File

@@ -7,5 +7,5 @@ echo "$SS_PATH"
if [[ -n "$SS_PATH" && "$SS_PATH" == /home/ocbwoy3/Pictures/Screenshots/* ]]; then
wl-copy < "$SS_PATH"
notify-send "Screenshot" "Successfully captured selection to clipboard.\n<small>Open swappy with SUPER+ALT+SHIFT+PS.</small>"
notify-send "Ekrānuzņēmums" "Attēls nokopēts starpliktuvē!"
fi

View File

@@ -14,8 +14,6 @@ if [ ${#WALLPAPER} -gt 0 ] ; then
# wal -stn -a 90 -i $HOME/wallpaper/$WALLPAPER
notify-send -t 2000 -u low "OCbwoy3's Dotfiles" "Setting wallpaper"
swww img $HOME/Pictures/Wallpapers/$WALLPAPER --transition-fps 300 --transition-duration 2 --transition-type simple --transition-step 3 &
# bash ~/dotfiles/scripts/hot-reload.sh

View File

@@ -1,17 +1,16 @@
KBLANG=$(hyprctl getoption input:kb_layout | awk 'NR==1{print $2}')
if [ "$KBLANG" = "us" ] ; then
hyprctl --batch "\
keyword input:kb_layout lv;\
keyword input:kb_variant apostrophe;"
# keyword input:kb_options compose:apostrophe;"
notify-send -u low "OCbwoy3's Dotfiles" "Keyboard Layout: Latvian"
exit
hyprctl --batch "\
keyword input:kb_layout lv;\
keyword input:kb_variant apostrophe;"
# keyword input:kb_options compose:apostrophe;"
notify-send -u low "Tastatūra" "🇱🇻 Valoda: Latviešu"
exit
elif [ "$KBLANG" = "lv" ] ; then
# hyprctl --batch "\
# keyword input:kb_layout us;\
# keyword input:kb_variant;"
# i have no fucking idea how to unset input:kb_variant with hyprctl
hyprctl reload
notify-send -u low "OCbwoy3's Dotfiles" "Keyboard Layout: English"
exit
fi
hyprctl --batch "\
keyword input:kb_layout us;\
keyword input:kb_variant \"\";"
# keyword input:kb_options compose:apostrophe;"
notify-send -u low "Tastatūra" "🇺🇸 Valoda: Angļu"
exit
fi