Просмотр исходного кода

~/.xinitrc: Save energy by updating only every 30 seconds

This makes my system a *lot* quieter.  Like really a lot, lot, lot
quieter, it really surprised me how much of a difference this made.
Apparently NetworkManager needs a lot of cpu to tell me if it is
connected every second.  Didn't know that, know now.

The only downside is that I need to wait 30 second after waking up from
suspending...
Lu Stadler лет назад: 7
Родитель
Сommit
b5cc1c39db
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .xinitrc

+ 1 - 1
.xinitrc

34
#xrandr --output LVDS1 --off --output DP1 --mode 1920x1080
34
#xrandr --output LVDS1 --off --output DP1 --mode 1920x1080
35
35
36
while xsetroot -name "$(~/.config/dwm/status.sh)"; do
36
while xsetroot -name "$(~/.config/dwm/status.sh)"; do
37
	sleep 1
37
	sleep 30
38
done&
38
done&
39
39
40
exec ~/t/suckless/dwm/dwm
40
exec ~/t/suckless/dwm/dwm