Complete system rework feat. Niri, Noctalia, Helix, Vicinae, Zellij, & Kanshi
This commit is contained in:
143
modules/unused/waybar/default.nix
Normal file
143
modules/unused/waybar/default.nix
Normal file
@@ -0,0 +1,143 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.waybar = {
|
||||
enable = false;
|
||||
systemd.enable = true;
|
||||
settings = [
|
||||
{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
margin-left = 10;
|
||||
margin-right = 10;
|
||||
margin-top = 5;
|
||||
fixed-center = true;
|
||||
reload_style_on_change = false;
|
||||
|
||||
"hyprland/workspaces" = import ./modules/hyprland-workspaces.nix { };
|
||||
"custom/menu" = import ./modules/menu.nix { };
|
||||
"hyprland/window" = import ./modules/hyprland-window.nix { };
|
||||
"disk" = import ./modules/disk.nix { };
|
||||
"cpu" = import ./modules/cpu.nix { };
|
||||
"memory" = import ./modules/memory.nix { };
|
||||
"temperature" = import ./modules/temperature.nix { };
|
||||
"idle_inhibitor" = import ./modules/idle-inhibitor.nix { };
|
||||
"tray" = import ./modules/tray.nix { };
|
||||
"network" = import ./modules/network.nix { };
|
||||
"wireplumber" = import ./modules/wireplumber.nix { };
|
||||
"backlight" = import ./modules/backlight.nix { };
|
||||
"mpris" = import ./modules/mpris.nix { };
|
||||
"battery" = import ./modules/battery.nix { full-at = 80; }; # Change this to come from the TLP setting
|
||||
"clock" = import ./modules/clock.nix { };
|
||||
"custom/power" = import ./modules/power.nix { };
|
||||
"custom/hyprpicker" = import ./modules/hyprpicker.nix { };
|
||||
"custom/separator#blank" = {
|
||||
format = "";
|
||||
interval = "once";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
modules-left = [
|
||||
"custom/menu"
|
||||
"custom/separator#blank"
|
||||
"clock"
|
||||
"custom/separator#blank"
|
||||
"custom/hyprpicker"
|
||||
];
|
||||
|
||||
modules-center = [
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
|
||||
modules-right = [
|
||||
"tray"
|
||||
"custom/separator#blank"
|
||||
"group/motherboard"
|
||||
"custom/separator#blank"
|
||||
"wireplumber"
|
||||
"custom/separator#blank"
|
||||
"battery"
|
||||
"custom/separator#blank"
|
||||
"custom/power"
|
||||
];
|
||||
|
||||
"group/motherboard" = {
|
||||
orientation = "inherit";
|
||||
modules = [
|
||||
"cpu"
|
||||
"memory"
|
||||
"temperature"
|
||||
"disk"
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
style = ''
|
||||
@define-color base00 #192435; /* Darkest background (night sky / deep shadows) */
|
||||
@define-color base01 #243449; /* Slightly lighter background */
|
||||
@define-color base02 #36455D; /* Selection / inactive UI */
|
||||
@define-color base03 #51637E; /* Comments / subtle foreground */
|
||||
|
||||
@define-color base04 #8FA3BA; /* Dark foreground (status bars) */
|
||||
@define-color base05 #C7D2DF; /* Default foreground (text) */
|
||||
@define-color base06 #E3EAF2; /* Light foreground (highlighted text) */
|
||||
@define-color base07 #F4D9C7; /* Bright foreground (lantern light) */
|
||||
|
||||
@define-color base08 #D88C7A; /* Red / Errors (warm wood & lantern glow) */
|
||||
@define-color base09 #E5AD97; /* Orange / Numbers / Constants */
|
||||
@define-color base0A #E9C48A; /* Yellow / Classes / Warnings */
|
||||
@define-color base0B #9FBFA8; /* Green / Strings */
|
||||
@define-color base0C #8FB6C8; /* Cyan / Support / Regex */
|
||||
@define-color base0D #7FA6D9; /* Blue / Functions / Keywords */
|
||||
@define-color base0E #B69BCB; /* Purple / Types / Specials */
|
||||
@define-color base0F #B0896A; /* Brown / Deprecated */
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "JetBrainsMono Nerd Font Propo"; /* The Propo(rtional) variant of the ensures icons are properly spaced */
|
||||
font-feature-settings: '"zero", "tnum", "ss01", "ss02", "ss03", "cv01"';
|
||||
font-weight: 700;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.module {
|
||||
padding: 0 6px;
|
||||
}
|
||||
|
||||
.modules-left,
|
||||
.modules-center,
|
||||
.modules-right {
|
||||
background: @base00;
|
||||
padding: 6px 8px;
|
||||
border-color: @base03;
|
||||
border-width: 1.5px;
|
||||
border-style: solid;
|
||||
border-radius: 0.75rem;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: @base04;
|
||||
font-size: 0.9rem;
|
||||
padding: 0 7px;
|
||||
}
|
||||
|
||||
#motherboard,
|
||||
#custom-menu {
|
||||
color: @base04;
|
||||
}
|
||||
|
||||
#wireplumber,
|
||||
#battery,
|
||||
#custom-power,
|
||||
#custom-hyprpicker,
|
||||
#clock {
|
||||
color: @base05;
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
27
modules/unused/waybar/modules/backlight.nix
Normal file
27
modules/unused/waybar/modules/backlight.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{icon}";
|
||||
tooltip-format = "Backlight {percent}%";
|
||||
format-icons = [
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
];
|
||||
icon-size = 10;
|
||||
on-scroll-down = "brightnessctl set 10%-";
|
||||
on-scroll-up = "brightnessctl set +10%";
|
||||
}
|
||||
33
modules/unused/waybar/modules/battery.nix
Normal file
33
modules/unused/waybar/modules/battery.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
full-at ? 100,
|
||||
...
|
||||
}:
|
||||
{
|
||||
inherit full-at;
|
||||
states = {
|
||||
# These values are percentages based on `full-at`
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-charging = " {capacity}%";
|
||||
format-plugged = " {capacity}%";
|
||||
format-full = "{icon} {capacity}%";
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
format-time = "{H}h {M}min";
|
||||
tooltip = true;
|
||||
tooltip-format = "{timeTo} {power}w";
|
||||
}
|
||||
13
modules/unused/waybar/modules/bluetooth.nix
Normal file
13
modules/unused/waybar/modules/bluetooth.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "";
|
||||
format-disabled = "";
|
||||
format-connected = " {num_connections}";
|
||||
tooltip-format = " {device_alias}";
|
||||
tooltip-format-connected = "{device_enumerate}";
|
||||
tooltip-format-enumerate-connected = " {device_alias} {device_battery_percentage}%";
|
||||
tooltip = true;
|
||||
# on-click = "blueman-manager";
|
||||
}
|
||||
21
modules/unused/waybar/modules/clock.nix
Normal file
21
modules/unused/waybar/modules/clock.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
interval = 1; # Poll every second
|
||||
format = "{:%H:%M - %d/%b}";
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
calendar = {
|
||||
mode = "year";
|
||||
mode-mon-col = 3;
|
||||
weeks-pos = "right";
|
||||
on-scroll = 1;
|
||||
format = {
|
||||
months = "<span color='#ffead3'><b>{}</b></span>";
|
||||
days = "<span color='#ecc6d9'><b>{}</b></span>";
|
||||
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
|
||||
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
|
||||
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
}
|
||||
7
modules/unused/waybar/modules/cpu.nix
Normal file
7
modules/unused/waybar/modules/cpu.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{usage}% ";
|
||||
interval = 1;
|
||||
}
|
||||
10
modules/unused/waybar/modules/disk.nix
Normal file
10
modules/unused/waybar/modules/disk.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
interval = 30;
|
||||
format = "{percentage_used}% ";
|
||||
tooltip = true;
|
||||
tooltip-format = "{specific_free:0.1f}/{specific_total:0.1f}GiB";
|
||||
unit = "GiB";
|
||||
}
|
||||
15
modules/unused/waybar/modules/hyprland-window.nix
Normal file
15
modules/unused/waybar/modules/hyprland-window.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{title}";
|
||||
max-length = 40;
|
||||
separate-outputs = true; # List different titles for each monitor
|
||||
offscreen-css = true; # No idea what this does
|
||||
offscreen-css-text = "(inactive)"; # No idea what this does either
|
||||
rewrite = {
|
||||
"(.*) — Mozilla Firefox" = " Firefox";
|
||||
# Foot terminal doesn't display any title for some reason
|
||||
# Find a fix
|
||||
};
|
||||
}
|
||||
23
modules/unused/waybar/modules/hyprland-workspaces.nix
Normal file
23
modules/unused/waybar/modules/hyprland-workspaces.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
active-only = false; # Show all workspaces
|
||||
all-outputs = true; # Show all workspace groups
|
||||
format = "{icon}";
|
||||
show-special = false; # Hide Hyprland's "special" workspaces
|
||||
on-click = "activate";
|
||||
on-scroll-up = "hyprctl dispatch workspace r+1";
|
||||
on-scroll-down = "hyprctl dispatch workspace r-1";
|
||||
persistent-workspaces = {
|
||||
"1" = [ ];
|
||||
"2" = [ ];
|
||||
"3" = [ ];
|
||||
"4" = [ ];
|
||||
"5" = [ ];
|
||||
};
|
||||
format-icons = {
|
||||
active = "";
|
||||
default = "";
|
||||
};
|
||||
}
|
||||
7
modules/unused/waybar/modules/hyprpicker.nix
Normal file
7
modules/unused/waybar/modules/hyprpicker.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "";
|
||||
on-click = "hyprpicker | tr -d '\\n' | wl-copy";
|
||||
}
|
||||
10
modules/unused/waybar/modules/idle-inhibitor.nix
Normal file
10
modules/unused/waybar/modules/idle-inhibitor.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
activated = " ";
|
||||
deactivated = " ";
|
||||
};
|
||||
}
|
||||
11
modules/unused/waybar/modules/memory.nix
Normal file
11
modules/unused/waybar/modules/memory.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
interval = 10;
|
||||
format = "{used:0.1f}G ";
|
||||
format-alt = "{percentage}% ";
|
||||
format-alt-click = "click";
|
||||
tooltip = true;
|
||||
tooltip-format = "{used:0.1f}/{total:0.1f}GiB";
|
||||
}
|
||||
10
modules/unused/waybar/modules/menu.nix
Normal file
10
modules/unused/waybar/modules/menu.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{}";
|
||||
exec = "echo ; echo app launcher";
|
||||
interval = 86400;
|
||||
tooltip = true;
|
||||
on-click = "walker";
|
||||
}
|
||||
26
modules/unused/waybar/modules/mpris.nix
Normal file
26
modules/unused/waybar/modules/mpris.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
interval = 10;
|
||||
format = "{player_icon} ";
|
||||
format-paused = "{status_icon} <i>{dynamic}</i>";
|
||||
player-icons = {
|
||||
chromium = "";
|
||||
mpd = "";
|
||||
default = "";
|
||||
firefox = "";
|
||||
kdeconnect = "";
|
||||
mopidy = "";
|
||||
mpv = "";
|
||||
spotify = "";
|
||||
vlc = "";
|
||||
};
|
||||
status-icons = {
|
||||
paused = "";
|
||||
playing = "";
|
||||
stopped = "";
|
||||
};
|
||||
max-length = 30;
|
||||
|
||||
}
|
||||
22
modules/unused/waybar/modules/network.nix
Normal file
22
modules/unused/waybar/modules/network.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{ifname}";
|
||||
format-wifi = "{icon}";
|
||||
format-ethernet = "";
|
||||
format-disconnected = "";
|
||||
format-linked = " {ifname} (No IP)";
|
||||
tooltip-format = "{ipaddr} {bandwidthUpBytes} {bandwidthDownBytes}";
|
||||
tooltip-format-wifi = "{essid} {icon} {signalStrength}%";
|
||||
tooltip-format-ethernet = "{essid} ";
|
||||
tooltip-format-disconnected = " Disconnected";
|
||||
max-length = 50;
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
}
|
||||
10
modules/unused/waybar/modules/power.nix
Normal file
10
modules/unused/waybar/modules/power.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "⏻";
|
||||
exec = "echo ; echo power";
|
||||
on-click = "wlogout";
|
||||
interval = 86400; # once every day
|
||||
tooltip = true;
|
||||
}
|
||||
14
modules/unused/waybar/modules/temperature.nix
Normal file
14
modules/unused/waybar/modules/temperature.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
interval = 10;
|
||||
tooltip = true;
|
||||
# Thermal Zone 12 refers to the CPU package temp
|
||||
# This might vary between devices. Maybe make it an input?
|
||||
thermal-zone = 12;
|
||||
critical-threshold = 85;
|
||||
format-critical = "{temperatureC}°C {icon}";
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = [ "" ];
|
||||
}
|
||||
7
modules/unused/waybar/modules/tray.nix
Normal file
7
modules/unused/waybar/modules/tray.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
icon-size = 15;
|
||||
spacing = 8;
|
||||
}
|
||||
27
modules/unused/waybar/modules/wireplumber.nix
Normal file
27
modules/unused/waybar/modules/wireplumber.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
format = "{icon} {volume}% {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = " {volume}%";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
hands-free = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
};
|
||||
scroll-step = 5.0;
|
||||
on-click = "pavucontrol -t 3";
|
||||
on-click-right = "pavucontrol -t 4";
|
||||
tooltip-format = "{node_name} {volume}%\n{source_desc} {source_volume}%";
|
||||
}
|
||||
Reference in New Issue
Block a user