diff --git a/config.ts b/config.ts index 9cc77c84..cb9a56ba 100644 --- a/config.ts +++ b/config.ts @@ -3,8 +3,44 @@ import { Astal } from "astal/gtk3"; // Modules export const bar = { vertical: true, - wsPerGroup: 5, - dateTime: { format: "%d/%m/%y %R", detailed: "%c" }, + modules: { + osIcon: { + enabled: true, + }, + activeWindow: { + enabled: true, + }, + mediaPlaying: { + enabled: true, + }, + workspaces: { + enabled: true, + shown: 5, + }, + tray: { + enabled: true, + }, + statusIcons: { + enabled: true, + }, + pkgUpdates: { + enabled: true, + }, + notifCount: { + enabled: true, + }, + battery: { + enabled: true, + }, + dateTime: { + enabled: true, + format: "%d/%m/%y %R", + detailedFormat: "%c", + }, + power: { + enabled: true, + }, + }, }; export const launcher = { diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index 356bff79..3f3751c9 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -169,7 +169,9 @@ const MediaPlaying = () => { const Workspace = ({ idx }: { idx: number }) => { let wsId = hyprland.focusedWorkspace - ? Math.floor((hyprland.focusedWorkspace.id - 1) / config.wsPerGroup) * config.wsPerGroup + idx + ? Math.floor((hyprland.focusedWorkspace.id - 1) / config.modules.workspaces.shown) * + config.modules.workspaces.shown + + idx : idx; return ( ); @@ -496,7 +501,7 @@ const DateTime = () => ( const DateTimeVertical = () => (