Closes #22 - Implemented numbered workspace identifiers. (#31)

This commit is contained in:
Jas Singh
2024-07-28 17:51:16 -07:00
committed by GitHub
parent 3dc5bbbe13
commit f09f4ad6bd
6 changed files with 55 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import icons from "lib/icons"
import options from "options"
import { ThemesMenu } from "./pages/theme/index"
import { SettingsMenu } from "./pages/config/index"
import "./side_effects";
type Page = "Configuration" | "Theming"

View File

@@ -32,6 +32,10 @@ export const BarSettings = () => {
Option({ opt: options.bar.workspaces.icons.available, title: 'Workspace Available', type: 'string' }),
Option({ opt: options.bar.workspaces.icons.active, title: 'Workspace Active', type: 'string' }),
Option({ opt: options.bar.workspaces.icons.occupied, title: 'Workspace Occupied', type: 'string' }),
Option({ opt: options.bar.workspaces.show_numbered, title: 'Show Workspace Numbers', type: 'boolean' }),
Option({ opt: options.bar.workspaces.numbered_active_indicator, title: 'Numbered Workspace Identifier', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'enum', enums: ["underline", "highlight"] }),
Option({ opt: options.theme.bar.buttons.workspaces.numbered_active_highlight_border, title: 'Highlight Radius', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'string' }),
Option({ opt: options.theme.bar.buttons.workspaces.numbered_active_text_color, title: 'Highlighted Text Color', subtitle: 'Only applicable if Workspace Numbers are enabled', type: 'color' }),
Option({ opt: options.bar.workspaces.spacing, title: 'Spacing', subtitle: 'Spacing between workspace icons', type: 'float' }),
Option({ opt: options.bar.workspaces.workspaces, title: 'Total Workspaces', type: 'number' }),
Option({ opt: options.bar.workspaces.monitorSpecific, title: 'Monitor Specific', subtitle: 'Only workspaces applicable to the monitor will be displayed', type: 'boolean' }),

View File

@@ -0,0 +1,15 @@
import options from "options";
const { show_numbered, show_icons } = options.bar.workspaces;
show_numbered.connect("changed", ({ value }) => {
if (value === true) {
show_icons.value = false;
}
})
show_icons.connect("changed", ({ value }) => {
if (value === true) {
show_numbered.value = false;
}
})