feat: Adds idle-inhibitor to waybar.

This commit is contained in:
2025-11-16 18:06:58 -05:00
parent 9977a8806b
commit 8daa596205
2 changed files with 17 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": [ "modules-right": [
"pulseaudio", "pulseaudio",
"idle_inhibitor",
"tray", "tray",
"cpu", "cpu",
"memory", "memory",
@@ -76,4 +77,12 @@
// "format-full": "", // "format-full": "",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
}, },
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
},
}
}
} }

View File

@@ -54,7 +54,8 @@
#cpu, #cpu,
#memory, #memory,
#custom-lock, #custom-lock,
#custom-power { #custom-power,
#idle_inhibitor {
background-color: @background; background-color: @background;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
margin: 5px 0; margin: 5px 0;
@@ -69,12 +70,18 @@
font-weight: 900; font-weight: 900;
} }
#pulseaudio { #pulseaudio {
color: @red; color: @red;
border-radius: 10px 0px 0px 10px; border-radius: 10px 0px 0px 10px;
margin-left: 1rem; margin-left: 1rem;
} }
#idle_inhibitor {
border-radius: 0px;
margin: 0px;
}
#tray { #tray {
color: @blue; color: @blue;
border-radius: 0px 10px 10px 0px; border-radius: 0px 10px 10px 0px;