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

View file

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