Skip to content

Commit 2634b2c

Browse files
committed
rift: floating and unmanaged maps
1 parent b675598 commit 2634b2c

File tree

1 file changed

+25
-44
lines changed

1 file changed

+25
-44
lines changed

home/programs/rift.nix

Lines changed: 25 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -47,52 +47,33 @@ let
4747
"Workspace 2"
4848
];
4949

50-
app_rules = [
51-
{
52-
app_id = "com.apple.ScreenSharing";
50+
app_rules =
51+
let
52+
floating = [
53+
"com.apple.ScreenSharing"
54+
"com.apple.systempreferences"
55+
"com.bitwarden.desktop"
56+
"com.colliderli.iina"
57+
"com.haystacksoftware.Arq"
58+
"com.kapeli.dash-setapp"
59+
"com.macpaw.Gemini-setapp"
60+
"com.noodlesoft.Hazel"
61+
"net.pornel.ImageOptim"
62+
];
63+
64+
unmanaged = [
65+
"com.jonny.supermona"
66+
"com.tapbots.Ivory"
67+
];
68+
in
69+
(map (id: {
70+
app_id = id;
5371
floating = true;
54-
}
55-
{
56-
app_id = "com.apple.systempreferences";
57-
floating = true;
58-
}
59-
{
60-
app_id = "com.bitwarden.desktop";
61-
floating = true;
62-
}
63-
{
64-
app_id = "com.colliderli.iina";
65-
floating = true;
66-
}
67-
{
68-
app_id = "com.haystacksoftware.Arq";
69-
floating = true;
70-
}
71-
{
72-
app_id = "com.jonny.supermona";
73-
floating = true;
74-
}
75-
{
76-
app_id = "com.kapeli.dash-setapp";
77-
floating = true;
78-
}
79-
{
80-
app_id = "com.macpaw.Gemini-setapp";
81-
floating = true;
82-
}
83-
{
84-
app_id = "com.runningwithcrayons.Alfred";
72+
}) floating)
73+
++ (map (id: {
74+
app_id = id;
8575
manage = false;
86-
}
87-
{
88-
app_id = "com.tapbots.Ivory";
89-
floating = true;
90-
}
91-
{
92-
app_id = "net.pornel.ImageOptim";
93-
floating = true;
94-
}
95-
];
76+
}) unmanaged);
9677
};
9778

9879
modifier_combinations = {

0 commit comments

Comments
 (0)