Fix startup window rules. (#682)

This commit is contained in:
Jas Singh
2024-12-31 02:17:23 -08:00
committed by GitHub
parent 5f72b4f5e1
commit 7204ba657b

View File

@@ -1,18 +1,18 @@
import { hyprlandService } from '../constants/services'; import { hyprlandService } from '../constants/services';
const floatSettingsDialog = (): void => { const floatSettingsDialog = (): void => {
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"`); hyprlandService.message(`keyword windowrulev2 float, title:^(hyprpanel-settings)$`);
hyprlandService.connect('config-reloaded', () => { hyprlandService.connect('config-reloaded', () => {
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^(hyprpanel-settings)$"`); hyprlandService.message(`keyword windowrulev2 float, title:^(hyprpanel-settings)$`);
}); });
}; };
const floatFilePicker = (): void => { const floatFilePicker = (): void => {
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"`); hyprlandService.message(`keyword windowrulev2 float, title:^((Save|Import) Hyprpanel.*)$`);
hyprlandService.connect('config-reloaded', () => { hyprlandService.connect('config-reloaded', () => {
hyprlandService.message(`hyprctl keyword windowrulev2 "float, title:^((Save|Import) Hyprpanel.*)$"`); hyprlandService.message(`keyword windowrulev2 float, title:^((Save|Import) Hyprpanel.*)$`);
}); });
}; };