feat(quickshell): add nugu shell foundation
7747842181a5023b0a784a13af8ab8a20a74e3b2
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
- Parent 1: c77d23b8294e
bugabingas dorkfiles
7747842181a5023b0a784a13af8ab8a20a74e3b2
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
+229 / −0 text lines
+3 / −0 text lines
new file mode 100644+76 / −0 text lines
import QtQuickimport QtQuick.Layoutsimport QuickshellPanelWindow { id: panel required property QtObject theme anchors { top: true; left: true } margins { top: 36; left: 10 } exclusiveZone: -1 implicitWidth: 360 implicitHeight: 96 color: "transparent" Rectangle { anchors.fill: parent radius: 7 color: `${panel.theme.ui.backdrop}ee` border.width: 2 border.color: panel.theme.ui.accent ColumnLayout { anchors.fill: parent anchors.margins: 12 spacing: 6 Text { Layout.fillWidth: true text: `Quickshell Nugu · ${panel.theme.mode}` color: panel.theme.ui.important_global font.family: "IBM Plex Mono" font.pixelSize: 13 font.bold: true elide: Text.ElideRight } RowLayout { Layout.fillWidth: true spacing: 8 Repeater { model: [ panel.theme.ui.backdrop, panel.theme.ui.normal, panel.theme.ui.accent, panel.theme.ui.focus, panel.theme.warning, panel.theme.error, panel.theme.info ] Rectangle { required property string modelData Layout.preferredWidth: 34 Layout.preferredHeight: 22 radius: 4 color: modelData border.width: 1 border.color: panel.theme.ui.unfocus } } } Text { Layout.fillWidth: true text: "IPC: qs -c nugu ipc call nugu toggleDiagnostics" color: panel.theme.ui.minor font.family: "IBM Plex Mono" font.pixelSize: 11 elide: Text.ElideRight } } }}new file mode 100644+28 / −0 text lines
# Nugu QuickshellNamed Quickshell config for Hypr companion replacement.Phase 1 is inert by default. It starts Quickshell, loads Nugu colors, and exposes diagnostics over IPC. It does not replace Ironbar or Mako.Run directly:```shqs -p quickshell/nugu/shell.qml```Run named config after dorkfiles link:```shqs -c nugu```Diagnostics:```shqs -c nugu ipc call nugu showDiagnosticsqs -c nugu ipc call nugu hideDiagnosticsqs -c nugu ipc call nugu toggleDiagnosticsqs -c nugu ipc call nugu reloadThemeqs -c nugu ipc call nugu setThemeMode lightqs -c nugu ipc call nugu setThemeMode dark```new file mode 100644+95 / −0 text lines
import QtQuickimport Quickshellimport Quickshell.IoItem { id: theme visible: false readonly property string modePath: `${Quickshell.env("HOME")}/.cache/nugu/mode` readonly property string palettePath: Qt.resolvedUrl("../../hypr/generated/nugu.json") property string mode: readMode() property var palettes: readJson() property var palette: palettes[mode] || palettes.dark readonly property var content: palette.content readonly property var ui: palette.ui readonly property string error: palette.error readonly property string warning: palette.warning readonly property string info: palette.info readonly property string debug: palette.debug FileView { id: paletteFile path: theme.palettePath blockLoading: true printErrors: false } FileView { id: modeFile path: theme.modePath blockLoading: true printErrors: false watchChanges: true onFileChanged: { reload() } } function readJson() { const text = paletteFile.text() if (text.length === 0) { return { "dark": fallbackDark(), "light": fallbackDark() } } return JSON.parse(text) } function readMode() { const text = modeFile.text().trim() return text === "light" ? "light" : "dark" } function reload(): void { paletteFile.reload() modeFile.reload() palettes = readJson() mode = readMode() palette = palettes[mode] || palettes.dark } function setMode(next: string): void { mode = next === "light" ? "light" : "dark" palette = palettes[mode] || palettes.dark } function fallbackDark() { return { "debug": "#ed5eed", "error": "#ec6376", "warning": "#f0ee69", "info": "#3ec5e3", "content": { "normal": "#ededed", "backdrop": "#121212", "accent": "#d151d1", "minor": "#8b8b8b", "focus": "#7ba1aa", "unfocus": "#5d5d5d", "important_local": "#b59ae4", "important_global": "#dfd3f3" }, "ui": { "normal": "#dbdbdb", "backdrop": "#242424", "accent": "#d86dd8", "minor": "#9d9d9d", "focus": "#9aabae", "unfocus": "#6f6f6f", "important_local": "#c9b6eb", "important_global": "#f3effb" } } }}new file mode 100644+27 / −0 text lines
import QtQuickimport Quickshellimport Quickshell.Ioimport "."Scope { id: root property bool diagnosticsVisible: false Theme { id: theme } IpcHandler { target: "nugu" function showDiagnostics(): void { root.diagnosticsVisible = true } function hideDiagnostics(): void { root.diagnosticsVisible = false } function toggleDiagnostics(): void { root.diagnosticsVisible = !root.diagnosticsVisible } function reloadTheme(): void { theme.reload() } function setThemeMode(mode: string): void { theme.setMode(mode) } } Diagnostics { visible: root.diagnosticsVisible theme: theme }}