From f3652e7c82b6870ae5fd49b0d4d2c25e87edb71c Mon Sep 17 00:00:00 2001 From: JPratama7 Date: Sat, 26 Jul 2025 22:53:42 +0700 Subject: [PATCH] feat: add TypeScript types to getAppIcon and document fullscreen toggle command --- Bar/Modules/Taskbar.qml | 5 ++--- README.md | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Bar/Modules/Taskbar.qml b/Bar/Modules/Taskbar.qml index afdb653..ec87073 100644 --- a/Bar/Modules/Taskbar.qml +++ b/Bar/Modules/Taskbar.qml @@ -11,12 +11,12 @@ Item { width: runningAppsRow.width height: Settings.settings.taskbarIconSize - function getAppIcon(toplevel) { + function getAppIcon(toplevel: Toplevel): string { if (!toplevel) return ""; // Try different icon resolution strategies - var icon = Quickshell.iconPath(toplevel.appId?.toLowerCase(), true); + let icon = Quickshell.iconPath(toplevel.appId?.toLowerCase(), true); if (!icon) { icon = Quickshell.iconPath(toplevel.appId, true); } @@ -29,7 +29,6 @@ Item { if (!icon) { icon = Quickshell.iconPath("application-x-executable", true); } - console.log(icon) return icon || ""; } diff --git a/README.md b/README.md index d9adbf3..1c2aed4 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,12 @@ qs ipc call globalIPC toggleLock You can keybind it however you want in your niri setup. + +### Toggle Fullscreen: + +``` +qs ipc call globalIPC toggleFullscreen +``` ---