mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-15 02:02:08 -04:00
niri: add window-rule management
- settings UI for creating, editing, deleting window ruels - IPC to create a window rule for the currently focused toplevel fixes #1292
This commit is contained in:
22
core/internal/windowrules/providers/providers_test.go
Normal file
22
core/internal/windowrules/providers/providers_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user