Update stylix scheme and refactor Hyprland configuration with new waybar setup
This commit is contained in:
112
environments/waybar-config.nix
Normal file
112
environments/waybar-config.nix
Normal file
@@ -0,0 +1,112 @@
|
||||
_: {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
settings.main-bar = {
|
||||
layer = "top";
|
||||
height = 20;
|
||||
tray.spacing = 5;
|
||||
clock = {
|
||||
format = "{:%a %b %d %I:%M %p}";
|
||||
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
};
|
||||
modules-left = [
|
||||
"hyprland/workspaces"
|
||||
"custom/separator"
|
||||
"temperature#cpu"
|
||||
"custom/gpu-temp"
|
||||
];
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
modules-right = [
|
||||
"tray"
|
||||
"mpris"
|
||||
"wireplumber"
|
||||
"wireplumber#microphone"
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
format = "{icon}";
|
||||
on-scroll-up = "hyprctl dispatch workspace e-1";
|
||||
on-scroll-down = "hyprctl dispatch workspace e+1";
|
||||
persistent-workspaces."*" = 10; # Show 5 workspaces on all monitors
|
||||
};
|
||||
"custom/separator" = {
|
||||
format = "|";
|
||||
tooltip = false;
|
||||
};
|
||||
cava = {
|
||||
bars = 14;
|
||||
method = "pulse";
|
||||
framerate = 20;
|
||||
bar_delimiter = 0;
|
||||
stereo = false;
|
||||
format-icons.default = [
|
||||
"▁"
|
||||
"▂"
|
||||
"▃"
|
||||
"▄"
|
||||
"▅"
|
||||
"▆"
|
||||
"▇"
|
||||
"█"
|
||||
];
|
||||
};
|
||||
"temperature#cpu" = {
|
||||
interval = 2;
|
||||
format = " {temperatureC}°C";
|
||||
critical-threshold = 80;
|
||||
hwmon-path = "/sys/class/hwmon/hwmon1/temp1_input";
|
||||
tooltip-format = "CPU: {temperatureC}°C";
|
||||
};
|
||||
"custom/gpu-temp" = {
|
||||
exec = "nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits";
|
||||
format = " {}°C";
|
||||
interval = 2;
|
||||
tooltip-format = "GPU: {}°C";
|
||||
};
|
||||
mpris = {
|
||||
interval = 2;
|
||||
format = "{player_icon} {dynamic}";
|
||||
format-paused = "{status_icon} {dynamic}";
|
||||
dynamic-len = 40;
|
||||
on-click = "playerctl play-pause";
|
||||
on-scroll-up = "playerctl next";
|
||||
on-scroll-down = "playerctl previous";
|
||||
dynamic-order = [
|
||||
"title"
|
||||
"artist"
|
||||
];
|
||||
player-icons = {
|
||||
default = "🎵";
|
||||
firefox = "🦊";
|
||||
librewolf = "🦊";
|
||||
};
|
||||
status-icons = {
|
||||
paused = "";
|
||||
playing = "";
|
||||
};
|
||||
};
|
||||
wireplumber = {
|
||||
format = "{icon} {volume}%";
|
||||
format-muted = " muted";
|
||||
scroll-step = 5;
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
format-icons.default = [
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
};
|
||||
"wireplumber#microphone" = {
|
||||
format = "{format_source}";
|
||||
format-source = " {volume}%";
|
||||
format-source-muted = "";
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
|
||||
on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%+";
|
||||
on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 5%-";
|
||||
tooltip-format = "{source_desc}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user