mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
feat: add idle inhibitor to waybar
This commit is contained in:
parent
7b0d37bb5b
commit
9de7b077e2
1 changed files with 24 additions and 7 deletions
|
@ -46,11 +46,13 @@ in
|
||||||
"custom/launcher"
|
"custom/launcher"
|
||||||
]
|
]
|
||||||
++ (lib.optionals isDesktop [
|
++ (lib.optionals isDesktop [
|
||||||
|
|
||||||
"custom/playerctl#backward"
|
"custom/playerctl#backward"
|
||||||
"custom/playerctl#play"
|
"custom/playerctl#play"
|
||||||
"custom/playerctl#foward"
|
"custom/playerctl#forward"
|
||||||
])
|
])
|
||||||
|
++ [
|
||||||
|
"idle_inhibitor"
|
||||||
|
]
|
||||||
++ (lib.optionals isLaptop [
|
++ (lib.optionals isLaptop [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
])
|
])
|
||||||
|
@ -69,6 +71,13 @@ in
|
||||||
"network"
|
"network"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
idle_inhibitor = {
|
||||||
|
format = "{icon}";
|
||||||
|
format-icons = {
|
||||||
|
activated = " ";
|
||||||
|
deactivated = " ";
|
||||||
|
};
|
||||||
|
};
|
||||||
clock = {
|
clock = {
|
||||||
format = " {:%a, %d %b, %I:%M %p}";
|
format = " {:%a, %d %b, %I:%M %p}";
|
||||||
tooltip = "true";
|
tooltip = "true";
|
||||||
|
@ -158,7 +167,7 @@ in
|
||||||
Stopped = "<span> </span>";
|
Stopped = "<span> </span>";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"custom/playerctl#foward" = {
|
"custom/playerctl#forward" = {
|
||||||
format = " ";
|
format = " ";
|
||||||
on-click = "playerctl next";
|
on-click = "playerctl next";
|
||||||
on-scroll-up = "playerctl volume .05+";
|
on-scroll-up = "playerctl volume .05+";
|
||||||
|
@ -334,7 +343,7 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray, #pulseaudio, #network, #battery,
|
#tray, #pulseaudio, #network, #battery,
|
||||||
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward{
|
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward{
|
||||||
background: #${palette.base00};
|
background: #${palette.base00};
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 4px 0px;
|
margin: 4px 0px;
|
||||||
|
@ -363,11 +372,11 @@ in
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward {
|
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward {
|
||||||
background: #${palette.base00};
|
background: #${palette.base00};
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.foward:hover{
|
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.forward:hover{
|
||||||
color: #${palette.base05};
|
color: #${palette.base05};
|
||||||
}
|
}
|
||||||
#custom-playerctl.backward {
|
#custom-playerctl.backward {
|
||||||
|
@ -380,7 +389,7 @@ in
|
||||||
color: #${palette.base0A};
|
color: #${palette.base0A};
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
}
|
}
|
||||||
#custom-playerctl.foward {
|
#custom-playerctl.forward {
|
||||||
color: #${palette.base08};
|
color: #${palette.base08};
|
||||||
border-radius: 0px 10px 24px 0px;
|
border-radius: 0px 10px 24px 0px;
|
||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
|
@ -394,6 +403,14 @@ in
|
||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
#idle_inhibitor {
|
||||||
|
background: #${palette.base00};
|
||||||
|
color: #${palette.base05};
|
||||||
|
padding: 0 10px 0 15px;
|
||||||
|
border-radius: 24px 10px 24px 10px;
|
||||||
|
margin: 4px 7px 4px 0;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
#window{
|
#window{
|
||||||
background: #${palette.base00};
|
background: #${palette.base00};
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue