Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions widget/Bar/components/Launcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Accessor, createBinding, createComputed, createState, For, onCleanup }
import { Astal, Gtk, Gdk } from "ags/gtk4"

import AstalApps from "gi://AstalApps"
import Gio from "gi://Gio"
import GioUnix from "gi://GioUnix"

import { Placeholder } from "widget/shared/Placeholder"
import { PopupWindow } from "widget/shared/PopupWindow"
Expand All @@ -26,12 +26,12 @@ const { CENTER, END } = Gtk.Align
export namespace Launcher {
const allApps = createBinding(apps, "list").as(v => v.get_list())
const appRevealers = new Map<string, Gtk.Revealer>()
const desktopInfoCache = new Map<string, Gio.DesktopAppInfo | null>()
const desktopInfoCache = new Map<string, GioUnix.DesktopAppInfo | null>()

function getDesktopInfo(app: AstalApps.Application): Gio.DesktopAppInfo | undefined {
function getDesktopInfo(app: AstalApps.Application): GioUnix.DesktopAppInfo | undefined {
const appName = app.get_name()
if (!desktopInfoCache.has(appName)) {
desktopInfoCache.set(appName, Gio.DesktopAppInfo.new(app.get_entry()))
desktopInfoCache.set(appName, GioUnix.DesktopAppInfo.new(app.get_entry()))
}
return desktopInfoCache.get(appName) ?? undefined
}
Expand Down
10 changes: 1 addition & 9 deletions widget/Bar/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,7 @@ export namespace Workspaces {
const existing_ids = new Set(ws.map(w => w.id))
for (let id = 1; id <= total; id++) {
if (!existing_ids.has(id)) {
ws.push({
id,
get_id() { return this.id },
disconnect() { },
connect() { },
focus() { hypr.message_async(`dispatch workspace ${this.id}`, null) },
clients: [],
monitor: undefined,
} as any as AstalHyprland.Workspace)
ws.push(AstalHyprland.Workspace.dummy(id, null))
}
}
return ws.sort((a, b) => a.id - b.id)
Expand Down