revise waybar display
This commit is contained in:
parent
efa3783e40
commit
e498041dce
2 changed files with 63 additions and 9 deletions
|
|
@ -88,7 +88,7 @@
|
||||||
|
|
||||||
# Misc settings
|
# Misc settings
|
||||||
misc = {
|
misc = {
|
||||||
force_default_wallpaper = 1;
|
force_default_wallpaper = 0;
|
||||||
disable_hyprland_logo = false;
|
disable_hyprland_logo = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -165,6 +165,19 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Hyprpaper wallpaper service
|
||||||
|
services.hyprpaper = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
preload = [
|
||||||
|
"/home/yanlin/Downloads/nixos-nineish-dark@4k.png"
|
||||||
|
];
|
||||||
|
wallpaper = [
|
||||||
|
"eDP-1,/home/yanlin/Downloads/nixos-nineish-dark@4k.png"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Hypridle configuration (screen timeout and lock)
|
# Hypridle configuration (screen timeout and lock)
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -273,13 +286,14 @@
|
||||||
format-charging = "{capacity}% ";
|
format-charging = "{capacity}% ";
|
||||||
format-plugged = "{capacity}% ";
|
format-plugged = "{capacity}% ";
|
||||||
format-icons = ["" "" "" "" ""];
|
format-icons = ["" "" "" "" ""];
|
||||||
|
tooltip-format = "{capacity}% • {timeTo}";
|
||||||
};
|
};
|
||||||
|
|
||||||
"network" = {
|
"network" = {
|
||||||
format-wifi = "{essid} ({signalStrength}%) ";
|
format-wifi = "{essid} ({signalStrength}%) ";
|
||||||
format-ethernet = "{ipaddr}/{cidr} ";
|
format-ethernet = "{ipaddr}/{cidr} ";
|
||||||
format-disconnected = "Disconnected ⚠";
|
format-disconnected = "Disconnected ⚠";
|
||||||
tooltip-format = "{ifname}: {ipaddr}";
|
tooltip-format = "{essid}\nIP: {ipaddr}\nSignal: {signalStrength}%";
|
||||||
};
|
};
|
||||||
|
|
||||||
"pulseaudio" = {
|
"pulseaudio" = {
|
||||||
|
|
@ -296,12 +310,15 @@
|
||||||
default = ["" "" ""];
|
default = ["" "" ""];
|
||||||
};
|
};
|
||||||
on-click = "pavucontrol";
|
on-click = "pavucontrol";
|
||||||
|
tooltip-format = "Volume: {volume}%";
|
||||||
};
|
};
|
||||||
|
|
||||||
"backlight" = {
|
"backlight" = {
|
||||||
device = "intel_backlight";
|
device = "intel_backlight";
|
||||||
format = "{percent}% {icon}";
|
format = "{percent}% {icon}";
|
||||||
format-icons = ["" ""];
|
format-icons = ["" ""];
|
||||||
|
on-click = "wl-gammactl";
|
||||||
|
tooltip-format = "Brightness: {percent}%";
|
||||||
};
|
};
|
||||||
|
|
||||||
"tray" = {
|
"tray" = {
|
||||||
|
|
@ -339,25 +356,60 @@
|
||||||
|
|
||||||
#window,
|
#window,
|
||||||
#clock,
|
#clock,
|
||||||
#battery,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#backlight,
|
|
||||||
#tray {
|
#tray {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Color-coded modules for easy distinction */
|
||||||
|
#pulseaudio {
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #a6e3a1; /* Green - Volume */
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #f9e2af; /* Yellow - Brightness */
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #89b4fa; /* Blue - Battery */
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #cba6f7; /* Purple - Network */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Battery state colors override base color */
|
||||||
#battery.charging {
|
#battery.charging {
|
||||||
color: #26A65B;
|
color: #a6e3a1; /* Bright green when charging */
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.warning:not(.charging) {
|
#battery.warning:not(.charging) {
|
||||||
color: #ffbe61;
|
color: #fab387; /* Orange for warning */
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
color: #f53c3c;
|
color: #f38ba8; /* Red for critical */
|
||||||
|
animation: blink 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Network disconnected state */
|
||||||
|
#network.disconnected {
|
||||||
|
color: #f38ba8; /* Red when disconnected */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Muted audio */
|
||||||
|
#pulseaudio.muted {
|
||||||
|
color: #6c7086; /* Gray when muted */
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,12 @@
|
||||||
hyprland
|
hyprland
|
||||||
hypridle
|
hypridle
|
||||||
hyprlock
|
hyprlock
|
||||||
|
hyprpaper
|
||||||
tuigreet
|
tuigreet
|
||||||
waybar
|
waybar
|
||||||
wofi
|
wofi
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
pavucontrol
|
pavucontrol
|
||||||
|
wl-gammactl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue