Workspaces now show up on their appropriate monitors. (#681)
* Workspaces now show up on their appropriate monitors. * Fixed undefined rules showing up.
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
import { execAsync } from 'astal';
|
||||
import { hyprlandService } from '../constants/services';
|
||||
|
||||
const floatSettingsDialog = (): void => {
|
||||
execAsync(['bash', '-c', 'hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"']);
|
||||
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"`);
|
||||
|
||||
hyprlandService.connect('config-reloaded', () => {
|
||||
execAsync(['bash', '-c', 'hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"']);
|
||||
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"`);
|
||||
});
|
||||
};
|
||||
|
||||
const floatFilePicker = (): void => {
|
||||
execAsync(['bash', '-c', 'hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"']);
|
||||
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"`);
|
||||
|
||||
hyprlandService.connect('config-reloaded', () => {
|
||||
execAsync(['bash', '-c', 'hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"']);
|
||||
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"`);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
2
src/lib/types/workspace.d.ts
vendored
2
src/lib/types/workspace.d.ts
vendored
@@ -3,7 +3,7 @@ export type WorkspaceRule = {
|
||||
monitor: string;
|
||||
};
|
||||
|
||||
export type WorkspaceMap = {
|
||||
export type WorkspaceMonitorMap = {
|
||||
[key: string]: number[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user