From b67b0a035da0279b3cab5ba5bce3caec7905b2f2 Mon Sep 17 00:00:00 2001 From: kenji Date: Tue, 30 Jun 2026 11:46:18 -0500 Subject: [PATCH] add(apps): minecraft --- apps/minecraft/default.nix | 5 +++++ modules/home/apps-optional.nix | 3 ++- modules/home/gaming.nix | 5 +---- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 apps/minecraft/default.nix diff --git a/apps/minecraft/default.nix b/apps/minecraft/default.nix new file mode 100644 index 0000000..0b43553 --- /dev/null +++ b/apps/minecraft/default.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + mcpelauncher-client + ]; +} diff --git a/modules/home/apps-optional.nix b/modules/home/apps-optional.nix index 5d48bf2..9281118 100644 --- a/modules/home/apps-optional.nix +++ b/modules/home/apps-optional.nix @@ -13,8 +13,9 @@ ../../apps/ttyper ../../apps/libreoffice ../../apps/antigravity - # GAMESZ + # GAMES ../../apps/mo2 + ../../apps/minecraft ]; home.packages = with pkgs; [ # TODO: migrate these to `apps` folder. diff --git a/modules/home/gaming.nix b/modules/home/gaming.nix index 90b11a4..a9feef0 100644 --- a/modules/home/gaming.nix +++ b/modules/home/gaming.nix @@ -39,6 +39,7 @@ "match:${selector}, fullscreen on" "match:${selector}, immediate on" "match:${selector}, tile on" + "match:${selector}, workspace name:gaming" # <-- This was the missing rule ]; stayFocusedRules = lib.flatten (map ( @@ -120,10 +121,6 @@ in { ++ (mkGameRules "class ^wine-.*$") ++ (mkGameRules "title ^Wine .*$") ++ (mkGameRules "initial_title ^(?i)godot.*$") - # "monitor 0, initialTitle:^(?i)godot.*$" - # "fullscreen, initialTitle:^(?i)godot.*$" - # "tile, initialTitle:^(?i)godot.*$" - # ] ++ stayFocusedRules; }; }