mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
evil daemon system, dependency list update, README improvements.
Former-commit-id: db310f8e49
Former-commit-id: 4f25f9200c3ac9f9385daca5a68378249ff0329e
Former-commit-id: 69fa3954e5738446a59b409b7e326233e7c3ef55
Former-commit-id: 673176f7857e39f3455f4ccb426eef2789c0e891
12 lines
309 B
Bash
Executable file
12 lines
309 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Toggle compton
|
|
# Requires that you have allowed cpufreq-set to run without password.
|
|
if pgrep compton; then
|
|
pkill compton
|
|
sudo cpufreq-set -g performance
|
|
echo "ON"
|
|
else
|
|
compton --config ~/.config/compton/compton.conf &
|
|
sudo cpufreq-set -g powersave
|
|
echo "OFF"
|
|
fi
|