diff options
| author | sqmon <[email protected]> | 2026-11-23 19:03:01 +0100 |
|---|---|---|
| committer | sqmon <[email protected]> | 2026-11-23 19:03:01 +0100 |
| commit | 92f3c9f37a0fb7dbfe26989d666ec82c37a9eb28 (patch) | |
| tree | 25cb5d48bd8503183610aca45ff6244bd3c72f80 /tohu/minimal/bin/start-tohu | |
| parent | 725df38532950dac8a446950ec63a348df3cab63 (diff) | |
add tohu minimal dots
Diffstat (limited to 'tohu/minimal/bin/start-tohu')
| -rwxr-xr-x | tohu/minimal/bin/start-tohu | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tohu/minimal/bin/start-tohu b/tohu/minimal/bin/start-tohu new file mode 100755 index 0000000..842c780 --- /dev/null +++ b/tohu/minimal/bin/start-tohu @@ -0,0 +1,36 @@ +#!/bin/sh +export SHELL="/usr/bin/oksh" +export ENV="$HOME/.kshrc" +export XKB_DEFAULT_LAYOUT=de +export GDK_DPI_SCALE=1.4 +export QT_FONT_DPI=134 +export XCURSOR_SIZE=32 +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -p "$XDG_RUNTIME_DIR" + chmod 0700 "$XDG_RUNTIME_DIR" +fi + +export PLAN9="/usr/lib/plan9" +case ":$PATH:" in + *":$PLAN9/bin:"*) ;; + *) export PATH="$PATH:$PLAN9/bin" ;; +esac +if [ -z "${NAMESPACE:-}" ]; then + export NAMESPACE="$XDG_RUNTIME_DIR/p9ns" +fi +mkdir -p "$NAMESPACE" +chmod 0700 "$NAMESPACE" + +pkill -x wawa mojito 2>/dev/null || true +rm -f "$XDG_RUNTIME_DIR/tohu-bar.fifo" "$XDG_RUNTIME_DIR/tohu-bar.pid" + +cur_tty=$(tty 2>/dev/null || true) +case "$cur_tty" in + /dev/tty[1-9]*) + exec swc-launch -t "$cur_tty" tohu 2>/tmp/tohu.log + ;; + *) + exec swc-launch tohu 2>/tmp/tohu.log + ;; +esac |
