#!/bin/bash # LogiSwitch for macOS - remove for the current user. # Stops the menu-bar app, removes it from login, deletes its files. # Logitech software, devices and pairings are not touched. DIR="$HOME/Library/Application Support/LogiSwitch" PLIST="$HOME/Library/LaunchAgents/com.logiswitch.agent.plist" LABEL="com.logiswitch.agent" launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null || true pkill -f "Application Support/LogiSwitch/LogiSwitch$" 2>/dev/null || true rm -f "$PLIST" rm -rf "$DIR" echo "LogiSwitch removed."