dotfiles/homes/floppydisk/waybar.nix

179 lines
4.1 KiB
Nix
Raw Normal View History

2023-09-02 18:41:13 +00:00
{
mainBar = {
layer = "top";
position = "top";
height = 27;
fixed-center = true;
modules-left = [
"hyprland/workspaces"
2023-09-02 20:27:24 +00:00
"custom/notification"
2023-09-02 18:41:13 +00:00
"tray"
];
modules-center = [
];
modules-right = [
"battery"
"cpu"
"memory"
"pulseaudio"
"network"
2023-09-02 20:27:24 +00:00
"clock"
2023-09-02 18:41:13 +00:00
];
"custon/sep_r" = {
format = " ";
};
"custom/sep" = {
format = " ";
};
"custom/sep_l" = {
format = " ";
};
"custom/notification" = {
tooltip = true;
format = "{icon}";
format-icons = {
"notification" = "<span foreground='white'><sup></sup></span>";
"none" = " ";
"dnd-notification" = "<span foreground='white'><sup></sup></span>";
"dnd-none" = " ";
};
return-type = "json";
exec-if = "which swaync-client";
exec = "swaync-client -swb";
on-click = "swaync-client -t -sw";
on-click-middle = "swaync-client -d -sw";
on-click-right = "swaync-client -C";
escape = true;
};
"hyprland/workspaces" = {
2023-09-02 18:41:13 +00:00
disable-scroll = false;
2023-09-03 11:49:59 +00:00
all-outputs = false;
2023-09-02 18:41:13 +00:00
format = "{icon}";
"on-scroll-up" = "hyprctl dispatch workspace e+1";
"on-scroll-down" = "hyprctl dispatch workspace e-1";
"on-click" = "activate";
2023-09-02 20:27:24 +00:00
active-only = false;
2023-09-02 18:41:13 +00:00
format-icons = {
"1" = "I";
"2" = "II";
"3" = "III";
"4" = "IV";
"5" = "V";
"6" = "VI";
"7" = "VII";
"8" = "VIII";
"9" = "IX";
"10" = "X";
"11" = "XI";
"12" = "XII";
};
};
"hyprland/language" = {
format = "{}";
format-tr = "TR";
};
"hyprland/window" = {
format = "{}";
seperate-outputs = true;
};
"keyboard-state" = {
interval = 1;
numlock = false;
capslock = false;
format = "{icon}";
format-icons = {
"locked" = " ";
"unlocked" = "";
};
};
"idle_inhibitor" = {
format = "{icon}";
format-icons = {
"activated" = "";
"deactivated" = "";
};
};
"tray" = {
icon-size = 16;
spacing = 6;
};
"clock" = {
timezone = "Europe/London";
2023-09-02 20:27:24 +00:00
format = "{: %H:%M}";
format-alt = "{: %H:%M %d/%m/%Y}";
tooltip-format = "{: %H:%M %d/%m/%Y}";
2023-09-02 18:41:13 +00:00
today-format = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
calendar-weeks-pos = "right";
format-calendar = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
format-calendar-weeks = "<span color='#aaaaaa'><b><u>{}</u></b></span>";
format-calendar-weekdays = "<span color='#ffffff'><b>{}</b></span>";
interval = 10;
on-click-middle = "kalendar";
};
"cpu" = {
format = " {usage}%";
tooltip = false;
};
"memory" = {
2023-09-02 19:49:41 +00:00
format = " {}%";
2023-09-02 18:41:13 +00:00
};
"battery" = {
states = {
"good" = 80;
"warning" = 30;
"critical" = 5;
};
format = "{icon}{capacity}% ";
format-charging = " {capacity}%";
format-plugged = " {capacity}%";
2023-09-02 18:41:13 +00:00
format-alt = "{icon}{time}";
format-icoms = [" " " " " " " " " "];
};
"network" = {
format-wifi = " Connected";
format-ethernet = " Connected";
format-disconnected = " Disconnected";
tooltip-format-wifi = "{essid} | Signal Strenght: {signalStrength}% | Down Speed: {bandwidthDownBits}, Up Speed: {bandwidthUpBits}";
tooltip-format = "{ifname} via {gwaddr} ";
tooltip-format-ethernet = "{ipaddr} ";
format-linked = "{ifname} (No IP) ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
"pulseaudio" = {
on-click = "pavucontrol";
2023-09-02 20:27:24 +00:00
format = "{icon}{volume}%";
2023-09-02 18:41:13 +00:00
format-icons = {
"default" = [" " " " " "];
};
};
"disk" = {
interval = 90;
format = " {free} (/)";
tooltip-format = "{used} / {total} ({percentage_used}%)";
path = "/";
};
"custom/power" = {
format = " ";
on-click = "wlogout";
};
};
2023-09-02 20:27:24 +00:00
}