diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 4a1b8565..8f9867f8 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -465,11 +465,12 @@ show_install_elixir_menu() { } show_remove_menu() { - case $(menu "Remove" "󰣇 Package\n Web App\n TUI\n󰵮 Development\n󰏓 Preinstalls\n Dictation\n󰸌 Theme\n󰍲 Windows\n󰈷 Fingerprint\n Fido2") in + case $(menu "Remove" "󰣇 Package\n Web App\n TUI\n󰵮 Development\n Gaming\n󰏓 Preinstalls\n Dictation\n󰸌 Theme\n󰍲 Windows\n󰈷 Fingerprint\n Fido2") in *Package*) terminal omarchy-pkg-remove ;; *Web*) present_terminal omarchy-webapp-remove ;; *TUI*) present_terminal omarchy-tui-remove ;; *Development*) show_remove_development_menu ;; + *Gaming*) show_remove_gaming_menu ;; *Preinstalls*) present_terminal omarchy-remove-preinstalls ;; *Dictation*) present_terminal omarchy-voxtype-remove ;; *Theme*) present_terminal omarchy-theme-remove ;; @@ -480,6 +481,18 @@ show_remove_menu() { esac } +show_remove_gaming_menu() { + case $(menu "Remove" " Steam\n RetroArch\n󰍳 Minecraft\n Battle.net\n󰢹 NVIDIA GeForce NOW\n󰖺 Xbox Controller") in + *Steam*) present_terminal omarchy-remove-gaming-steam ;; + *RetroArch*) present_terminal omarchy-remove-gaming-retroarch ;; + *Minecraft*) present_terminal omarchy-remove-gaming-minecraft ;; + *Battle.net*) present_terminal omarchy-remove-gaming-battlenet ;; + *GeForce*) present_terminal omarchy-remove-gaming-geforce-now ;; + *Xbox*) present_terminal omarchy-remove-gaming-xbox-controllers ;; + *) show_remove_menu ;; + esac +} + show_remove_development_menu() { case $(menu "Remove" "󰫏 Ruby on Rails\n JavaScript\n Go\n PHP\n Python\n Elixir\n Zig\n Rust\n Java\n .NET\n OCaml\n Clojure\n Scala") in *Rails*) present_terminal "omarchy-remove-dev-env ruby" ;; diff --git a/bin/omarchy-remove-gaming-battlenet b/bin/omarchy-remove-gaming-battlenet new file mode 100755 index 00000000..b113c0c0 --- /dev/null +++ b/bin/omarchy-remove-gaming-battlenet @@ -0,0 +1,23 @@ +#!/bin/bash + +# omarchy:summary=Remove Battle.net along with Lutris, Wine, umu-launcher, and all their configs and caches. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop lutris wine-staging wine-mono wine-gecko winetricks python-protobuf umu-launcher + +rm -rf \ + "$HOME/Games/battlenet" \ + "$HOME/Games/battle-net" \ + "$HOME/.config/lutris" \ + "$HOME/.local/share/lutris" \ + "$HOME/.cache/lutris" \ + "$HOME/.local/share/umu" \ + "$HOME/.cache/umu" \ + "$HOME/.wine" \ + "$HOME/.cache/wine" \ + "$HOME/.cache/winetricks" + +echo "" +echo "Battle.net, Lutris, Wine, umu-launcher, and their configs have been removed." diff --git a/bin/omarchy-remove-gaming-geforce-now b/bin/omarchy-remove-gaming-geforce-now new file mode 100755 index 00000000..9947ee10 --- /dev/null +++ b/bin/omarchy-remove-gaming-geforce-now @@ -0,0 +1,12 @@ +#!/bin/bash + +# omarchy:summary=Remove the GeForce NOW Flatpak app and its data. + +set -e + +if command -v flatpak >/dev/null && flatpak info com.nvidia.geforcenow &>/dev/null; then + flatpak uninstall -y --delete-data com.nvidia.geforcenow +fi + +echo "" +echo "GeForce NOW removed." diff --git a/bin/omarchy-remove-gaming-minecraft b/bin/omarchy-remove-gaming-minecraft new file mode 100755 index 00000000..1e439213 --- /dev/null +++ b/bin/omarchy-remove-gaming-minecraft @@ -0,0 +1,17 @@ +#!/bin/bash + +# omarchy:summary=Remove the Minecraft launcher along with its worlds, mods, and caches. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop minecraft-launcher + +rm -rf \ + "$HOME/.minecraft" \ + "$HOME/.config/Minecraft Launcher" \ + "$HOME/.local/share/minecraft-launcher" \ + "$HOME/.cache/minecraft" + +echo "" +echo "Minecraft and its data have been removed." diff --git a/bin/omarchy-remove-gaming-retroarch b/bin/omarchy-remove-gaming-retroarch new file mode 100755 index 00000000..d3c101c8 --- /dev/null +++ b/bin/omarchy-remove-gaming-retroarch @@ -0,0 +1,33 @@ +#!/bin/bash + +# omarchy:summary=Remove RetroArch, all libretro cores, and its config/saves. Leaves ~/Games/roms and ~/Games/bios alone. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop \ + retroarch \ + retroarch-assets-glui retroarch-assets-ozone retroarch-assets-xmb \ + libretro-beetle-pce libretro-beetle-pce-fast libretro-beetle-psx libretro-beetle-psx-hw libretro-beetle-supergrafx \ + libretro-blastem \ + libretro-bsnes libretro-bsnes-hd libretro-bsnes2014 \ + libretro-core-info \ + libretro-desmume libretro-dolphin libretro-flycast \ + libretro-gambatte libretro-genesis-plus-gx \ + libretro-kronos \ + libretro-mame libretro-mame2016 libretro-melonds libretro-mesen libretro-mesen-s libretro-mgba libretro-mupen64plus-next \ + libretro-nestopia \ + libretro-overlays \ + libretro-parallel-n64 libretro-picodrive libretro-play libretro-ppsspp \ + libretro-sameboy libretro-scummvm libretro-shaders-slang libretro-snes9x \ + libretro-yabause \ + libretro-fbneo-git + +rm -rf \ + "$HOME/.config/retroarch" \ + "$HOME/.local/share/retroarch" \ + "$HOME/.cache/retroarch" + +echo "" +echo "RetroArch and its cores have been removed." +echo "ROMs and BIOS files at ~/Games/roms and ~/Games/bios were left in place." diff --git a/bin/omarchy-remove-gaming-steam b/bin/omarchy-remove-gaming-steam new file mode 100755 index 00000000..1b20ec22 --- /dev/null +++ b/bin/omarchy-remove-gaming-steam @@ -0,0 +1,17 @@ +#!/bin/bash + +# omarchy:summary=Remove Steam and all of its game libraries, configs, and caches. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop steam + +rm -rf \ + "$HOME/.steam" \ + "$HOME/.local/share/Steam" \ + "$HOME/.config/steam" \ + "$HOME/.cache/steam" + +echo "" +echo "Steam and its data have been removed." diff --git a/bin/omarchy-remove-gaming-xbox-controllers b/bin/omarchy-remove-gaming-xbox-controllers new file mode 100755 index 00000000..d20af7e6 --- /dev/null +++ b/bin/omarchy-remove-gaming-xbox-controllers @@ -0,0 +1,13 @@ +#!/bin/bash + +# omarchy:summary=Remove the xpadneo Xbox controller driver and undo its module/blacklist config. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop xpadneo-dkms + +sudo rm -f /etc/modprobe.d/blacklist-xpad.conf /etc/modules-load.d/xpadneo.conf + +echo "" +echo "Xbox controller support removed. Reboot to fully unload xpadneo and restore xpad."