This repository has been archived on 2023-07-23. You can view files and clone it, but cannot push or open issues or pull requests.
gpd-configurations/home/user/config/waybar.nix

123 lines
2.7 KiB
Nix
Raw Normal View History

2023-06-21 08:11:21 +00:00
{
2023-06-25 23:12:37 +00:00
layer = "top";
2023-06-21 08:11:21 +00:00
position = "top";
2023-06-26 13:44:41 +00:00
height = 24;
2023-06-21 08:11:21 +00:00
2023-06-25 23:12:37 +00:00
modules-left = [
2023-06-27 02:44:31 +00:00
"custom/launcher"
2023-06-21 08:11:21 +00:00
"hyprland/window"
];
2023-06-25 23:12:37 +00:00
modules-center = [ "wlr/workspaces" ];
modules-right = [
"backlight"
2023-06-27 02:44:31 +00:00
"wireplumber"
# "cpu"
# "memory"
2023-06-25 23:12:37 +00:00
"battery"
2023-06-27 02:44:31 +00:00
"tray"
2023-06-25 23:12:37 +00:00
"clock"
2023-06-21 08:11:21 +00:00
"custom/power"
];
2023-06-25 23:12:37 +00:00
2023-06-27 02:44:31 +00:00
wireplumber = {
2023-06-25 23:12:37 +00:00
tooltip = false;
scroll-step = 5;
format = "{icon} {volume}%";
format-muted = "{icon} {volume}%";
2023-06-27 02:44:31 +00:00
on-click ="pactl set-sink-mute @DEFAULT_SINK@ toggle"; # wpctl?
2023-06-25 23:12:37 +00:00
format-icons = {
default = ["" "" ""];
};
};
2023-06-21 08:11:21 +00:00
2023-06-26 13:44:41 +00:00
"hyprland/window" = {
};
2023-06-21 08:11:21 +00:00
"wlr/workspaces" = {
format = "{icon}";
on-click = "activate";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"4" = "";
"5" = "";
urgent = "";
active = "";
default = "";
};
sort-by-number = true;
};
2023-06-25 23:12:37 +00:00
network = {
tooltip = false;
2023-06-27 02:44:31 +00:00
format-wifi = " {essid}";
2023-06-25 23:12:37 +00:00
format-ethernet = "";
};
2023-06-21 08:11:21 +00:00
2023-06-25 23:12:37 +00:00
backlight = {
tooltip = false;
format = " {}%";
interval = 1;
2023-06-21 08:11:21 +00:00
on-scroll-up = "light -A 5";
2023-06-25 23:12:37 +00:00
on-scroll-down = "light -U 5";
};
2023-06-21 08:11:21 +00:00
battery = {
states = {
good = 95;
warning = 30;
2023-06-25 23:12:37 +00:00
critical = 20;
2023-06-21 08:11:21 +00:00
};
format = "{icon} {capacity}%";
format-charging = " {capacity}%";
format-plugged = " {capacity}%";
format-alt = "{time} {icon}";
2023-06-25 23:12:37 +00:00
format-icons = ["" "" "" "" ""];
2023-06-21 08:11:21 +00:00
};
2023-06-25 23:12:37 +00:00
tray = {
icon-size = 16;
spacing = 10;
};
2023-06-21 08:11:21 +00:00
clock = {
2023-06-27 02:44:31 +00:00
format = " {:%H:%M}";
tooltip-format = "\n<span size='9pt' font='Source Han Mono SC'>{calendar}</span>";
calendar = {
mode = "month";
weeks-pos = "right";
format = {
months = "<span color='#ffead3'><b>{}</b></span>";
days = "<span color='#ecc6d9'><b>{}</b></span>";
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
};
};
2023-06-21 08:11:21 +00:00
};
cpu = {
interval = 15;
format = " {}%";
max-length = 10;
};
memory = {
interval = 30;
format = " {}%";
max-length = 10;
};
2023-06-27 02:44:31 +00:00
"custom/launcher" = {
format = " ";
on-click = "nwggrid";
2023-06-21 08:11:21 +00:00
};
2023-06-27 02:44:31 +00:00
"custom/power" = {
format = "󰐥 ";
2023-06-26 01:45:57 +00:00
on-click = "nwgbar";
2023-06-21 08:11:21 +00:00
};
2023-06-27 02:44:31 +00:00
}