New backup 2025-08-23 11:15:02

This commit is contained in:
Penelope Gwen 2025-08-23 11:15:02 -07:00
parent 1b23a431a0
commit d5ed1d388d
2 changed files with 9 additions and 5 deletions

View file

@ -172,8 +172,8 @@ SetEditor=false
1920x1200 screen: Width=636
2 screens: Height=1108
2 screens: Width=1020
2048x1280 screen: Height=588
2048x1280 screen: Width=1005
2048x1280 screen: Height=474
2048x1280 screen: Width=666
3 screens: Height=1054
3 screens: Width=975

View file

@ -9,8 +9,12 @@ dol() {
if [[ -z ${1} ]];then
DOLPHIN_OPEN_DIR="$(pwd)"
else
DOLPHIN_OPEN_DIR="$(realpath """${1/\~/${HOME}}""")"
if [[ ${1:0:1} == "~" ]];then
DOLPHIN_OPEN_DIR="$(realpath """${1/\~/${HOME}}""")"
else
DOLPHIN_OPEN_DIR="$(realpath """${1}""")"
fi
fi
echo "${DOLPHIN_OPEN_DIR}"
# swaymsg exec "dolphin \"${DOLPHIN_OPEN_DIR}\""
printf '[-] opening [%s] in dolphin...\n' "${DOLPHIN_OPEN_DIR}"
swaymsg exec "dolphin --new-window """${DOLPHIN_OPEN_DIR}""""
}