add bedroom light control to waybar

This commit is contained in:
mjallen18
2024-09-04 16:09:05 -05:00
parent 0b6074e7dd
commit 81f9d46d9b
9 changed files with 93 additions and 9 deletions

View File

@@ -21,6 +21,7 @@
modules-right = [
"tray"
"custom/updates"
"custom/lights"
"temperature"
"temperature#gpu"
"keyboard-state#capslock"
@@ -49,7 +50,7 @@
tooltip = true;
format = { };
interval = 30;
exec = "sudo waybar-weather";
exec = "waybar-weather";
return-type = "json";
};
@@ -57,10 +58,18 @@
tooltip = true;
format = { };
interval = 30;
exec = "sudo waybar-updates";
exec = "waybar-updates";
return-type = "json";
};
"custom/lights" = {
tooltip = false;
format = "󱉓";
# interval = 30;
on-click = "nix-shell /home/matt/.config/waybar/scripts/hass.nix --run \"python /home/matt/.config/waybar/scripts/hass.py --toggle_light light.bedroom_lights\"";
# return-type = "json";
};
temperature = {
hwmon-path = "/sys/class/hwmon/hwmon4/temp1_input";
critical-threshold = 90;
@@ -332,6 +341,14 @@
margin-left: 1rem;
}
#custom-lights {
color: @nord8;
background-color: @nord0;
padding: 0.5rem 1rem;
margin: 5px 0;
border-radius: 0;
}
/* ------------- */
#tray {