feat: switched back to hyprland

This commit is contained in:
Nick 2025-01-08 01:05:45 -06:00
parent dd99b3a827
commit b0dc23c7c0
144 changed files with 1347 additions and 477 deletions

View file

@ -0,0 +1,106 @@
{
mainBar = {
position = "bottom";
layer = "top";
height = 5;
margin-top = 0;
margin-bottom = 5;
margin-left = 5;
margin-right = 5;
modules-left = [
"custom/launcher"
"hyprland/workspaces"
];
modules-center = [
];
modules-right = [
"tray"
"cpu"
"memory"
"disk"
"pulseaudio"
"network"
"clock"
];
clock = {
calendar = {
format = {today = "<span color='#ff6699'><b><u>{}</u></b></span>";};
};
format = " {:%H:%M}";
tooltip = true;
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
format-alt = " {:%d/%m}";
};
"hyprland/workspaces" = {
active-only = false;
disable-scroll = true;
format = "{icon}";
on-click = "activate";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"4" = "";
urgent = "";
default = "";
sort-by-number = true;
};
persistent-workspaces = {
"1" = [];
"2" = [];
"3" = [];
"4" = [];
};
};
memory = {
format = "󰟜 {}%";
format-alt = "󰟜 {used} GiB"; # 
interval = 2;
};
cpu = {
format = " {usage}%";
format-alt = " {avg_frequency} GHz";
interval = 2;
};
disk = {
# path = "/";
format = "󰋊 {percentage_used}%";
interval = 60;
};
network = {
format-wifi = " {signalStrength}%";
format-ethernet = "󰀂 ";
tooltip-format = "Connected to {essid} {ifname} via {gwaddr}";
format-linked = "{ifname} (No IP)";
format-disconnected = "󰖪 ";
};
tray = {
icon-size = 18;
spacing = 8;
};
pulseaudio = {
format = "{icon} {volume}%";
tooltip = false;
format-muted = " Muted";
on-click = "pamixer -t";
on-scroll-up = "pamixer -i 5";
on-scroll-down = "pamixer -d 5";
scroll-step = 5;
format-icons = {
headphone = "";
hands-free = "";
headset = "";
phone = "";
portable = "";
car = "";
default = ["" "" ""];
};
};
"custom/launcher" = {
format = "";
on-click = "rm -r /home/$USER/.cache/tofi* ; tofi-drun";
# on-click-right = "pkill tofi || wallpaper-picker";
tooltip = false;
};
};
}

View file

@ -0,0 +1,79 @@
{flake, ...}: let
inherit (flake.config.aesthetics.themes.theme) font colors;
custom = {
font = font;
font_size = "14px";
font_weight = "bold";
text_color = colors.mauve;
secondary_accent = colors.lavender;
tertiary_accent = colors.sky;
background = colors.base;
opacityBg = "0.90";
opacityBt = "1";
};
in ''
* {
min-height: 0px;
font-family: ${custom.font};
font-weight: ${custom.font_weight};
}
window#waybar {
background: #${colors.crust};
color: #${colors.surface2};
border: 2px solid;
border-radius: 30px;
border-color: #${colors.mauve};
min-height: 100px;
opacity: ${custom.opacityBg};
}
#workspaces {
font-size: 18px;
padding-left: 15px;
margin-bottom: 2px;
}
#workspaces button {
color: #${colors.overlay2};
padding: 5px;
opacity: ${custom.opacityBt};
}
#workspaces button.empty {
color: #${colors.surface2};
}
#workspaces button.active {
color: #${colors.mauve};
}
#tray, #pulseaudio, #network, #cpu, #memory, #disk, #clock {
font-size: ${custom.font_size};
color: #${colors.mauve};
padding-right: 10px;
}
#cpu {
}
#memory {
}
#disk {
}
#tray {
}
#pulseaudio {
}
#network {
}
#clock {
}
#custom-launcher {
font-size: 20px;
color: #${colors.mauve};
font-weight: ${custom.font_weight};
padding-left: 10px;
}
''

18
home/modules/waybar/default.nix Executable file
View file

@ -0,0 +1,18 @@
{
pkgs,
flake,
...
}: let
configPath = ./config;
settingsPath = import (configPath + "/settings.nix");
stylePath = import (configPath + /style.nix) {inherit flake;};
in {
programs.waybar = {
enable = true;
package = pkgs.waybar.overrideAttrs (oa: {
# mesonFlags = (oa.mesonFlags or []) ++ ["-Dexperimental=true"];
});
settings = settingsPath;
style = stylePath;
};
}