1
1
Fork 0
nixos/options/custom/scripts/power.sh

12 lines
283 B
Bash
Raw Normal View History

#! /usr/bin/env bash
# Toggle power-saver mode
if [[ "$(powerprofilesctl get)" == 'power-saver' ]]; then
powerprofilesctl set balanced
notify-send '> power' 'Balanced' --urgency low
else
powerprofilesctl set power-saver
notify-send '> power' 'Power Saver' --urgency low
fi