fix(eww): Added cooldowns to scripts using dbus-monitor

In order to save some CPU
This commit is contained in:
GaspardCulis 2024-11-14 09:15:25 +01:00
parent 060e6735bf
commit d9e94d99c1
2 changed files with 2 additions and 0 deletions

View file

@ -72,4 +72,5 @@ print_connectivity_info () {
print_connectivity_info
dbus-monitor --system "interface=org.freedesktop.DBus.ObjectManager" 2> /dev/null | while read -r line; do
print_connectivity_info
sleep 0.1
done

View file

@ -11,4 +11,5 @@ info (){
info
dbus-monitor "path=/org/mpris/MediaPlayer2,member=PropertiesChanged" | while read -r line; do
info
sleep 0.1
done