Networkwidget: Move battery reload to udev itself.
This commit is contained in:
parent
6a93742777
commit
abbb23b615
|
@ -11,7 +11,6 @@ function networkwidget() {
|
||||||
local icon=""
|
local icon=""
|
||||||
local class=""
|
local class=""
|
||||||
|
|
||||||
[[ ${#_bts_raw[@]} -gt 0 ]] && sleep 2 # HACK: Darn bluetooth battery levels!
|
|
||||||
for bt in ${_bts_raw[@]}; do
|
for bt in ${_bts_raw[@]}; do
|
||||||
local name=$(printf "%s" ${bt} | cut -d\ -f3)
|
local name=$(printf "%s" ${bt} | cut -d\ -f3)
|
||||||
local mac=$(printf "%s" ${bt} | cut -d\ -f2 | sed -e "s/:/_/g")
|
local mac=$(printf "%s" ${bt} | cut -d\ -f2 | sed -e "s/:/_/g")
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
let
|
let
|
||||||
waybar_reload = pkgs.writeShellScriptBin "bt-wb-dispatcher" ''
|
waybar_reload = pkgs.writeShellScriptBin "bt-wb-dispatcher" ''
|
||||||
${pkgs.procps}/bin/pkill -RTMIN+7 waybar
|
${pkgs.procps}/bin/pkill -RTMIN+7 waybar
|
||||||
|
${pkgs.coreutils}/bin/sleep 2
|
||||||
|
${pkgs.procps}/bin/pkill -RTMIN+7 waybar
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue