2024-01-24 10:05:52 +01:00
|
|
|
{ pkgs, config, lib, waybarStyle, ... }:
|
2024-01-14 08:27:50 +01:00
|
|
|
|
2024-02-05 06:54:33 +01:00
|
|
|
let
|
|
|
|
palette = config.colorScheme.palette;
|
2024-02-06 04:46:24 +01:00
|
|
|
inherit (import ../../options.nix) waybarStyle;
|
2024-02-05 06:54:33 +01:00
|
|
|
in
|
2024-01-24 10:05:52 +01:00
|
|
|
lib.mkIf ("${waybarStyle}" == "style2") {
|
2024-01-14 08:27:50 +01:00
|
|
|
# Configure & Theme Waybar
|
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.waybar;
|
|
|
|
settings = [{
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
|
|
|
|
2024-01-24 10:05:52 +01:00
|
|
|
modules-left = [ "custom/startmenu" "hyprland/window" ];
|
2024-01-14 08:27:50 +01:00
|
|
|
modules-center = [ "network" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ];
|
2024-01-30 09:02:47 +01:00
|
|
|
modules-right = [ "idle_inhibitor" "custom/themeselector" "custom/notification" "battery" "tray" ];
|
2024-01-14 08:27:50 +01:00
|
|
|
"hyprland/workspaces" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
default = " ";
|
|
|
|
active = " ";
|
|
|
|
urgent = " ";
|
|
|
|
};
|
|
|
|
on-scroll-up = "hyprctl dispatch workspace e+1";
|
|
|
|
on-scroll-down = "hyprctl dispatch workspace e-1";
|
|
|
|
};
|
|
|
|
"clock" = {
|
|
|
|
format = "{: %I:%M %p}";
|
|
|
|
tooltip = false;
|
|
|
|
};
|
|
|
|
"hyprland/window" = {
|
2024-01-24 07:17:03 +01:00
|
|
|
max-length = 25;
|
2024-01-14 08:27:50 +01:00
|
|
|
separate-outputs = false;
|
|
|
|
};
|
|
|
|
"memory" = {
|
|
|
|
interval = 5;
|
|
|
|
format = " {}%";
|
|
|
|
tooltip = true;
|
|
|
|
};
|
|
|
|
"cpu" = {
|
|
|
|
interval = 5;
|
|
|
|
format = " {usage:2}%";
|
|
|
|
tooltip = true;
|
|
|
|
};
|
|
|
|
"disk" = {
|
2024-02-08 06:05:32 +01:00
|
|
|
format = " {free}";
|
2024-01-14 08:27:50 +01:00
|
|
|
tooltip = true;
|
|
|
|
};
|
|
|
|
"network" = {
|
|
|
|
format-icons = ["" "" "" "" ""];
|
2024-02-08 06:05:32 +01:00
|
|
|
format-ethernet = " {bandwidthDownOctets}";
|
2024-01-14 08:27:50 +01:00
|
|
|
format-wifi = "{icon} {signalStrength}%";
|
|
|
|
format-disconnected = "";
|
|
|
|
tooltip = false;
|
|
|
|
};
|
|
|
|
"tray" = {
|
|
|
|
spacing = 12;
|
|
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
|
|
format = "{icon} {volume}% {format_source}";
|
|
|
|
format-bluetooth = "{volume}% {icon} {format_source}";
|
|
|
|
format-bluetooth-muted = " {icon} {format_source}";
|
|
|
|
format-muted = " {format_source}";
|
|
|
|
format-source = " {volume}%";
|
|
|
|
format-source-muted = "";
|
|
|
|
format-icons = {
|
|
|
|
headphone = "";
|
|
|
|
hands-free = "";
|
|
|
|
headset = "";
|
|
|
|
phone = "";
|
|
|
|
portable = "";
|
|
|
|
car = "";
|
|
|
|
default = ["" "" ""];
|
|
|
|
};
|
|
|
|
on-click = "pavucontrol";
|
|
|
|
};
|
2024-01-17 11:00:40 +01:00
|
|
|
"custom/themeselector" = {
|
|
|
|
tooltip = false;
|
|
|
|
format = "";
|
2024-01-24 07:17:03 +01:00
|
|
|
# exec = "theme-selector";
|
2024-02-01 10:03:46 +01:00
|
|
|
on-click = "sleep 0.1 && theme-selector";
|
2024-01-17 11:00:40 +01:00
|
|
|
};
|
2024-01-24 07:17:03 +01:00
|
|
|
"custom/startmenu" = {
|
|
|
|
tooltip = false;
|
2024-01-24 10:48:25 +01:00
|
|
|
format = " ";
|
2024-01-24 07:17:03 +01:00
|
|
|
# exec = "rofi -show drun";
|
2024-02-08 06:14:09 +01:00
|
|
|
on-click = "sleep 0.1 && rofi-launcher";
|
2024-01-24 07:17:03 +01:00
|
|
|
};
|
2024-01-24 08:46:33 +01:00
|
|
|
"idle_inhibitor" = {
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
2024-01-24 10:48:25 +01:00
|
|
|
activated = " ";
|
|
|
|
deactivated = " ";
|
2024-01-24 08:46:33 +01:00
|
|
|
};
|
|
|
|
tooltip = "true";
|
|
|
|
};
|
2024-01-14 08:27:50 +01:00
|
|
|
"custom/notification" = {
|
|
|
|
tooltip = false;
|
|
|
|
format = "{icon} {}";
|
|
|
|
format-icons = {
|
|
|
|
notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
none = "";
|
|
|
|
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
dnd-none = "";
|
|
|
|
inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
inhibited-none = "";
|
|
|
|
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
|
|
|
dnd-inhibited-none = "";
|
|
|
|
};
|
|
|
|
return-type = "json";
|
|
|
|
exec-if = "which swaync-client";
|
|
|
|
exec = "swaync-client -swb";
|
|
|
|
on-click = "task-waybar";
|
|
|
|
escape = true;
|
|
|
|
};
|
|
|
|
"battery" = {
|
|
|
|
states = {
|
|
|
|
warning = 30;
|
|
|
|
critical = 15;
|
|
|
|
};
|
|
|
|
format = "{icon} {capacity}%";
|
|
|
|
format-charging = " {capacity}%";
|
|
|
|
format-plugged = " {capacity}%";
|
|
|
|
format-icons = ["" "" "" "" "" "" "" "" "" ""];
|
|
|
|
on-click = "";
|
|
|
|
tooltip = false;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
style = ''
|
|
|
|
* {
|
|
|
|
font-size: 16px;
|
|
|
|
font-family: JetBrainsMono Nerd Font, Font Awesome, sans-serif;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
window#waybar {
|
2024-02-05 06:54:33 +01:00
|
|
|
background-color: #${palette.base00};
|
|
|
|
border-bottom: 1px solid #${palette.base00};
|
2024-01-14 08:27:50 +01:00
|
|
|
border-radius: 0px;
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0F};
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#workspaces {
|
2024-02-05 06:54:33 +01:00
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
margin: 4px;
|
2024-01-14 08:27:50 +01:00
|
|
|
padding: 0px 1px;
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
border: 0px;
|
|
|
|
font-style: normal;
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base00};
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#workspaces button {
|
|
|
|
padding: 0px 5px;
|
|
|
|
margin: 4px 3px;
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
border: 0px;
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base00};
|
|
|
|
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E});
|
2024-01-24 10:48:25 +01:00
|
|
|
opacity: 0.5;
|
2024-01-14 08:27:50 +01:00
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
|
}
|
|
|
|
#workspaces button.active {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base00};
|
|
|
|
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E});
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
min-width: 40px;
|
|
|
|
transition: all 0.3s ease-in-out;
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
|
|
|
#workspaces button:hover {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base00};
|
|
|
|
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E});
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
opacity: 0.8;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
tooltip {
|
2024-02-05 06:54:33 +01:00
|
|
|
background: #${palette.base00};
|
|
|
|
border: 1px solid #${palette.base04};
|
2024-01-14 08:27:50 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
}
|
|
|
|
tooltip label {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base07};
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#window {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base05};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#memory {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0F};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#clock {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0B};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
2024-01-23 21:49:39 +01:00
|
|
|
#idle_inhibitor {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0A};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-23 21:49:39 +01:00
|
|
|
}
|
2024-01-14 08:27:50 +01:00
|
|
|
#cpu {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base07};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#disk {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base03};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#battery {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base08};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#network {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base09};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#tray {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base05};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#pulseaudio {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0D};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
|
|
|
#custom-notification {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0C};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-14 08:27:50 +01:00
|
|
|
}
|
2024-01-17 11:00:40 +01:00
|
|
|
#custom-themeselector {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base0D};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px;
|
2024-01-17 11:00:40 +01:00
|
|
|
}
|
2024-01-24 07:17:03 +01:00
|
|
|
#custom-startmenu {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base03};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px 2px 13px;
|
2024-01-24 07:17:03 +01:00
|
|
|
}
|
2024-01-24 08:46:33 +01:00
|
|
|
#idle_inhibitor {
|
2024-02-05 06:54:33 +01:00
|
|
|
color: #${palette.base09};
|
|
|
|
background: #${palette.base01};
|
2024-01-24 10:48:25 +01:00
|
|
|
border-radius: 10px;
|
|
|
|
margin: 4px;
|
|
|
|
padding: 2px 10px 2px 13px;
|
2024-01-24 08:46:33 +01:00
|
|
|
}
|
2024-01-14 08:27:50 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|