-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Restore power profile switcher on framework (#1289)
- Loading branch information
Showing
4 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,6 +255,22 @@ configure-vfio ACTION="": | |
sudo /usr/libexec/bluefin-dx-kvmfr-setup | ||
fi | ||
|
||
# Change automatic power profile switching behavior | ||
configure-auto-power-profile ACTION="help": | ||
#!/usr/bin/bash | ||
source /usr/lib/ujust/ujust.sh | ||
OPTION={{ ACTION }} | ||
if [ "$OPTION" == "help" ]; then | ||
echo "Usage: ujust configure-auto-power-profile <option>" | ||
echo " Use 'enable' to allow automatic power profile switching based on power state | ||
echo " Use 'disable' to prevent automatic power profile switching based on power state | ||
exit 0 | ||
elif [[ "${OPTION,,}" =~ enable ]]; then | ||
gnome-extensions enable [email protected] | ||
elif [[ "${OPTION,,}" =~ disable ]]; then | ||
gnome-extensions disable [email protected] | ||
fi | ||
|
||
# Install system flatpaks for rebasers | ||
[private] | ||
install-system-flatpaks: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters