mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-22 02:41:50 +08:00
Sleep less when power on
This commit is contained in:
parent
e0d7aaaaab
commit
93edaee6a1
@ -14,12 +14,11 @@ choice=$(printf "%s\n" "${choices[@]}" | fuzzel -d --prompt ": ")
|
|||||||
|
|
||||||
if test "$choice" = lock ; then
|
if test "$choice" = lock ; then
|
||||||
# sleep less when power on
|
# sleep less when power on
|
||||||
# if acpi -a | grep -q on; then
|
if acpi -a | grep -q on; then
|
||||||
# sleep_time=3600
|
sleep_time=3600
|
||||||
# else
|
else
|
||||||
# sleep_time=10
|
sleep_time=10
|
||||||
# fi
|
fi
|
||||||
sleep_time=10
|
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
|
|
||||||
bright=`light`
|
bright=`light`
|
||||||
|
Loading…
Reference in New Issue
Block a user