Due to the current quick way to change profile which works with dbus, this script is discontinued. I'm leaving this repo open in case someone wants to ask questions about this in case one wants to try using this code for other purposes
An unaffiliated external profile changer for tuxedo-control-center
This program runs by normal user to read a specified file and runs Tuxedo Control Center's tccd to change to the profile as described in the file read.
- Safely give direct orders to the backend of TCC to change the profile in use without having to use sudo or be root.
- Safely change TCC profile based on events (E.g. a keyboard shortcut) without the need for such program to be running as root.
- You can only select a profile to activate.
- The profile to activate must be defined in a json file in the format TCC uses.
- The profile selection files must be owned by root and may only be editable by root.
git clone https://github.com/brunoais/tuxedo-control-center-profile-changer.git
sudo make install
- Create a profile file
sudo cat << EOF > new_profile
{"stateMap":{"power_ac":"Default","power_bat":"Default"}}
EOF
sudo chown root:root new_profile
sudo chmod 755 new_profile
- Then activate it whenever you want
power-profile-change new_profile
No effort is made to make sure TCC is installed
I'm trying to make a .deb file using checkinstall but those efforts are not giving results. If you can find the problems please submit a PR.
- TCC's UI appears to be unaware of changes made by this program and it will show the profile that was previously set.