diff --git a/default/omarchy/omarchy-menu.jsonc b/default/omarchy/omarchy-menu.jsonc index 8374714933b1..c629b62f3dda 100644 --- a/default/omarchy/omarchy-menu.jsonc +++ b/default/omarchy/omarchy-menu.jsonc @@ -314,11 +314,11 @@ "install.gaming.steam": {"icon":"","label":"Steam","disabled":"omarchy-pkg-present steam","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-steam"}, "install.gaming.retroarch": {"icon":"󰯉","label":"RetroArch","disabled":"omarchy-pkg-present retroarch","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-retroarch"}, "install.gaming.minecraft": {"icon":"󰍳","label":"Minecraft","when":"omarchy-hw-x86","disabled":"omarchy-pkg-present minecraft-launcher","action":"omarchy-install-and-launch Minecraft minecraft-launcher minecraft-launcher"}, - "install.gaming.geforce-now": {"icon":"󰢹","label":"NVIDIA GeForce NOW","disabled":"flatpak info com.nvidia.geforcenow","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-geforce-now"}, + "install.gaming.geforce-now": {"icon":"󰢹","label":"NVIDIA GeForce NOW","when":"omarchy-hw-x86","disabled":"flatpak info com.nvidia.geforcenow","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-geforce-now"}, "install.gaming.xbox-cloud": {"icon":"","label":"Xbox Cloud Gaming","disabled":"[[ -f \"$HOME/.local/share/applications/Xbox Cloud Gaming.desktop\" ]]","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-xbox-cloud"}, "install.gaming.xbox-controllers": {"icon":"󰂯","label":"Xbox Controllers","disabled":"omarchy-pkg-present xpadneo-dkms","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-xbox-controllers"}, - "install.gaming.battlenet": {"icon":"","label":"Battle.net","disabled":"[[ -d $HOME/Games/battlenet ]]","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-battlenet"}, - "install.gaming.lutris": {"icon":"","label":"Lutris","disabled":"omarchy-pkg-present lutris","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-lutris"}, + "install.gaming.battlenet": {"icon":"","label":"Battle.net","when":"omarchy-hw-x86","disabled":"[[ -d $HOME/Games/battlenet ]]","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-battlenet"}, + "install.gaming.lutris": {"icon":"","label":"Lutris","when":"omarchy-hw-x86","disabled":"omarchy-pkg-present lutris","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-lutris"}, "install.gaming.heroic": {"icon":"󱓟","label":"Heroic (Epic Games)","when":"omarchy-hw-x86","disabled":"omarchy-pkg-present heroic-games-launcher-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-gaming-heroic"}, "install.gaming.retro-launcher": {"icon":"󰯉","label":"RetroArch Game Launcher","action":"omarchy-games-retro-install"}, "install.development.rails": {"icon":"󰫏","label":"Ruby on Rails","disabled":"[[ -d $HOME/.local/share/mise/installs/ruby ]]","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-dev-env ruby'"}, diff --git a/test/shell.d/menu-test.sh b/test/shell.d/menu-test.sh index 8c7c5d2eff48..8c7b2f06d160 100644 --- a/test/shell.d/menu-test.sh +++ b/test/shell.d/menu-test.sh @@ -299,13 +299,13 @@ assert(!defaultById['install.ai.crush'], 'menu removes Crush from Install > AI') // Software you already have keeps its place in Install, dimmed rather than // dropped, so the list reads as a catalog of what Omarchy can install. // Chromium Account is the sole Install row with anything left to hide for. The -// Windows VM, whose guest can't run elsewhere, and the installers whose vendors -// ship Linux builds for x86_64 alone hide only off x86_64. Dropbox's x86_64 -// client runs under box64 on ARM, which needs 4K pages, so it hides only where -// pages are larger. Any other `when:` here is a row that went back to vanishing -// once installed. +// Windows VM, whose guest can't run elsewhere, and the installers that need +// x86_64 binaries (vendor builds for x86_64 alone, Windows games under Wine) +// hide only off x86_64. Dropbox's x86_64 client runs under box64 on ARM, which +// needs 4K pages, so it hides only where pages are larger. Any other `when:` +// here is a row that went back to vanishing once installed. const windowsGuard = 'omarchy-hw-x86' -const x86OnlyInstalls = ['install.windows', 'install.browser.edge', 'install.service.spotify', 'install.gaming.minecraft', 'install.gaming.heroic'] +const x86OnlyInstalls = ['install.windows', 'install.browser.edge', 'install.service.spotify', 'install.gaming.minecraft', 'install.gaming.heroic', 'install.gaming.geforce-now', 'install.gaming.battlenet', 'install.gaming.lutris'] const fourKPageGuard = '[[ $(getconf PAGESIZE) == 4096 ]]' assertDeepEqual( defaultItems