From c2e03775dba9aedbb52c9bf1135a2290faaa21bf Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 14 Jan 2025 19:53:49 +1100 Subject: better config + notifpopups max popups Use a config file --- modules/bar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/bar.tsx') diff --git a/modules/bar.tsx b/modules/bar.tsx index bf1bb9f..ed888db 100644 --- a/modules/bar.tsx +++ b/modules/bar.tsx @@ -4,6 +4,7 @@ import { App, Astal, astalify, Gdk, Gtk, type ConstructProps } from "astal/gtk3" import AstalHyprland from "gi://AstalHyprland"; import AstalNotifd from "gi://AstalNotifd"; import AstalTray from "gi://AstalTray"; +import { bar as config } from "../config"; import Players from "../services/players"; import { getAppCategoryIcon } from "../utils/icons"; import { ellipsize } from "../utils/strings"; @@ -12,8 +13,6 @@ import { setupCustomTooltip } from "../utils/widgets"; const hyprland = AstalHyprland.get_default(); -const wsPerGroup = 10; - const hookFocusedClientProp = ( self: any, // Ugh why is there no base Widget type prop: keyof AstalHyprland.Client, @@ -99,7 +98,7 @@ const MediaPlaying = () => { }; const Workspace = ({ idx }: { idx: number }) => { - let wsId = Math.floor((hyprland.focusedWorkspace.id - 1) / wsPerGroup) * wsPerGroup + idx; + let wsId = Math.floor((hyprland.focusedWorkspace.id - 1) / config.wsPerGroup) * config.wsPerGroup + idx; return (