Skip to content

Commit 1bc6754

Browse files
committed
rift: adjust config and agent
1 parent da75068 commit 1bc6754

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

home/programs/rift.nix

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ let
99
pkg = pkgs.rift;
1010
label = "com.acsandmann.rift";
1111

12-
settingsFormat = pkgs.formats.toml { };
13-
1412
settings = rec {
1513
settings = {
1614
hot_reload = false;
@@ -63,7 +61,7 @@ let
6361

6462
app_rules =
6563
let
66-
floating_ids = [
64+
floatingIDs = [
6765
"com.bitwarden.desktop"
6866
"com.colliderli.iina"
6967
"com.haystacksoftware.Arq"
@@ -73,39 +71,39 @@ let
7371
"net.pornel.ImageOptim"
7472
];
7573

76-
unmanaged_ids = [
74+
unmanagedIDs = [
7775
"com.apple.systempreferences"
7876
"com.jonny.supermona"
7977
"com.tapbots.Ivory"
8078
];
8179

82-
communication_ids = [
80+
communicationIDs = [
8381
"com.apple.mail"
8482
"ch.protonmail.desktop"
8583
"com.apple.MobileSMS"
8684
];
8785

88-
screen_share_ids = [
86+
screenShareIDs = [
8987
"com.apple.ScreenSharing"
9088
"com.edovia.screens.5"
9189
];
9290
in
9391
(map (id: {
9492
app_id = id;
9593
floating = true;
96-
}) floating_ids)
94+
}) floatingIDs)
9795
++ (map (id: {
9896
app_id = id;
9997
manage = false;
100-
}) unmanaged_ids)
98+
}) unmanagedIDs)
10199
++ (map (id: {
102100
app_id = id;
103101
workspace = lib.lists.findFirstIndex (w: w == "Communication") 0 workspace_names;
104-
}) communication_ids)
102+
}) communicationIDs)
105103
++ (map (id: {
106104
app_id = id;
107105
workspace = lib.lists.findFirstIndex (w: w == "Screen Share") 0 workspace_names;
108-
}) screen_share_ids)
106+
}) screenShareIDs)
109107
++ [
110108
{
111109
app_id = "com.apple.finder";
@@ -190,6 +188,7 @@ let
190188
));
191189
};
192190

191+
settingsFormat = pkgs.formats.toml { };
193192
settingsFile = settingsFormat.generate "config.toml" settings;
194193
in
195194
{

0 commit comments

Comments
 (0)