aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/status/BreakRow.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-30 17:34:33 +0100
committerDanilo M. <danix@danix.xyz>2026-10-30 17:34:33 +0100
commit412dec827b5d87c4138491faf49a0babb229f7e2 (patch)
tree3916ccf499c09853e16d2a2c6973fea3a453b877 /desktop/modules/status/BreakRow.qml
parent9b9271c304cc7654de0320760f875b666294f591 (diff)
downloadquickshell-412dec827b5d87c4138491faf49a0babb229f7e2.tar.gz
quickshell-412dec827b5d87c4138491faf49a0babb229f7e2.zip
Drop breaktimer and the archived AI apps
breaktimer is parked and imggen and fanfictioner are archived and uninstalled, so the shell was reading files nothing writes and offering buttons that call commands that no longer exist. Status: remove the bt* properties, the file watchers behind them, the verb runner and the presentation-mode pause/resume. The status page loses BreakRow and the tile falls back to "All clear". AI: remove the imggen and fanfictioner rows from ai-state.sh, their labels and controls, and the pid-based fanfictioner stop. The sd-cli engine row stays, since the wallpaper upscaler uses sd-cli too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/status/BreakRow.qml')
-rw-r--r--desktop/modules/status/BreakRow.qml84
1 files changed, 0 insertions, 84 deletions
diff --git a/desktop/modules/status/BreakRow.qml b/desktop/modules/status/BreakRow.qml
deleted file mode 100644
index 8b732b1..0000000
--- a/desktop/modules/status/BreakRow.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
-//
-// This program is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License version 2 as
-// published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-
-import QtQuick
-import "../.."
-
-// Breaktimer: the daemon's phase and countdown, a pause switch and a
-// start/stop button. Every control is a verb; nothing here writes the
-// daemon's files.
-Item {
- id: row
-
- implicitHeight: Math.max(texts.implicitHeight, controls.implicitHeight) + 16
-
- readonly property string phaseLabel: {
- if (!Status.btRunning) return "Stopped";
- if (Status.btPaused) return "Paused";
- if (Status.btPhase === "breaking") return "Micro-pause";
- if (Status.btPhase === "longbreak") return "Long pause";
- return "Working";
- }
-
- // A paused countdown is frozen, and a frozen number reads as a bug, so
- // the paused state says what it is instead of showing one.
- readonly property string detail: {
- if (!Status.btRunning) return "Break reminders are not running.";
- if (Status.btPaused) return "Countdown frozen until resumed.";
- if (Status.btPhase === "breaking" || Status.btPhase === "longbreak")
- return "Back to work in " + Status.btCountdown() + ".";
- return "Next break in " + Status.btCountdown() + ".";
- }
-
- Column {
- id: texts
- anchors {
- left: parent.left
- right: controls.left
- rightMargin: 12
- verticalCenter: parent.verticalCenter
- }
- spacing: 2
-
- Text {
- text: "Breaktimer · " + row.phaseLabel
- font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2; bold: true }
- color: Theme.text
- }
-
- Text {
- width: parent.width
- wrapMode: Text.WordWrap
- text: row.detail
- font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 4 }
- color: Theme.subtext
- }
- }
-
- Row {
- id: controls
- anchors { right: parent.right; verticalCenter: parent.verticalCenter }
- spacing: 8
-
- Button {
- text: Status.btRunning ? "Stop" : "Start"
- danger: Status.btRunning
- onClicked: Status.runBreaktimer(Status.btRunning ? "stop" : "start")
- }
-
- Switch {
- id: sw
- enabled: Status.btRunning
- checked: Status.btRunning && !Status.btPaused
- onToggled: Status.runBreaktimer(Status.btPaused ? "resume" : "pause")
- }
- }
-}