mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
8eb23bcc29
- Bring up Mango to parity with niri/hyprland via a native JSON-IPC w/Native MangoServic., replaces the legacy dwl/`mmsg` path and recent breaking changes - Dankinstall: mango supported installer, config/binds templates, and packaging (Arch AUR, Fedora Terra auto-enable, Gentoo GURU) - Window rules: Go provider + CLI + Settings GUI editor - Keybinds + config reload on edit (mmsg dispatch reload_config) - Misc new supported options in DMS settings
53 lines
885 B
Go
53 lines
885 B
Go
package deps
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type DependencyStatus int
|
|
|
|
const (
|
|
StatusMissing DependencyStatus = iota
|
|
StatusInstalled
|
|
StatusNeedsUpdate
|
|
StatusNeedsReinstall
|
|
)
|
|
|
|
type PackageVariant int
|
|
|
|
const (
|
|
VariantStable PackageVariant = iota
|
|
VariantGit
|
|
)
|
|
|
|
type Dependency struct {
|
|
Name string
|
|
Status DependencyStatus
|
|
Version string
|
|
Description string
|
|
Required bool
|
|
Variant PackageVariant
|
|
CanToggle bool
|
|
}
|
|
|
|
type WindowManager int
|
|
|
|
const (
|
|
WindowManagerHyprland WindowManager = iota
|
|
WindowManagerNiri
|
|
WindowManagerMango
|
|
)
|
|
|
|
type Terminal int
|
|
|
|
const (
|
|
TerminalGhostty Terminal = iota
|
|
TerminalKitty
|
|
TerminalAlacritty
|
|
)
|
|
|
|
type DependencyDetector interface {
|
|
DetectDependencies(ctx context.Context, wm WindowManager) ([]Dependency, error)
|
|
DetectDependenciesWithTerminal(ctx context.Context, wm WindowManager, terminal Terminal) ([]Dependency, error)
|
|
}
|