apps and waybar
This commit is contained in:
parent
3a08d19841
commit
f509e8abbc
3 changed files with 100 additions and 23 deletions
|
@ -14,12 +14,6 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# runtime requirements for modules
|
||||
user.packages = with pkgs; [
|
||||
# mpris
|
||||
playerctl
|
||||
];
|
||||
|
||||
modules.desktop.execOnStart = [ "${lib.getExe cfg.package}" ];
|
||||
hm.programs.waybar = {
|
||||
enable = true;
|
||||
|
@ -172,11 +166,17 @@ in {
|
|||
cpu = {
|
||||
interval = 4;
|
||||
format = " {usage}% {avg_frequency}GHz";
|
||||
on-click = "${lib.getExe pkgs.gnome-system-monitor}";
|
||||
};
|
||||
memory = {
|
||||
interval = 4;
|
||||
format = " {percentage}%";
|
||||
tooltip-format = "{used:0.1f}GiB/{avail:0.1f}GiB used\n{swapUsed:0.1f}GiB/{swapAvail:0.1f}GiB swap";
|
||||
on-click = "${lib.getExe pkgs.gnome-system-monitor}";
|
||||
states = {
|
||||
warning = 80;
|
||||
critical = 90;
|
||||
};
|
||||
};
|
||||
power-profiles-daemon = {
|
||||
format = "{icon}";
|
||||
|
@ -212,10 +212,11 @@ in {
|
|||
];
|
||||
};
|
||||
mpris = {
|
||||
format = "{status_icon} {dynamic}";
|
||||
format = "♫ {dynamic}";
|
||||
format-paused = "{status_icon} {dynamic}";
|
||||
dynamic-order = [ "title" ];
|
||||
tooltip-format = "{player}: {dynamic}";
|
||||
dynamic-order = [ "artist" "title" ];
|
||||
tooltip-format = "{player} | {status_icon} {artist} - {title} from {album} ({position}/{length})";
|
||||
title-length = 48;
|
||||
interval = 1;
|
||||
status-icons = {
|
||||
playing = "⏸";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue