2023-03-08 08:52:23 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
|
|
|
in {
|
2023-03-11 22:53:47 +01:00
|
|
|
home.packages = lib.mkIf isLinux (with pkgs; [
|
2023-03-10 07:22:01 +01:00
|
|
|
cliphist
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
wl-clipboard
|
|
|
|
nur.repos.nekowinston.swww
|
2023-03-11 22:53:47 +01:00
|
|
|
]);
|
2023-03-10 07:22:01 +01:00
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
programs.waybar = lib.mkIf isLinux {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.waybar;
|
|
|
|
settings = [
|
|
|
|
{
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
|
|
|
margin-left = 5;
|
|
|
|
margin-right = 5;
|
|
|
|
margin-top = 5;
|
|
|
|
modules-left = ["sway/workspaces" "mpd"];
|
|
|
|
modules-center = [];
|
|
|
|
modules-right = ["tray" "cpu" "memory" "clock"];
|
|
|
|
"sway/workspaces" = {
|
|
|
|
disable-scroll = true;
|
|
|
|
format = "{name}";
|
|
|
|
};
|
|
|
|
mpd = {
|
|
|
|
format = "{artist} - {title}";
|
|
|
|
format-disconnected = "";
|
|
|
|
format-paused = "";
|
|
|
|
format-stopped = "";
|
|
|
|
interval = 10;
|
|
|
|
};
|
|
|
|
tray = {
|
|
|
|
reverse-direction = true;
|
|
|
|
spacing = 5;
|
|
|
|
};
|
|
|
|
cpu = {
|
|
|
|
format = " {usage:2}%";
|
|
|
|
interval = 1;
|
|
|
|
};
|
|
|
|
memory = {
|
|
|
|
format = " {percentage:2}%";
|
|
|
|
interval = 1;
|
|
|
|
};
|
|
|
|
spacing = 4;
|
2023-03-08 08:52:23 +01:00
|
|
|
}
|
2023-03-12 14:25:42 +01:00
|
|
|
];
|
|
|
|
style = ''
|
|
|
|
@define-color red #f38ba8;
|
|
|
|
@define-color mauve #cba6f7;
|
|
|
|
@define-color pink #f5c2e7;
|
|
|
|
@define-color crust #11111c;
|
|
|
|
@define-color base #1e1e2e;
|
|
|
|
@define-color text #cdd6f4;
|
|
|
|
|
|
|
|
* {
|
|
|
|
font-family: IBM Plex Sans;
|
|
|
|
font-size: 16px;
|
2023-03-08 08:52:23 +01:00
|
|
|
}
|
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
window#waybar {
|
|
|
|
background-color: @base;
|
|
|
|
border: 2px solid @crust;
|
|
|
|
border-radius: 5px;
|
|
|
|
color: @text;
|
2023-03-08 08:52:23 +01:00
|
|
|
}
|
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#workspaces button {
|
|
|
|
padding: 0 5px;
|
|
|
|
color: alpha(@mauve, 0.5);
|
2023-03-08 08:52:23 +01:00
|
|
|
}
|
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#workspaces button.focused {
|
|
|
|
color: @pink;
|
|
|
|
}
|
2023-03-08 08:52:23 +01:00
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#workspaces button.urgent {
|
|
|
|
background-color: @red;
|
|
|
|
}
|
2023-03-10 02:50:27 +01:00
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#clock,
|
|
|
|
#cpu,
|
|
|
|
#idle_inhibitor,
|
|
|
|
#memory,
|
|
|
|
#mpd,
|
|
|
|
#pulseaudio,
|
|
|
|
#tray {
|
|
|
|
padding: 0 5px;
|
|
|
|
}
|
2023-03-10 02:50:27 +01:00
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#mpd {
|
|
|
|
font-family: Symbols Nerd Font, Victor Mono;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
2023-03-10 07:22:01 +01:00
|
|
|
|
2023-03-12 14:25:42 +01:00
|
|
|
#cpu,
|
|
|
|
#memory {
|
|
|
|
font-family: Berkeley Mono;
|
|
|
|
}
|
2023-03-08 08:52:23 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|