mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 07:22:50 -05:00
- settings UI for creating, editing, deleting window ruels - IPC to create a window rule for the currently focused toplevel fixes #1292
23 lines
413 B
Go
23 lines
413 B
Go
package providers
|
|
|
|
import "github.com/AvengeMedia/DankMaterialShell/core/internal/windowrules"
|
|
|
|
func newTestWindowRule(id, name, appID string) windowrules.WindowRule {
|
|
return windowrules.WindowRule{
|
|
ID: id,
|
|
Name: name,
|
|
Enabled: true,
|
|
MatchCriteria: windowrules.MatchCriteria{
|
|
AppID: appID,
|
|
},
|
|
}
|
|
}
|
|
|
|
func boolPtr(b bool) *bool {
|
|
return &b
|
|
}
|
|
|
|
func floatPtr(f float64) *float64 {
|
|
return &f
|
|
}
|