2023-05-31 17:35:41 +02:00
|
|
|
{ lib, pkgs, ... }:
|
2023-05-16 23:09:05 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
home-manager.sharedModules = [{
|
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2023-06-04 14:50:44 +02:00
|
|
|
package = (pkgs.callPackage ../../packages/waybar { });
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
settings = {
|
|
|
|
mainBar = {
|
|
|
|
layer = "top";
|
2023-05-23 05:04:54 +02:00
|
|
|
position = "right";
|
2023-05-16 23:09:05 +02:00
|
|
|
width = 45;
|
|
|
|
spacing = 8;
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
modules-left = [ "wlr/workspaces" "custom/new-workspace" ];
|
|
|
|
modules-right =
|
|
|
|
[ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
2023-05-25 19:08:01 +02:00
|
|
|
|
|
|
|
tray = {
|
|
|
|
icon-size = 24;
|
2023-05-16 23:09:05 +02:00
|
|
|
spacing = 8;
|
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
"wlr/workspaces" = {
|
|
|
|
on-click = "activate";
|
|
|
|
sort-by-number = true;
|
|
|
|
format = "{icon}";
|
|
|
|
format-icons = {
|
|
|
|
"1" = "一";
|
|
|
|
"2" = "二";
|
|
|
|
"3" = "三";
|
|
|
|
"4" = "四";
|
|
|
|
"5" = "五";
|
|
|
|
"6" = "六";
|
|
|
|
"7" = "七";
|
|
|
|
"8" = "八";
|
|
|
|
"9" = "九";
|
|
|
|
"10" = "十";
|
|
|
|
};
|
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
wireplumber = {
|
|
|
|
format = "{icon}";
|
|
|
|
tooltip-format = "{volume}% {node_name}";
|
|
|
|
format-muted = "";
|
2023-06-04 02:32:06 +02:00
|
|
|
format-icons = [ "" "" ];
|
2023-05-16 23:09:05 +02:00
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
battery = {
|
|
|
|
"format" = "{icon}";
|
|
|
|
"tooltip-format" = "{capacity}% {timeTo}";
|
2023-06-04 02:32:06 +02:00
|
|
|
"format-icons" = [ "" "" "" "" "" ];
|
2023-05-16 23:09:05 +02:00
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
clock = {
|
|
|
|
"format" = "{:%H\n%M}";
|
|
|
|
"tooltip-format" = "<tt>{calendar}</tt>";
|
2023-06-04 01:41:17 +02:00
|
|
|
"calendar" = {
|
|
|
|
"mode" = "month";
|
|
|
|
"weeks-pos" = "right";
|
|
|
|
"format" = {
|
|
|
|
"months" = "<span color='#ffead3'><b>{}</b></span>";
|
|
|
|
"days" = "<span color='#ecc6d9'><b>{}</b></span>";
|
|
|
|
"weeks" = "<span size='14pt' color='#99ffdd'><b>W{}</b></span>";
|
|
|
|
"weekdays" = "<span size='18pt' color='#ffcc66'><b>{}</b></span>";
|
|
|
|
"today" = "<span color='#ff6699'><b>{}</b></span>";
|
|
|
|
};
|
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
backlight = {
|
|
|
|
"format" = "{icon}";
|
2023-06-04 02:32:06 +02:00
|
|
|
"format-icons" = [ "" "" ];
|
2023-05-16 23:09:05 +02:00
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
"custom/new-workspace" = {
|
|
|
|
"format" = "+";
|
|
|
|
"on-click" = "hyprctl dispatch workspace empty && rofi -show drun";
|
2023-05-24 01:09:10 +02:00
|
|
|
"on-click-right" = "rofi -show drun";
|
2023-05-16 23:09:05 +02:00
|
|
|
"tooltip" = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-05-25 19:08:01 +02:00
|
|
|
|
2023-05-16 23:09:05 +02:00
|
|
|
style = lib.mkForce ''
|
|
|
|
@define-color base00 #272822;
|
|
|
|
@define-color base01 #383830;
|
|
|
|
@define-color base02 #49483e;
|
|
|
|
@define-color base03 #75715e;
|
|
|
|
@define-color base04 #a59f85;
|
|
|
|
@define-color base05 #f8f8f2;
|
|
|
|
@define-color base06 #f5f4f1;
|
|
|
|
@define-color base07 #f9f8f5;
|
|
|
|
@define-color base08 #f92672;
|
|
|
|
@define-color base09 #fd971f;
|
|
|
|
@define-color base0A #f4bf75;
|
|
|
|
@define-color base0B #a6e22e;
|
|
|
|
@define-color base0C #a1efe4;
|
|
|
|
@define-color base0D #66d9ef;
|
|
|
|
@define-color base0E #ae81ff;
|
|
|
|
@define-color base0F #cc6633;
|
|
|
|
|
|
|
|
* {
|
|
|
|
color: @base05;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
window#waybar {
|
2023-05-24 01:09:45 +02:00
|
|
|
background: alpha(@base00, 0.92);
|
2023-05-23 05:04:54 +02:00
|
|
|
border-left: 1px solid alpha(@base02, 0.67);
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button {
|
|
|
|
padding: 12px 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button.active {
|
|
|
|
background: alpha(@base02, 0.67);
|
|
|
|
}
|
|
|
|
|
|
|
|
#window {
|
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
tooltip, #tray menu {
|
|
|
|
background: @base00;
|
|
|
|
border: 1px solid alpha(@base09, 0.93);
|
|
|
|
padding: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#backlight, #battery, #wireplumber {
|
|
|
|
font-family: "Font Awesome 6 Free Solid";
|
|
|
|
font-size: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#custom-new-workspace {
|
|
|
|
font-family: "Font Awesome 6 Free Solid";
|
|
|
|
padding-top: 8px;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
color: alpha(@base0A, 0.67);
|
|
|
|
}
|
|
|
|
|
|
|
|
#clock {
|
|
|
|
font-size: 18px;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
}
|