legion-gpu-mode-switcher/com.lenovolegion.gpumodetray.policy
pongsn bbfc1f165b Initial release: GPU mode tray app for Lenovo Legion
PyQt6 system tray app for switching between Hybrid and NVIDIA-only
GPU modes via lenovolegionlinux (legion_cli). Includes polkit policy
for passwordless switching, KDE autostart entry, and install script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 02:23:11 -05:00

17 lines
791 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="com.lenovolegion.gpumodetray.switch">
<description>Switch GPU mode (Hybrid / NVIDIA only)</description>
<message>Authentication is required to switch the GPU mode. A reboot will be needed.</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/legion_cli</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>