2023-03-29 21:48:55 +05:30
|
|
|
|
{ config
|
|
|
|
|
, pkgs
|
|
|
|
|
, ...
|
2023-03-25 22:10:09 +05:30
|
|
|
|
}: {
|
2023-03-15 22:11:59 +05:30
|
|
|
|
programs.waybar.enable = true;
|
|
|
|
|
programs.waybar.systemd.enable = true;
|
|
|
|
|
programs.waybar.style = ./style.css;
|
|
|
|
|
xdg.configFile."waybar/colors.css".source = ./colors.css;
|
|
|
|
|
programs.waybar.settings = {
|
|
|
|
|
mainBar = {
|
|
|
|
|
layer = "top";
|
|
|
|
|
position = "top";
|
|
|
|
|
height = 28;
|
2023-04-05 22:39:22 +05:30
|
|
|
|
modules-left = [ "sway/workspaces" "wlr/workspaces" "sway/window" "hyprland/window" "sway/mode" "hyprland/submap" ];
|
2023-03-29 21:48:55 +05:30
|
|
|
|
modules-center = [ ];
|
|
|
|
|
modules-right = [ "tray" "custom/power_profile" "idle_inhibitor" "network" "bluetooth" "pulseaudio" "backlight" "battery" "clock" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
"sway/mode" = {
|
|
|
|
|
"format" = "{}";
|
|
|
|
|
};
|
|
|
|
|
"sway/window" = {
|
|
|
|
|
"tooltip" = false;
|
|
|
|
|
};
|
|
|
|
|
"idle_inhibitor" = {
|
|
|
|
|
"format" = "{icon}";
|
|
|
|
|
"format-icons" = {
|
|
|
|
|
"activated" = "";
|
|
|
|
|
"deactivated" = "";
|
|
|
|
|
};
|
|
|
|
|
"tooltip" = false;
|
|
|
|
|
};
|
|
|
|
|
"clock" = {
|
|
|
|
|
"tooltip" = false;
|
|
|
|
|
"interval" = 1;
|
|
|
|
|
"format" = "{:%I:%M}";
|
|
|
|
|
"format-alt" = "{:%d %B %Y, %A}";
|
|
|
|
|
};
|
|
|
|
|
"backlight" = {
|
|
|
|
|
"format" = "{icon}";
|
2023-03-29 21:48:55 +05:30
|
|
|
|
"format-icons" = [ "" "" "" "" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
};
|
|
|
|
|
"battery" = {
|
|
|
|
|
"states" = {
|
|
|
|
|
"good" = 90;
|
|
|
|
|
"warning" = 20;
|
|
|
|
|
"critical" = 10;
|
|
|
|
|
};
|
|
|
|
|
"format" = "{icon}";
|
|
|
|
|
"format-alt" = "{icon} {capacity}% ({time})";
|
|
|
|
|
"format-charging" = " {capacity}%";
|
|
|
|
|
"format-plugged" = "ﮣ {capacity}%";
|
2023-03-29 21:48:55 +05:30
|
|
|
|
"format-icons" = [ "" "" "" "" "" "" "" "" "" "" "" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
"tooltip" = false;
|
|
|
|
|
};
|
|
|
|
|
"network" = {
|
|
|
|
|
"format-wifi" = "直";
|
|
|
|
|
"format-ethernet" = "";
|
|
|
|
|
"format-linked" = "";
|
|
|
|
|
"format-disconnected" = "睊";
|
|
|
|
|
"format-alt" = "{ifname}: {ipaddr}/{cidr}";
|
|
|
|
|
"tooltip" = false;
|
|
|
|
|
};
|
|
|
|
|
"pulseaudio" = {
|
|
|
|
|
"tooltip" = false;
|
|
|
|
|
"format" = "{icon} {format_source}";
|
|
|
|
|
"format-muted" = "ﱝ {format_source}";
|
|
|
|
|
"format-bluetooth" = " {icon} {format_source}";
|
|
|
|
|
"format-bluetooth-muted" = " ﱝ {format_source}";
|
|
|
|
|
"format-source" = "";
|
|
|
|
|
"format-source-muted" = "";
|
|
|
|
|
"format-icons" = {
|
|
|
|
|
"headphones" = "";
|
|
|
|
|
"handsfree" = "";
|
|
|
|
|
"headset" = "";
|
|
|
|
|
"phone" = "";
|
|
|
|
|
"portable" = "";
|
|
|
|
|
"car" = "";
|
2023-03-29 21:48:55 +05:30
|
|
|
|
"default" = [ "奄" "奔" "墳" ];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
};
|
|
|
|
|
"on-click" = "${pkgs.pavucontrol}/bin/pavucontrol";
|
|
|
|
|
};
|
|
|
|
|
"bluetooth" = {
|
|
|
|
|
"format" = "";
|
|
|
|
|
"format-connected" = "";
|
|
|
|
|
"format-disabled" = "";
|
|
|
|
|
"format-off" = "";
|
|
|
|
|
"format-connected-battery" = " {device_battery_percentage}%";
|
|
|
|
|
"on-click" = "${pkgs.blueman}/bin/blueman-manager";
|
|
|
|
|
};
|
|
|
|
|
"tray" = {
|
|
|
|
|
"spacing" = 4;
|
|
|
|
|
};
|
2023-03-29 21:48:55 +05:30
|
|
|
|
"custom/power_profile" =
|
|
|
|
|
let
|
|
|
|
|
script = "${config.xdg.configHome}/scripts/power_profile.sh";
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
exec = "${script} icon";
|
|
|
|
|
on-click = "${script} toggle";
|
|
|
|
|
format = "{}";
|
|
|
|
|
tooltip = false;
|
|
|
|
|
interval = "10";
|
|
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|