mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:13:44 +01:00
12 lines
427 B
Bash
Executable File
12 lines
427 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# power-profiles-daemon implementation:
|
|
# needs package power-profiles-daemon installed and the service running see here:
|
|
# https://wiki.archlinux.org/title/CPU_frequency_scaling#power-profiles-daemon
|
|
# used in i3-blocks: ~/.config/i3/i3blocks.conf together with: ~/.config/i3/scripts/power-profiles
|
|
|
|
# script to show current power profile
|
|
|
|
current_profile=$(powerprofilesctl get)
|
|
echo "$current_profile"
|