waybar: reformat and sort

This commit is contained in:
Aly Raffauf 2024-07-30 18:14:41 -04:00
parent ea7811692d
commit 69f7c7cc84

View file

@ -31,6 +31,7 @@
"hyprland/workspaces" = { "hyprland/workspaces" = {
"all-outputs" = true; "all-outputs" = true;
"format" = "{icon} {name}"; "format" = "{icon} {name}";
"format-icons" = { "format-icons" = {
"default" = "󰝥"; "default" = "󰝥";
"active" = "󰪥"; "active" = "󰪥";
@ -46,18 +47,20 @@
"hyprland/window" = { "hyprland/window" = {
"format" = ""; "format" = "";
"icon" = true;
"max-length" = 100; "max-length" = 100;
"separate-outputs" = true; "separate-outputs" = true;
"icon" = true;
}; };
"sway/workspaces" = { "sway/workspaces" = {
"all-outputs" = true; "all-outputs" = true;
"format" = "{icon} {name}"; "format" = "{icon} {name}";
"format-icons" = { "format-icons" = {
"default" = "󰝥"; "default" = "󰝥";
"focused" = "󰪥"; "focused" = "󰪥";
}; };
"sort-by" = "id"; "sort-by" = "id";
}; };
@ -71,8 +74,8 @@
"sway/scratchpad" = { "sway/scratchpad" = {
"format" = "{icon} {count}"; "format" = "{icon} {count}";
"show-empty" = false;
"format-icons" = ["" ""]; "format-icons" = ["" ""];
"show-empty" = false;
"tooltip" = true; "tooltip" = true;
"tooltip-format" = "{app}: {title}"; "tooltip-format" = "{app}: {title}";
}; };
@ -98,18 +101,20 @@
}; };
"clock" = { "clock" = {
"tooltip-format" = "{:%Y-%m-%d | %H:%M}";
"interval" = 60;
"format" = "{:%I:%M%p}"; "format" = "{:%I:%M%p}";
"interval" = 60;
"tooltip-format" = "{:%Y-%m-%d | %H:%M}";
}; };
"battery" = { "battery" = {
"states" = {"critical" = 20;};
"format" = "{icon}"; "format" = "{icon}";
"format-icons" = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"]; "format-icons" = ["󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
"tooltip-format" = '' "tooltip-format" = ''
{capacity}%: {timeTo}. {capacity}%: {timeTo}.
Draw: {power} watts.''; Draw: {power} watts.'';
"states" = {"critical" = 20;};
}; };
"idle_inhibitor" = { "idle_inhibitor" = {
@ -123,25 +128,27 @@
"timeout" = 45; "timeout" = 45;
"tooltip-format-activated" = '' "tooltip-format-activated" = ''
Sleep inhibited. Idle inhibited.
System will not sleep.''; System will not sleep.'';
"tooltip-format-deactivated" = '' "tooltip-format-deactivated" = ''
Sleep uninhibited. Idle uninhibited.
System will sleep normally.''; System will sleep normally.'';
}; };
"bluetooth" = { "bluetooth" = {
"format" = ""; "format" = "";
"format-disabled" = ""; # an empty format will hide the module
"format-connected" = " {num_connections}"; "format-connected" = " {num_connections}";
"format-disabled" = ""; # an empty format will hide the module
"on-click" = lib.getExe' pkgs.blueberry "blueberry";
"tooltip-format" = "{controller_alias} {controller_address}"; "tooltip-format" = "{controller_alias} {controller_address}";
"tooltip-format-connected" = '' "tooltip-format-connected" = ''
{controller_alias} {controller_address} {controller_alias} {controller_address}
{device_enumerate}''; {device_enumerate}'';
"tooltip-format-enumerate-connected" = "{device_alias} {device_address}"; "tooltip-format-enumerate-connected" = "{device_alias} {device_address}";
"on-click" = lib.getExe' pkgs.blueberry "blueberry";
}; };
"pulseaudio" = { "pulseaudio" = {
@ -156,21 +163,21 @@
"default" = ["" "" ""]; "default" = ["" "" ""];
}; };
"scroll-step" = 5;
"ignored-sinks" = ["Easy Effects Sink"]; "ignored-sinks" = ["Easy Effects Sink"];
"on-click" = "${lib.getExe pkgs.pavucontrol} -t 3"; "on-click" = "${lib.getExe pkgs.pavucontrol} -t 3";
"scroll-step" = 5;
}; };
"network" = { "network" = {
"format-wifi" = "{icon}"; "format-disconnected" = "󰀦";
"format-ethernet" = "󰈀"; "format-ethernet" = "󰈀";
"format-disconnected" = "";
"format-icons" = ["󰤟" "󰤢" "󰤥" "󰤨"]; "format-icons" = ["󰤟" "󰤢" "󰤥" "󰤨"];
"tooltip-format" = "{ifname} via {gwaddr} 󰊗"; "format-wifi" = "{icon}";
"tooltip-format-wifi" = "{essid} ({signalStrength}%) {icon}";
"tooltip-format-ethernet" = "{ifname} ";
"tooltip-format-disconnected" = "Disconnected";
"on-click" = "${lib.getExe pkgs.networkmanager_dmenu} -i"; "on-click" = "${lib.getExe pkgs.networkmanager_dmenu} -i";
"tooltip-format" = "{ifname} via {gwaddr} 󰊗";
"tooltip-format-disconnected" = "Disconnected";
"tooltip-format-ethernet" = "{ifname} ";
"tooltip-format-wifi" = "{essid} ({signalStrength}%) {icon}";
}; };
"tray" = {"spacing" = 15;}; "tray" = {"spacing" = 15;};
@ -202,30 +209,30 @@
}; };
"custom/logout" = { "custom/logout" = {
"on-click" = ''${lib.getExe config.programs.rofi.package} -i -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'';
"format" = "󰗽"; "format" = "󰗽";
"on-click" = ''${lib.getExe config.programs.rofi.package} -i -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'';
}; };
"custom/menu" = { "custom/menu" = {
"on-click" = "${lib.getExe pkgs.nwg-drawer} -mt 5";
"format" = "󰀻"; "format" = "󰀻";
"on-click" = "${lib.getExe pkgs.nwg-drawer} -mt 5";
}; };
"power-profiles-daemon" = { "power-profiles-daemon" = {
"format" = "{icon}"; "format" = "{icon}";
"format-icons" = {
"balanced" = "󰗑";
"default" = "󱐌";
"performance" = "󱐌";
"power-saver" = "󰌪";
};
"tooltip-format" = '' "tooltip-format" = ''
Profile: {profile} Profile: {profile}
Driver: {driver}''; Driver: {driver}'';
"tooltip" = true; "tooltip" = true;
"format-icons" = {
"default" = "󱐌";
"performance" = "󱐌";
"balanced" = "󰗑";
"power-saver" = "󰌪";
};
}; };
"group/hardware" = { "group/hardware" = {