aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 10:49:37 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 10:49:37 +0200
commitb2fd9aba5711a5863c8700c8b21c83c53e14b39d (patch)
treeca28893d40cb5c24aa5d727dadf984c08819090c /desktop/modules
parenta120bb98a809a60d81cf0aed4e81ed39e085fe2b (diff)
downloadquickshell-b2fd9aba5711a5863c8700c8b21c83c53e14b39d.tar.gz
quickshell-b2fd9aba5711a5863c8700c8b21c83c53e14b39d.zip
perf: open btop in kitty from the page header
The page shows a summary; btop is the full picture when the summary is not enough. The button sits in the header's actions slot, so it stays put while the panel scrolls, and closes the drawer on launch since the terminal takes over from there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules')
-rw-r--r--desktop/modules/perf/PerfModule.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/modules/perf/PerfModule.qml b/desktop/modules/perf/PerfModule.qml
index e596f9a..5c55913 100644
--- a/desktop/modules/perf/PerfModule.qml
+++ b/desktop/modules/perf/PerfModule.qml
@@ -9,6 +9,7 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
+import Quickshell
import QtQuick
import "../.."
@@ -50,7 +51,16 @@ Module {
page: Component {
Page {
+ id: pg
title: "Performance"
+ // The full picture, for when the summary is not enough. fa-terminal.
+ actions: Component {
+ Button {
+ icon: "\uf120"
+ text: "btop"
+ onClicked: { Quickshell.execDetached(["kitty", "btop"]); pg.dismiss(); }
+ }
+ }
PerfPanel {
width: parent.width