waybar: added suspend inhibitor and logout button

This commit is contained in:
Aly Raffauf 2024-04-09 20:30:09 -04:00
parent c90a2c8e13
commit 974a066374
2 changed files with 36 additions and 4 deletions

View file

@ -31,8 +31,11 @@
"bluetooth"
"network"
"pulseaudio"
# "wireplumber"
"battery"
"inhibitor"
"power-profiles-daemon"
"custom/logout"
"clock"
];
@ -45,9 +48,12 @@
};
"persistent-workspaces" = {"*" = 4;};
};
"hyprland/window" = {"max-length" = 100;};
"hyprland/window" = {
"max-length" = 100;
"separate-outputs" = true;
};
"clock" = {
"tooltip-format" = "{:%Y-%m-%d | %H:%M}";
# "tooltip-format" = "{:%Y-%m-%d | %H:%M}";
"interval" = 60;
"format" = "{:%I:%M%p}";
};
@ -59,6 +65,14 @@
{capacity}%: {timeTo}.
Using {power} watts.'';
};
"inhibitor" = {
"what" = "sleep";
"format" = "{icon}";
"format-icons" = {
"activated" = "";
"deactivated" = "";
};
};
"bluetooth" = {
"format" = "󰂯 {status}";
"format-disabled" = ""; # an empty format will hide the module
@ -74,7 +88,7 @@
"pulseaudio" = {
"format" = " {volume}%";
"format-bluetooth" = "{volume}% {icon}󰂯";
"format-muted" = "";
"format-muted" = "";
"format-icons" = {
"headphones" = "󰋋";
"handsfree" = "󰋎";
@ -83,6 +97,17 @@
"ignored-sinks" = ["Easy Effects Sink"];
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol -t 3";
};
"wireplumber" = {
"format" = " {volume}%";
"format-bluetooth" = "{volume}% {icon}󰂯";
"format-muted" = "";
"format-icons" = {
"headphones" = "󰋋";
"handsfree" = "󰋎";
"headset" = "󰋎";
};
"on-click" = "helvum";
};
"network" = {
"format-wifi" = "󰣾 {signalStrength}%";
"format-ethernet" = "󰈀";
@ -94,6 +119,10 @@
"on-click" = "${pkgs.alacritty}/bin/alacritty --class nmtui -e ${pkgs.networkmanager}/bin/nmtui";
};
"tray" = {"spacing" = 10;};
"custom/logout" = {
"on-click" = "${pkgs.wlogout}/bin/wlogout";
"format" = "󰗽";
};
"power-profiles-daemon" = {
"format" = "{icon}";
"tooltip-format" = ''

View file

@ -27,8 +27,11 @@ window#waybar {
#network,
#power-profiles-daemon,
#pulseaudio,
#wireplumber,
#inhibitor,
#custom-logout,
#tray {
padding: 0 10px;
padding: 0 7.5px;
margin: 0 5px;
}