perf(waybar): fix some bugs causing high cpu usage in waybar
This commit is contained in:
parent
325466cb17
commit
f677db7cb5
@ -23,12 +23,11 @@
|
||||
"custom/lock"
|
||||
],
|
||||
"custom/launcher": {
|
||||
"format": "{}",
|
||||
"format": "",
|
||||
"tooltip": false,
|
||||
"min-length": 5,
|
||||
"interval": 1,
|
||||
"on-click": "wofi",
|
||||
"exec": "printf ''"
|
||||
"interval": "once"
|
||||
},
|
||||
"battery": {
|
||||
"min-length": 5,
|
||||
@ -196,7 +195,6 @@
|
||||
"return-type": "json",
|
||||
"on-click": "playerctl play-pause",
|
||||
"exec": "~/.config/waybar/scripts/get-media.bash",
|
||||
"escape": true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
@ -21,7 +21,7 @@ get-album-info () {
|
||||
fi
|
||||
|
||||
printf '{"class": "%s", "text": "%s"}\n' "${class}" "${text}"
|
||||
sleep .08
|
||||
sleep .5
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,10 @@
|
||||
rgba(149, 127, 184, 0.9)
|
||||
);
|
||||
background-size: 400% 400%;
|
||||
animation: gradient_scroll 10s ease infinite;
|
||||
/*
|
||||
* NOTE: As much as I'd love to have this animation on, gtk enjoys being a massive pile of shit and causes the CPU to
|
||||
* turn into a space heater. */
|
||||
/* animation: gradient_scroll 10s ease infinite; */
|
||||
}
|
||||
|
||||
/* Launcher */
|
||||
|
Loading…
x
Reference in New Issue
Block a user