Plebware Control Centre Banner

Developer Tools

Mode-Specific Tool for Developer

Script Breakdown: developer-tools.sh (Developer Mode Tool Dispatcher)

This script is a specialized, GTK/XFCE-focused variant of the PlebMachine tool launcher specifically configured for the Developer operational mode. Unlike the global master templates that use case switches for all modes, this script hardcodes developer-centric options (xfce4-terminal, mousepad, and glade) while preserving the systemโ€™s state-driven launcher framework.


Key Functionality


Mode Configuration & Tools (COGNITIVE State)

Setting / Option Target Command / Package Description
Default App (AUTOMATIC) xfce4-terminal Default XFCE terminal emulator.
โ€œTerminalโ€ Option xfce4-terminal Command-line interface workspace.
โ€œMousepadโ€ Option mousepad Lightweight XFCE text editor for quick script editing.
โ€œGladeโ€ Option glade User interface designer for GTK/C/Python applications.

Dependencies

Core Utilities & Engine

Binary Dependencies

#!/bin/bash
export DISPLAY="${DISPLAY:-:0}"
export XAUTHORITY="${XAUTHORITY:-$HOME/.Xauthority}"
export GDK_BACKEND="${GDK_BACKEND:-x11}"

# Determine mode from script name
SCRIPT_NAME="$(basename "$0" .sh)"
MODE="${SCRIPT_NAME%-tools}"

# Read current system state
STATE_FILE="$HOME/.config/plebmachine/state.conf"
if [ -f "$STATE_FILE" ]; then
    PM_STATE=$(grep -i "PM_STATE" "$STATE_FILE" | cut -d'=' -f2 | tr '[:lower:]' '[:upper:]' | xargs)
else
    PM_STATE="COGNITIVE"
fi

# Developer specific
DEFAULT_APP="xfce4-terminal"
ZENITY_ITEMS='FALSE "Terminal" FALSE "Mousepad" FALSE "Glade"'

if [ "$PM_STATE" = "AUTOMATIC" ]; then
    $DEFAULT_APP >/dev/null 2>&1 &
    exit 0
fi

CHOICE=$(zenity --list \
  --checklist \
  --title="PlebMachine Developer Tools" \
  --text="Select developer applications to launch:" \
  --column="Pick" \
  --column="App" \
  $ZENITY_ITEMS \
  --separator="|")

if [ $? -ne 0 ]; then
    exit 0
fi

IFS="|" read -ra APPS <<< "$CHOICE"

for app in "${APPS[@]}"; do
  app="${app%\"}"
  app="${app#\"}"
  case "$app" in
    "Terminal")   xfce4-terminal >/dev/null 2>&1 & ;;
    "Mousepad")   mousepad >/dev/null 2>&1 & ;;
    "Glade")      glade >/dev/null 2>&1 & ;;
    *)            echo "Unknown app: $app" ;;
  esac
done


Review โ€” 2026-09-20

Review subject: Developer Tools

Review date: 2026-09-20
Review scope: Documentation, code preservation, description quality, and PlebVox exclusion.\n

โ†ฉ Return to the article I came from

Previous: cognitive-pause.sh

Next: Everyday Tools

No earlier PlebWare article yet

You haven't viewed any other PlebWare articles in this tab yet. If you arrived from Google or opened this article directly, there may be no earlier PlebWare article to return to.

You can keep exploring from here: