theyre ass

This commit is contained in:
cln
2026-04-19 17:12:27 +02:00
commit b8170ba73c
537 changed files with 53600 additions and 0 deletions
+213
View File
@@ -0,0 +1,213 @@
{ config, lib, pkgs, ... }:
{
programs.waybar.settings.main = {
layer = "top";
position = "top";
spacing = "4";
# List of modules
modules-left = [
"custom/nixicon"
"hyprland/workspaces"
"hyprland/window"
];
modules-center = [
"clock"
"privacy"
];
modules-right = [
"network"
"wireplumber"
"cpu"
"memory"
"disk"
"temperature"
"backlight"
"battery"
"custom/dunst"
"tray"
"custom/power"
];
# Modules configuration
# Modules left:
"custom/nixicon" = {
format = "";
tooltip = false;
};
"hyprland/workspaces" = {
active-only = false;
hide-active = false;
sort-by = "number";
disable-scroll = true;
all-outputs = true;
warp-on-scroll = false;
format = "{id}";
};
"hyprland/window" = {
format = "{title}";
max-length = 70; # Increase if you got a bigger display
icon = true;
icon-size = 20;
};
# Modules center:
clock = {
interval = "1";
format = " {:%H:%M:%S %d %b} ";
format-alt = " {:%A, %B %d, %Y %R} ";
timezone = "Europe/Warsaw";
tooltip-format = "<tt><big>{calendar}</big></tt>";
calendar = {
mode = "month";
mode-mon-col = 3;
weeks-pos = "right";
on-scroll = 1;
format = {
months = "<span color='#eff1f5'><b>{}</b></span>";
days = "<span color='#e6e9ef'><b>{}</b></span>";
weeks = "<span color='#9ca0b0'><b>W{}</b></span>";
weekdays = "<span color='#7287fd'><b>{}</b></span>";
today = "<span color='#e64553'><b><u>{}</u></b></span>";
};
};
actions = {
on-click-right = "mode";
on-scroll-up = "shift_up";
on-scroll-down = "shift_down";
};
};
privacy = {
icon-spacing = 4;
icon-size = 18;
expand = true;
transition-duration = 250;
modules = [
{
type = "screenshare";
tooltip = true;
tooltip-icon-size = 24;
}
{
type = "audio-out";
tooltip = true;
tooltip-icon-size = 24;
}
{
type = "audio-in";
tooltip = true;
tooltip-icon-size = 24;
}
];
};
# Modules right:
network = {
interval = 10;
format-wifi = " ";
format-ethernet = "";
tooltip = true;
tooltip-format = "{essid}";
format-linked = "(No IP) ";
format-disconnected = "Disconnected ";
on-click = "nm-connection-editor";
};
wireplumber = {
format = "{volume}% {icon}";
format-muted = "";
on-click = "pwvucontrol";
format-icons = ["" "" ""];
};
"wireplumber#source" = {
node-type = "Audio/Source";
format = "{volume}% 󰍬";
format-muted = "󰍭";
on-click = "pwvucontrol";
scroll-step = 5;
};
cpu = {
interval = 5;
format = "{usage}% ";
tooltip = true;
on-click = "kitty btop";
};
memory = {
interval = 5;
format = "{used}GB/{avail}GB ";
on-click = "kitty btop";
};
disk = {
interval = 10;
format = "󱛟 {percentage_used}%";
path = "/";
};
temperature = {
interval = 5;
thermal-zone = 2;
hwon-path = "/sys/class/hwmon2/temp1_input";
critical-threshold = 80;
format = "{temperatureC}°C {icon}";
format-critical = "{temperatureC}°C {icon}";
format-icons = ["" "" ""];
};
backlight = {
interval = 5;
device = "acpi_video1";
format = "{percent}% {icon}";
format-icons = ["" "" "" "" "" "" "" "" ""];
};
battery = {
interval = 1;
format = "{capacity}% {icon}";
format-full = "{capacity}% {icon}";
format-charging = "{capacity}% ";
format-plugged = "{capacity}% ";
format-alt = "{time} {icon}";
format-icons = ["" "" "" "" ""];
};
# Credits to GGORG0 on Github for the dunst module
"custom/dunst" = {
exec =
lib.getExe'
(pkgs.writeShellScriptBin "dunst" ''
set -euo pipefail
ENABLED=""
DISABLED=""
DISABLED_UNREAD=""
${lib.getExe' pkgs.dbus "dbus-monitor"} path='/org/freedesktop/Notifications',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged' --profile |
while read -r _; do
PAUSED="$(${lib.getExe' pkgs.dunst "dunstctl"} is-paused)"
if [ "$PAUSED" == 'false' ]; then
TEXT="$ENABLED"
else
TEXT="$DISABLED"
COUNT="$(${lib.getExe' pkgs.dunst "dunstctl"} count waiting)"
if [ "$COUNT" != '0' ]; then
TEXT="$COUNT $DISABLED_UNREAD"
fi
fi
printf '{"text": "%s"}\n' "$TEXT"
done
'') "dunst";
return-type = "json";
on-click = "${lib.getExe' pkgs.dunst "dunstctl"} set-paused toggle";
};
tray = {
icon-size = 15;
spacing = 10;
show-passive-items = true;
};
"custom/power" = {
format = "";
tooltip = false;
on-click = "sh $HOME/.config/hypr/power.sh";
};
};
}
+11
View File
@@ -0,0 +1,11 @@
{ config, lib, ... }:
{
imports = [
./config.nix
./style.nix
];
programs.waybar.enable = true;
}
+153
View File
@@ -0,0 +1,153 @@
{ config, ... }:
{
programs.waybar.style = "
/*
* Catppuccin Mocha theme from Github
* Maintainer: rubyowo
*/
@define-color rosewater #f5e0dc;
@define-color flamingo #f2cdcd;
@define-color pink #f5c2e7;
@define-color mauve #cba6f7;
@define-color red #f38ba8;
@define-color maroon #eba0ac;
@define-color peach #fab387;
@define-color yellow #f9e2af;
@define-color green #a6e3a1;
@define-color teal #94e2d5;
@define-color sky #89dceb;
@define-color sapphire #74c7ec;
@define-color blue #89b4fa;
@define-color lavender #b4befe;
@define-color text #cdd6f4;
@define-color subtext1 #bac2de;
@define-color subtext0 #a6adc8;
@define-color overlay2 #9399b2;
@define-color overlay1 #7f849c;
@define-color overlay0 #6c7086;
@define-color surface2 #585b70;
@define-color surface1 #45475a;
@define-color surface0 #313244;
@define-color base #1e1e2e;
@define-color mantle #181825;
@define-color crust #11111b;
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: JetBrainsMono Nerd Font;
font-size: 15px;
}
window#waybar {
color: @text;
background-color: transparent;
transition-property: background-color;
transition-duration: .7s;
}
window#waybar.hidden {
opacity: 0;
}
#workspaces {
color: @subtext0;
background-color: @surface0;
border-radius: 1rem;
margin: 0.3rem;
padding: 0.3rem;
}
#workspaces:hover {
color: @subtext0;
background-color: @surface0;
border-radius: 1rem;
margin: 0.3rem;
padding: 0.3rem;
}
#workspaces button {
color: @subtext0;
background-color: @surface0;
border-radius: 2rem;
margin: 0;
padding: 0.25rem;
transition: color 0.5s, background-color 0.5s;
}
#workspaces button:hover {
color: @subtext1;
background: @surface1;
box-shadow: none;
text-shadow: none;
border: none;
border-radius: 2rem;
margin: 0;
padding: 0.25rem;
}
#workspaces button.focused, #workspaces button.active {
color: @subtext1;
background-color: @surface1;
}
#window {
color: @subtext0;
background-color: @surface0;
border-radius: 1rem;
margin: 0.3rem 0 0.3rem 0;
padding: 0 0.5rem 0 0.5rem;
}
#custom-nixicon,
#clock,
#privacy,
#network,
#wireplumber,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#battery,
#custom-dunst,
#tray,
#custom-power {
color: @subtext0;
background-color: @surface0;
margin: 0.3rem 0.1rem 0.3rem 0.1rem;
padding: 0.3rem 1rem 0.3rem 1rem;
border-radius: 1rem;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0.5rem;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0.5rem;
}
#custom-nixicon {
margin: 0.3rem 0 0.3rem 0.5rem;
padding: 0 0.5rem 0 0.5rem;
}
#clock {
padding: 0.3rem;
}
#custom-dunst {
padding-right: 1.4rem;
}
#custom-power {
margin-right: 0.5rem;
padding-right: 1.2rem;
}
";
}