remove everything

This commit is contained in:
2026-10-29 20:32:54 +13:00
parent 852a5fe82e
commit 88f4c7312d
118 changed files with 0 additions and 10013 deletions
-5
View File
@@ -1,5 +0,0 @@
#!/bin/sh
# Convenience wrapper; the canonical VMware nebula-shell launcher is
# scripts/run-nebula-vm.sh
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
exec /bin/sh "${script_dir}/../../../scripts/run-nebula-vm.sh" "$@"
-62
View File
@@ -1,62 +0,0 @@
#!/bin/sh
# Recommended VMware development session entry point.
#
# Sets compositor-side development environment (cursor theme, software
# cursors if needed) and starts Sway with the Nebula development config.
# Sway then autostarts nebula-shell via scripts/run-nebula-vm.sh.
#
# Usage:
# ./compositor/sway/dev/run-sway-vm.sh
#
# Equivalent:
# export XCURSOR_THEME=Adwaita XCURSOR_SIZE=24
# sway -c compositor/sway/nebula-sway.conf
#
# Skip shell autostart:
# NEBULA_SHELL_AUTOSTART=0 ./compositor/sway/dev/run-sway-vm.sh
set -eu
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
repo_root=$(CDPATH= cd -- "${script_dir}/../../.." && pwd)
config="${repo_root}/compositor/sway/nebula-sway.conf"
if command -v realpath >/dev/null 2>&1; then
repo_root=$(realpath "${repo_root}")
config=$(realpath "${config}")
fi
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:-NebulaOS}"
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-nebula}"
export XCURSOR_THEME="${XCURSOR_THEME:-Adwaita}"
export XCURSOR_SIZE="${XCURSOR_SIZE:-24}"
# VMware often needs software cursors. This is development-specific.
export WLR_NO_HARDWARE_CURSORS="${WLR_NO_HARDWARE_CURSORS:-1}"
if [ ! -f "${config}" ]; then
echo "nebula: missing Sway config at ${config}" >&2
exit 1
fi
if grep -q '^[[:space:]]*title_format\>' "${config}"; then
echo "nebula: refusing to start; ${config} still contains title_format" >&2
echo "nebula: this Sway build does not support that command." >&2
exit 1
fi
echo "nebula: repo ${repo_root}"
echo "nebula: config ${config}"
echo "nebula: sway $(command -v sway 2>/dev/null || echo missing)"
if [ -n "${SWAYSOCK:-}" ]; then
echo "nebula: SWAYSOCK is set to ${SWAYSOCK}" >&2
echo "nebula: you are already inside a compositor session." >&2
echo "nebula: log out of that session or switch to a TTY (Ctrl+Alt+F3)," >&2
echo "nebula: then start Sway from ~/Nebula-OS so this config is used." >&2
exit 1
fi
cd "${repo_root}"
echo "nebula: starting Sway with ${config}"
exec sway -c "${config}" "$@"
-127
View File
@@ -1,127 +0,0 @@
set $mod Mod4
set $term foot
# NebulaOS temporary development compositor configuration
#
# Sway is invisible infrastructure. Nebula Desktop is the visible shell.
# Do NOT add a bar block; Nebula provides its own top bar.
#
# Nebula Desktop 0.2 is floating-first: ordinary application windows open
# as independently movable/resizable floating windows, not tiled to fill
# the workspace. Sway remains the temporary compositor/window manager.
# Custom Nebula window decoration is later work.
# -----------------------------------------------------------------------------
# Output / resolution
# -----------------------------------------------------------------------------
# Development default: 1:1 scale, fill the current display.
# No mode is pinned, so Sway uses the output's preferred mode (typically the
# native or current size). VMware Autofit Guest can then follow the host window.
#
# Inspect modes: swaymsg -t get_outputs
# Force another mode (example): swaymsg output <name> mode 1600x900
output * scale 1
output * bg #000000 solid_color
# -----------------------------------------------------------------------------
# Cursor
# -----------------------------------------------------------------------------
# The compositor owns the pointer cursor, not QML.
# A branded Nebula cursor theme is a later task.
seat * xcursor_theme Adwaita 24
# If the cursor is invisible in VMware, start Sway with:
# WLR_NO_HARDWARE_CURSORS=1 sway -c compositor/sway/nebula-sway.conf
# compositor/sway/dev/run-sway-vm.sh sets that automatically.
# -----------------------------------------------------------------------------
# Focus / pointer
# -----------------------------------------------------------------------------
# Do not warp the pointer when focusing windows; this is a mouse-first desktop.
mouse_warping none
focus_follows_mouse yes
# -----------------------------------------------------------------------------
# Temporary window decorations
# -----------------------------------------------------------------------------
# Sway draws a restrained title bar and border on normal application windows
# so they can be identified, dragged, and resized with the mouse.
#
# Nebula overlays traffic-light controls on the focused window title bar.
# Menu-style chrome (application name, future File/Edit) stays in the top bar.
#
# This is temporary infrastructure until Nebula owns server-side decorations.
# Layer-shell surfaces (desktop, top bar, launcher, window chrome) are not
# xdg_shell/XWayland views and are not decorated by these settings.
font pango:Ubuntu 10
titlebar_padding 14 10
titlebar_border_thickness 1
default_border normal 1
default_floating_border normal 1
hide_edge_borders none
# class border backgr. text indicator child_border
client.focused #3d4d62 #1a222e #e8ecf2 #7ea0c4 #3d4d62
client.focused_inactive #2a3342 #141a24 #8e99ab #2a3342 #2a3342
client.unfocused #1a2029 #10151c #6b7587 #1a2029 #1a2029
client.urgent #c98888 #1a222e #e8ecf2 #c98888 #c98888
client.placeholder #1a2029 #0b0f16 #6b7587 #1a2029 #1a2029
client.background #0b0f16
# -----------------------------------------------------------------------------
# Floating-first application windows
# -----------------------------------------------------------------------------
# Match only ordinary application views:
# Wayland → shell="xdg_shell" (app_id)
# XWayland → shell="xwayland" (class)
#
# Layer-shell clients (Nebula desktop, top bar, launcher, overlays) are a
# different shell and are not matched. They stay on BACKGROUND / TOP / OVERLAY.
#
# Size is a percentage of the *workspace* (ppt). Sway workspace geometry
# already excludes the 40px Nebula top-bar exclusive zone, so 70% × centred
# stays in the usable work area on any resolution. Do not hard-code pixels.
for_window [shell="xdg_shell"] floating enable, border normal, resize set width 70 ppt height 70 ppt, move position center
for_window [shell="xwayland"] floating enable, border normal, resize set width 70 ppt height 70 ppt, move position center
# -----------------------------------------------------------------------------
# Mouse move and resize
# -----------------------------------------------------------------------------
# Title bar: drag. Window edges: resize.
# Development fallback (does not replace title-bar interaction):
# Super + Left Mouse → move
# Super + Right Mouse → resize
floating_modifier $mod normal
# -----------------------------------------------------------------------------
# Development snap shortcuts
# -----------------------------------------------------------------------------
# Preparation for later Snap Layouts. Keyboard is not the only way to arrange
# windows; the mouse still moves and resizes floating windows directly.
# Percentages are workspace-relative (usable area below the top bar).
bindsym $mod+Left resize set width 50 ppt height 100 ppt, move position 0 ppt 0 ppt
bindsym $mod+Right resize set width 50 ppt height 100 ppt, move position 50 ppt 0 ppt
bindsym $mod+Up resize set width 100 ppt height 100 ppt, move position 0 ppt 0 ppt
bindsym $mod+Down resize set width 70 ppt height 70 ppt, move position center
# -----------------------------------------------------------------------------
# Nebula shell autostart
# -----------------------------------------------------------------------------
# Starts nebula-shell through the VMware development wrapper, which sets
# QT_QUICK_BACKEND=software. Production sessions must start nebula-shell
# without that variable.
#
# Disable autostart for debugging:
# NEBULA_SHELL_AUTOSTART=0 sway -c compositor/sway/nebula-sway.conf
#
# Run from the repository root so this relative path resolves, or use
# compositor/sway/dev/run-sway-vm.sh which does that for you.
exec /bin/sh scripts/run-nebula-vm.sh
# -----------------------------------------------------------------------------
# Emergency development shortcuts (not the normal UX)
# -----------------------------------------------------------------------------
bindsym $mod+Return exec $term
bindsym $mod+Shift+q kill
bindsym $mod+Shift+e exec swaymsg exit
bindsym $mod+Shift+c reload