mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-29 04:27:11 +08:00
more waybar stuff
This commit is contained in:
parent
9ebe41ddc5
commit
a6e205a95e
3 changed files with 65 additions and 1 deletions
|
|
@ -12,6 +12,7 @@
|
|||
fira-code
|
||||
cascadia-code
|
||||
nerdfonts
|
||||
font-awesome
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,7 @@ in
|
|||
|
||||
general = {
|
||||
border_size = 2;
|
||||
gaps_out = 5;
|
||||
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
||||
"col.inactive_border" = "rgba(595959aa)";
|
||||
resize_on_border = true;
|
||||
|
|
|
|||
|
|
@ -1,11 +1,73 @@
|
|||
# https://github.com/Alexays/Waybar/wiki/Configuration
|
||||
{
|
||||
# TODO: https://old.reddit.com/r/archlinux/comments/136eaiw/hyprland_with_waybar_config_reloading/jip7oq1/
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
# output = [ "eDP-1" ]; # Laptop screen only
|
||||
height = 30;
|
||||
modules-center = [
|
||||
# "hyprland/window"
|
||||
"clock"
|
||||
];
|
||||
modules-right = [
|
||||
"hyprland/workspaces"
|
||||
"cpu"
|
||||
"memory"
|
||||
"backlight"
|
||||
"battery"
|
||||
"network"
|
||||
"tray"
|
||||
"custom/power"
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
# active-only = true;
|
||||
# all-outputs = true;
|
||||
show-special = true;
|
||||
/*
|
||||
format = "{name}{icon}";
|
||||
format-icons = {
|
||||
active = "";
|
||||
default = "";
|
||||
};
|
||||
*/
|
||||
};
|
||||
"cpu" = {
|
||||
format = "{}% ";
|
||||
};
|
||||
"memory" = {
|
||||
format = "{}% ";
|
||||
};
|
||||
network = {
|
||||
format-wifi = " {essid} ({signalStrength}%)";
|
||||
format-ethernet = " {ifname}";
|
||||
format-disconnected = "⚠ Disconnected";
|
||||
tooltip-format = "{ifname} via {gwaddr}";
|
||||
on-click = "nm-connection-editor";
|
||||
};
|
||||
"clock" = {
|
||||
format = "{:%H:%M} ";
|
||||
format-alt = "{:%A, %B %d, %Y (%R)} ";
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
calendar = {
|
||||
mode = "year";
|
||||
mode-mon-col = 3;
|
||||
weeks-pos = "right";
|
||||
on-scroll = 1;
|
||||
format = {
|
||||
months = "<span color='#ffead3'><b>{}</b></span>";
|
||||
days = "<span color='#ecc6d9'>{}</span>";
|
||||
weeks = "<span color='#99ffdd'>{}</span>";
|
||||
weekdays = "<span color='#ffcc66'>{}</span>";
|
||||
today = "<span color='#ffee99'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
actions = {
|
||||
"on-click-right" = "mode";
|
||||
"on-scroll-up" = "shift_up";
|
||||
"on-scroll-down" = "shift_down";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue