mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 11:13:54 -05:00
waybar: added suspend inhibitor and logout button
This commit is contained in:
parent
c90a2c8e13
commit
974a066374
|
@ -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" = ''
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue