scripts/dead_code/config.sh
#!/bin/sh
#
#   Copyright (c) 2022-2025: Jacob.Lundqvist@gmail.com
#   License: MIT
#
#   Part of https://github.com/jaclu/tmux-menus
#
#  THIS DOES NOT WORK RIGHT NOW!
#
#  I haven't had time to update it to use dynamic menus...
#
#   Live configuration. So far only menu location is available
#
#   THIS IS NOT USED ATM!
#

static_content() {

    error_msg_safe "THIS IS NOT USED ATM!"

    change_location="run-shell '$d_scripts/move_menu.sh"

    #
    #  The -p sequence will get wrecked by lnie breaks,
    #  so left as one annoyingly long line
    #
    # prompt1="horizontal pos (max: #{menu_width}):"
    # prompt2="vertical pos (max: #{menu_height}):"

    # set -- "command-prompt" \
    #     "-I \"$location_x\",\"$location_y\"" \
    #     "-p \"$prompt1\",\"$prompt2\"" \
    #     "\"$change_location coord %1 %2 $mnu_reload_direct'\""
    # set_coordinates="$*"

    set -- "$@" \
        0.0 M Left "Back to Previous menu $nav_prev" advanced.sh \
        0.0 S \
        0.0 C c "Center" "$change_location  C  $mnu_reload_direct"
    # 0.0 E r "win Right edge" "$change_location  R  $mnu_reload_direct'" \
    # 0.0 E p "Pane bottom left" "$change_location  P  $mnu_reload_direct'" \
    # 0.0 E w "Win pos status line" "$change_location  W  $mnu_reload_direct'" \
    # 0.0 S \
    # 0.0 C s "set coordinates" "$set_coordinates" \
    # 0.0 S \
    # 0.0 T "-When using coordinates" \
    # 0.0 T "-lower left corner is set!"

    menu_generate_part 1 "$@"
}

#===============================================================
#
#   Main
#
#===============================================================

menu_name="Configure Menu Location"

#  Full path to tmux-menux plugin
D_TM_BASE_PATH="$(dirname -- "$(dirname -- "$(realpath "$0")")")"

# shellcheck source=scripts/dialog_handling.sh
. "$D_TM_BASE_PATH"/scripts/dialog_handling.sh
