Rename project to legion-gpu-mode-switcher
Update all name references in README, install.sh, and desktop file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bbfc1f165b
commit
5e45d157d1
3 changed files with 10 additions and 10 deletions
10
README.md
10
README.md
|
|
@ -1,4 +1,4 @@
|
|||
# gpu-mode-tray
|
||||
# Legion GPU Mode Switcher
|
||||
|
||||
A lightweight KDE system tray application for switching GPU modes on Lenovo Legion laptops running the [lenovolegionlinux](https://github.com/johnfanv2/LenovoLegionLinux) driver.
|
||||
|
||||
|
|
@ -44,20 +44,20 @@ Not Arch or KDE specific — works on any systemd-based distro (Ubuntu, Fedora,
|
|||
## Installation
|
||||
|
||||
```bash
|
||||
git clone https://github.com/pongsn/gpu-mode-tray.git
|
||||
cd gpu-mode-tray
|
||||
git clone https://github.com/pongsn/legion-gpu-mode-switcher.git
|
||||
cd legion-gpu-mode-switcher
|
||||
sudo bash install.sh
|
||||
```
|
||||
|
||||
`install.sh` will:
|
||||
1. Install the polkit policy to `/usr/share/polkit-1/actions/` (enables passwordless switching for the active session)
|
||||
2. Install the app to `/usr/local/bin/gpu-mode-tray`
|
||||
2. Install the app to `/usr/local/bin/legion-gpu-mode-switcher`
|
||||
3. Install the autostart entry to `~/.config/autostart/` (starts on next login)
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
gpu-mode-tray &
|
||||
legion-gpu-mode-switcher &
|
||||
```
|
||||
|
||||
Right-click the tray icon to switch GPU mode. A reboot is required for any mode change to take effect — this is a hardware MUX limitation, same as on Windows.
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ set -euo pipefail
|
|||
|
||||
POLICY_FILE="com.lenovolegion.gpumodetray.policy"
|
||||
POLICY_DST="/usr/share/polkit-1/actions/$POLICY_FILE"
|
||||
APP_DST="/usr/local/bin/gpu-mode-tray"
|
||||
APP_DST="/usr/local/bin/legion-gpu-mode-switcher"
|
||||
AUTOSTART_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/autostart"
|
||||
DESKTOP_FILE="gpu-mode-tray.desktop"
|
||||
DESKTOP_FILE="legion-gpu-mode-switcher.desktop"
|
||||
|
||||
echo "Installing polkit policy -> $POLICY_DST"
|
||||
sudo install -m 644 "$POLICY_FILE" "$POLICY_DST"
|
||||
|
|
@ -17,5 +17,5 @@ echo "Installing autostart entry -> $AUTOSTART_DIR/$DESKTOP_FILE"
|
|||
mkdir -p "$AUTOSTART_DIR"
|
||||
install -m 644 "$DESKTOP_FILE" "$AUTOSTART_DIR/$DESKTOP_FILE"
|
||||
|
||||
echo "Done. Run now with: gpu-mode-tray"
|
||||
echo "Done. Run now with: legion-gpu-mode-switcher"
|
||||
echo "Will autostart on next login."
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=GPU Mode Tray
|
||||
Name=Legion GPU Mode Switcher
|
||||
Comment=GPU mode switcher for Lenovo Legion
|
||||
Exec=/usr/local/bin/gpu-mode-tray
|
||||
Exec=/usr/local/bin/legion-gpu-mode-switcher
|
||||
Icon=preferences-desktop-display
|
||||
X-KDE-autostart-after=panel
|
||||
Loading…
Add table
Add a link
Reference in a new issue