more powersaving for macbook

This commit is contained in:
Enrico Fasoli 2015-09-12 21:10:47 +02:00
parent 589db2d35d
commit 1d1f878bcc
2 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,6 @@
powerManagement = {
enable = true;
resumeCommands = "i3lock -u -c 1d1f21 -i /home/fazo/Pictures/background.jpg";
};
time.timeZone = "Europe/Rome";
@ -149,7 +148,7 @@
};
logind.extraConfig = ''
handlePowerKey=ignore
HandlePowerKey="ignore"
'';
upower.enable = true;

View File

@ -9,7 +9,7 @@ GREEN2="#6d6137"
BROWN="#776049"
buildClock() {
echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M:%S")"
echo -n "%{F$WHITE2}$(date "+%A, %e %B, %k:%M")"
}
getVolume() {
@ -96,7 +96,7 @@ buildBar () {
while true
do
echo " $(getMPD) %{c}$(buildClock) %{r} $(getLOAD) $(separator) $(getMEM) $(separator) $(getDISK) $(separator) $(getNET) $(separator) $(getVolume) $(separator) $(getBAT) "
sleep 1
sleep 5
done
}