save point

This commit is contained in:
kake26 2025-05-12 14:35:28 -05:00
parent 4c8b2b9c3b
commit 5b83c89d4a
Signed by: kake26
GPG key ID: E0A989B571D1F99F
9 changed files with 128 additions and 41 deletions

View file

@ -1,47 +0,0 @@
#!/bin/bash
# this is the main script template
set -eo pipefail #these can cause problems when you want stuff to keep going
if [[ -n "${BASHD_DEBUG}" ]]; then # a inevitability that this will be used
set -x
fi
trap cleanup EXIT # A little more robust cleanup
# trap errors and set the ERR trap
trap 'echo -e "\nERROR: $BASH_COMMAND\nFILE: ${BASH_SOURCE[0]}\nLINE: ${BASH_LINENO[0]}\n" >&2; exit 1' ERR
cleanup() {
# We can clean up any temp files or what nots, but for now a place holder
true
}
source ./modules/config_json.bash # can be json or ini, I preffer json
#source ./modules/gui.bash
#source ./modules/ntfy.bash
#source ./modules/keydb.bash
source ./modules/tmux.bash
# Keydb / Redis interaction functions, works for both
# show_notification "Hello World!"
# send_ntfy_message "Hello World!" "kuma"
# Get list of panes
# We check how many windows
windows=$(tmux_list_windows)
echo "Windows"
echo "$windows"
# We check how many panes
panes=$(tmux_list_panes)
echo "Panes"
echo "$panes"