1
1
Fork 0
nixos/options/custom/scripts/power.sh
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

11 lines
283 B
Bash

#! /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