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
#!/bin/bash | |
# Function to disable GUI and power management | |
disable_gui_power() { | |
echo "Disabling GUI and power management..." | |
# Disable sleep and hibernate | |
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target | |
# Disable GNOME power management |
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