me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

try to open steam

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit 2a91ec2e parent 8adfe277 change-id xytxmsul
+32
+32
hosts/common/quickshell/shell.qml
··· 1 1 import Quickshell 2 2 import Quickshell.Wayland 3 3 import Quickshell.Io 4 + import Quickshell.Services.SystemTray 4 5 import QtQuick 5 6 import QtQuick.Layouts 6 7 ··· 299 300 command: ["notify-send", "-a", "GitHub", "GitHub", "You have new notifications"] 300 301 } 301 302 303 + // Open Steam window via niri focus, fallback to spawning 304 + Process { 305 + id: steamOpenProc 306 + command: ["sh", "-c", "WID=$(niri msg --json windows | jq -r '.[] | select(.app_id | test(\"steam\"; \"i\")) | .id' | head -n1); if [ -n \"$WID\" ]; then niri msg action focus-window --id \"$WID\"; else steam steam://open/games; fi"] 307 + } 308 + 302 309 // GitHub timer (refresh every 2 minutes) 303 310 Timer { 304 311 interval: 120000 ··· 378 385 Process { 379 386 id: ghOpenProc 380 387 command: ["xdg-open", "https://github.com/notifications"] 388 + } 389 + 390 + Rectangle { width: 1; height: 16; color: root.colOverlay0; visible: trayRepeater.count > 0 } 391 + 392 + Repeater { 393 + id: trayRepeater 394 + model: SystemTray.items.values 395 + delegate: Text { 396 + id: trayDelegate 397 + required property var modelData 398 + color: root.colLavender 399 + font { family: root.fontFamily; pixelSize: root.fontSize } 400 + text: trayDelegate.modelData.title || trayDelegate.modelData.id 401 + MouseArea { 402 + anchors.fill: parent 403 + cursorShape: Qt.PointingHandCursor 404 + onClicked: { 405 + if (trayDelegate.modelData.id.toLowerCase().indexOf("steam") !== -1) { 406 + steamOpenProc.running = true 407 + } else { 408 + trayDelegate.modelData.activate() 409 + } 410 + } 411 + } 412 + } 381 413 } 382 414 } 383 415