home/waybar: improve idle inhibitor
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-07-29 21:59:53 -04:00
parent 2897196e4a
commit b8f8be3d5f

View file

@ -111,13 +111,23 @@
Draw: {power} watts.''; Draw: {power} watts.'';
}; };
"inhibitor" = { "idle_inhibitor" = {
"what" = "sleep";
"format" = "{icon}"; "format" = "{icon}";
"format-icons" = { "format-icons" = {
"activated" = "󰅶"; "activated" = "󰅶";
"deactivated" = "󰾪"; "deactivated" = "󰾪";
}; };
"timeout" = 45;
"tooltip-format-activated" = ''
Sleep inhibited.
System will not sleep.'';
"tooltip-format-deactivated" = ''
Sleep uninhibited.
System will sleep normally.'';
}; };
"bluetooth" = { "bluetooth" = {
@ -193,7 +203,7 @@
"group/hardware" = { "group/hardware" = {
"orientation" = "horizontal"; "orientation" = "horizontal";
modules = ["pulseaudio" "bluetooth" "network" "power-profiles-daemon" "battery" "inhibitor" "custom/logout"]; modules = ["pulseaudio" "bluetooth" "network" "power-profiles-daemon" "battery" "idle_inhibitor" "custom/logout"];
}; };
}; };
}; };
@ -248,7 +258,7 @@
#power-profiles-daemon, #power-profiles-daemon,
#pulseaudio, #pulseaudio,
#wireplumber, #wireplumber,
#inhibitor, #idle_inhibitor,
#custom-logout, #custom-logout,
#custom-menu, #custom-menu,
#custom-sway-close, #custom-sway-close,