Initial commit
This commit is contained in:
commit
b79d352847
37 changed files with 2191 additions and 0 deletions
86
home/waybar/default.nix
Normal file
86
home/waybar/default.nix
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options = {
|
||||
custom.waybar.enable = lib.mkEnableOption "Enable waybar config";
|
||||
};
|
||||
config = lib.mkIf config.custom.waybar.enable {
|
||||
xdg.configFile = {
|
||||
waybarColorscheme = {
|
||||
text = "";
|
||||
target = "waybar/colorscheme.css";
|
||||
};
|
||||
};
|
||||
catppuccin.waybar.mode = "createLink";
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
style = ./style.css;
|
||||
settings = {
|
||||
mainBar = {
|
||||
margin-top = 14;
|
||||
margin-left = 14;
|
||||
margin-right = 14;
|
||||
layer = "top";
|
||||
modules-left = [
|
||||
"custom/logo"
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
modules-center = [ "hyprland/window" ];
|
||||
modules-right = [
|
||||
"hyprland/language"
|
||||
"wireplumber"
|
||||
"backlight"
|
||||
"battery"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
clock = {
|
||||
format = " {:%d.%m.%Y %H:%M}";
|
||||
};
|
||||
backlight = {
|
||||
format = " {percent}%";
|
||||
};
|
||||
"hyprland/language" = {
|
||||
format = " {}";
|
||||
format-en = "EN";
|
||||
format-ru = "RU";
|
||||
};
|
||||
wireplumber = {
|
||||
format = "{icon} {volume}%";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
format-muted = " {volume}%";
|
||||
};
|
||||
"custom/logo" = {
|
||||
format = "";
|
||||
};
|
||||
tray = {
|
||||
spacing = 10;
|
||||
};
|
||||
"hyprland/window" = {
|
||||
max-length = 50;
|
||||
};
|
||||
battery = {
|
||||
format = "{icon} {capacity}% {time}";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
format-time = "{H}:{m}";
|
||||
format-charging = " {capacity}% {time}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
44
home/waybar/style.css
Normal file
44
home/waybar/style.css
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@import "colorscheme.css";
|
||||
|
||||
* {
|
||||
font-size: 18px;
|
||||
font-family:
|
||||
Roboto, "Font Awesome 7 Free Solid", "Font Awesome 6 Free Solid";
|
||||
}
|
||||
|
||||
#custom-logo {
|
||||
font-size: 20px;
|
||||
font-family: "FiraCode Nerd Font";
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.modules-right .module {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
border-radius: 100%;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
background: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
min-width: 20px;
|
||||
min-height: 20px;
|
||||
padding: 7px;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue