nixos-config/modules/home/waybar/settings.nix

114 lines
2.7 KiB
Nix
Raw Normal View History

2024-03-01 23:38:10 +01:00
{ ... }:
2023-11-05 11:40:44 +01:00
{
2023-11-12 18:17:37 +01:00
programs.waybar.settings.mainBar = {
2024-03-01 23:38:10 +01:00
position= "bottom";
2024-03-02 23:09:28 +01:00
layer= "top";
2024-03-01 23:38:10 +01:00
height= 5;
2023-11-12 18:17:37 +01:00
margin-top= 0;
margin-bottom= 0;
margin-left= 0;
margin-right= 0;
modules-left= [
"custom/launcher"
2024-03-02 23:09:28 +01:00
"hyprland/workspaces"
2023-11-12 18:17:37 +01:00
];
modules-center= [
2024-03-02 23:09:28 +01:00
"clock"
2023-11-12 18:17:37 +01:00
];
modules-right= [
"tray"
2023-11-12 23:30:18 +01:00
"cpu"
"memory"
2023-11-13 19:13:32 +01:00
"disk"
2023-11-12 18:17:37 +01:00
"pulseaudio"
2024-04-13 18:27:49 +02:00
"battery"
2023-11-05 11:40:44 +01:00
"network"
2023-11-12 18:17:37 +01:00
];
clock= {
calendar = {
2024-04-13 18:27:49 +02:00
format = { today = "<span color='#b4befe'><b>{}</b>"; };
};
2023-11-12 18:46:32 +01:00
format = " {:%H:%M}";
2023-11-12 18:17:37 +01:00
tooltip= "true";
tooltip-format= "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format-alt= " {:%d/%m}";
};
2024-03-03 17:37:03 +01:00
"hyprland/workspaces"= {
2023-11-12 18:17:37 +01:00
active-only= false;
2024-03-03 17:37:03 +01:00
disable-scroll= true;
format = "{icon}";
2023-11-12 18:17:37 +01:00
on-click= "activate";
format-icons= {
2024-03-03 17:37:03 +01:00
"1"= "󰈹";
"2"= "";
2024-03-04 11:57:04 +01:00
"3"= "󰘙";
"4"= "󰙯";
2024-03-03 17:37:03 +01:00
"5"= "";
2024-03-06 14:59:48 +01:00
"6"= "";
2024-03-03 17:37:03 +01:00
urgent= "";
default = "";
2023-11-12 18:17:37 +01:00
sort-by-number= true;
2023-11-05 11:40:44 +01:00
};
2024-03-03 17:37:03 +01:00
persistent-workspaces = {
"1"= [];
"2"= [];
"3"= [];
"4"= [];
"5"= [];
};
2023-11-12 18:17:37 +01:00
};
memory= {
2023-11-13 19:23:53 +01:00
format= "󰟜 {}%";
format-alt= "󰟜 {used} GiB"; # 
2023-11-13 00:07:14 +01:00
interval= 2;
2023-11-12 18:17:37 +01:00
};
cpu= {
2023-11-12 23:44:54 +01:00
format= " {usage}%";
format-alt= " {avg_frequency} GHz";
2023-11-13 00:07:14 +01:00
interval= 2;
2023-11-12 18:17:37 +01:00
};
2023-11-13 19:13:32 +01:00
disk = {
2023-11-13 19:22:33 +01:00
# path = "/";
2023-11-13 19:13:32 +01:00
format = "󰋊 {percentage_used}%";
interval= 60;
};
2023-11-12 18:17:37 +01:00
network = {
format-wifi = " {signalStrength}%";
2023-11-12 23:44:54 +01:00
format-ethernet = "󰀂 ";
2023-11-12 18:17:37 +01:00
tooltip-format = "Connected to {essid} {ifname} via {gwaddr}";
format-linked = "{ifname} (No IP)";
2023-11-12 18:46:32 +01:00
format-disconnected = "󰖪 ";
2023-11-12 18:17:37 +01:00
};
tray= {
icon-size= 20;
spacing= 8;
};
pulseaudio= {
format= "{icon} {volume}%";
2023-11-12 23:51:45 +01:00
format-muted= "󰖁 ";
2023-11-12 18:17:37 +01:00
format-icons= {
2023-11-12 23:51:45 +01:00
default= [" "];
2023-11-05 11:40:44 +01:00
};
2023-11-12 18:17:37 +01:00
scroll-step= 5;
2023-11-12 22:56:37 +01:00
on-click= "pamixer -t";
2023-11-12 18:17:37 +01:00
};
2024-04-13 18:27:49 +02:00
battery = {
2024-04-13 18:49:14 +02:00
format = "{icon} {capacity}%";
2024-04-13 19:07:38 +02:00
format-icons = [" " " " " " " " " "];
format-charging = " {capacity}%";
format-full = " {capacity}%";
format-warning = " {capacity}%";
2024-04-13 18:27:49 +02:00
interval = 30;
2024-04-13 19:07:38 +02:00
states = {
warning = 20;
};
2024-04-13 18:27:49 +02:00
};
2023-11-12 18:17:37 +01:00
"custom/launcher"= {
2023-11-12 23:00:00 +01:00
format= "";
2023-11-12 18:46:32 +01:00
on-click= "pkill wofi || wofi --show drun";
on-click-right= "pkill wofi || wallpaper-picker";
2023-11-12 18:17:37 +01:00
tooltip= "false";
};
};
2023-11-05 11:40:44 +01:00
}