feat: bookmarks

This commit is contained in:
ange 2025-02-17 06:08:25 +00:00
parent ddd00d7844
commit 98ec0130fd
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
19 changed files with 223 additions and 90 deletions

View file

@ -10,7 +10,7 @@ fi
if [ "$EUID" != 0 ]; then
exec "$SUDO" env DISPLAY="$DISPLAY" XAUTHORITY="$XAUTHORITY" \
"$BASH" -- "${BASH_SOURCE[0]}" "$@"
XDG_CACHE_HOME="$XDG_CACHE_HOME" "$BASH" -- "${BASH_SOURCE[0]}" "$@"
fi
if [ -z "$1" ]; then
@ -24,3 +24,5 @@ done < <(wg show interfaces)
if [ "$1" != off ]; then
wg-quick up "$1"
fi
kill -38 "$(cat "$XDG_CACHE_HOME/pidofbar")"