moon-plasma / moonplasma / MoonPlasma / Moon Plasma become chandra / Chandra everywhere: the WIT package (chandra:desktop, chandra:host, chandra:wm), the MoonBit module (chandra/desktop) and generated bindings, the Rust host, identifiers (ChandraCompositor), the session script (chandra-session) and desktop entry (chandra.desktop), config and data paths ($XDG_CONFIG_HOME/chandra, share/chandra/modules), env vars (CHANDRA_*), UI strings, docs and tests. The test fixture components are rebuilt against the renamed WIT. Saved panel.edn and state.edn are still read from the old $XDG_CONFIG_HOME/moon-plasma until the first save writes the new copy. The remote repository keeps its experiments/moon-plasma name for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hi3L9oVBoRd373Qr4n
This commit is contained in:
323 files changed
+1055
-1013
No files matched your search
@@ -31,7 +31,7 @@ let key_left : UInt = 105
|
||||
let key_right : UInt = 106
|
||||
|
||||
///| Windows of the active workspace, most recently used first (minimized ones included).
|
||||
fn MoonPlasmaCompositor::switcher_candidates(self : MoonPlasmaCompositor) -> Array[UInt64] {
|
||||
fn ChandraCompositor::switcher_candidates(self : ChandraCompositor) -> Array[UInt64] {
|
||||
let out : Array[UInt64] = []
|
||||
for ws in self.wm.workspaces {
|
||||
if ws.id == self.wm.active_workspace {
|
||||
@@ -52,12 +52,12 @@ fn MoonPlasmaCompositor::switcher_candidates(self : MoonPlasmaCompositor) -> Arr
|
||||
}
|
||||
|
||||
///| True while the switcher is on screen.
|
||||
pub fn MoonPlasmaCompositor::switcher_open(self : MoonPlasmaCompositor) -> Bool {
|
||||
pub fn ChandraCompositor::switcher_open(self : ChandraCompositor) -> Bool {
|
||||
self.switcher_on
|
||||
}
|
||||
|
||||
///| Close the switcher; with `commit`, switch to the selected window.
|
||||
fn MoonPlasmaCompositor::switcher_close(self : MoonPlasmaCompositor, commit : Bool) -> Unit {
|
||||
fn ChandraCompositor::switcher_close(self : ChandraCompositor, commit : Bool) -> Unit {
|
||||
if !self.switcher_on {
|
||||
return
|
||||
}
|
||||
@@ -70,7 +70,7 @@ fn MoonPlasmaCompositor::switcher_close(self : MoonPlasmaCompositor, commit : Bo
|
||||
}
|
||||
|
||||
///| Handle a key for the switcher. Returns true when the key is consumed (not for clients).
|
||||
fn MoonPlasmaCompositor::switcher_key(self : MoonPlasmaCompositor, code : UInt, pressed : Bool, time_ms : UInt) -> Bool {
|
||||
fn ChandraCompositor::switcher_key(self : ChandraCompositor, code : UInt, pressed : Bool, time_ms : UInt) -> Bool {
|
||||
if code == key_lalt || code == key_ralt {
|
||||
self.alt_down = pressed
|
||||
if !pressed && self.switcher_on {
|
||||
@@ -124,7 +124,7 @@ fn MoonPlasmaCompositor::switcher_key(self : MoonPlasmaCompositor, code : UInt,
|
||||
}
|
||||
|
||||
///| The switcher's draw ops: a centred list, the selected row lit. Empty when closed.
|
||||
fn MoonPlasmaCompositor::switcher_ops(self : MoonPlasmaCompositor) -> Array[@scene.DrawOp] {
|
||||
fn ChandraCompositor::switcher_ops(self : ChandraCompositor) -> Array[@scene.DrawOp] {
|
||||
let ops : Array[@scene.DrawOp] = []
|
||||
if !self.switcher_on {
|
||||
return ops
|
||||
|
||||
Reference in new issue
Block a user