mirror of
https://github.com/henrysipp/omarchy-nix.git
synced 2026-06-05 18:29:26 -05:00
Initial commit
This commit is contained in:
@@ -0,0 +1,174 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.omarchy;
|
||||
themes = import ../themes.nix;
|
||||
theme = themes.${cfg.theme};
|
||||
in {
|
||||
home.file = {
|
||||
".config/waybar/" = {
|
||||
source = ../../config/waybar;
|
||||
recursive = true;
|
||||
};
|
||||
".config/waybar/theme.css" = {
|
||||
text = ''
|
||||
* {
|
||||
color: ${theme.foreground};
|
||||
background-color: ${theme.background};
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = [
|
||||
{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
spacing = 0;
|
||||
height = 26;
|
||||
modules-left = [
|
||||
"hyprland/workspaces"
|
||||
];
|
||||
modules-center = [
|
||||
"clock"
|
||||
];
|
||||
modules-right = [
|
||||
# "custom/dropbox"
|
||||
"bluetooth"
|
||||
"network"
|
||||
"wireplumber"
|
||||
"cpu"
|
||||
"power-profiles-daemon"
|
||||
"battery"
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
on-click = "activate";
|
||||
format = "{icon}";
|
||||
format-icons = {
|
||||
default = "";
|
||||
"1" = "1";
|
||||
"2" = "2";
|
||||
"3" = "3";
|
||||
"4" = "4";
|
||||
"5" = "5";
|
||||
"6" = "6";
|
||||
"7" = "7";
|
||||
"8" = "8";
|
||||
"9" = "9";
|
||||
active = "";
|
||||
};
|
||||
persistent_workspaces = {
|
||||
"1" = [];
|
||||
"2" = [];
|
||||
"3" = [];
|
||||
"4" = [];
|
||||
"5" = [];
|
||||
};
|
||||
};
|
||||
cpu = {
|
||||
interval = 5;
|
||||
format = "";
|
||||
on-click = "alacritty -e btop";
|
||||
};
|
||||
clock = {
|
||||
format = "{:%A %H:%M}";
|
||||
format-alt = "{:%d %B W%V %Y}";
|
||||
tooltip = false;
|
||||
};
|
||||
network = {
|
||||
format-icons = ["" "" "" "" ""];
|
||||
format = "{icon}";
|
||||
format-wifi = "{icon}";
|
||||
format-ethernet = "";
|
||||
format-disconnected = "";
|
||||
tooltip-format-wifi = "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}";
|
||||
tooltip-format-ethernet = "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}";
|
||||
tooltip-format-disconnected = "Disconnected";
|
||||
interval = 3;
|
||||
nospacing = 1;
|
||||
on-click = "alacritty -e iwctl";
|
||||
};
|
||||
battery = {
|
||||
interval = 5;
|
||||
format = "{capacity}% {icon}";
|
||||
format-discharging = "{icon}";
|
||||
format-charging = "{icon}";
|
||||
format-plugged = "";
|
||||
format-icons = {
|
||||
charging = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
default = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
};
|
||||
format-full = "Charged ";
|
||||
tooltip-format-discharging = "{power:>1.0f}W↓ {capacity}%";
|
||||
tooltip-format-charging = "{power:>1.0f}W↑ {capacity}%";
|
||||
states = {
|
||||
warning = 20;
|
||||
critical = 10;
|
||||
};
|
||||
};
|
||||
bluetooth = {
|
||||
format = "";
|
||||
format-disabled = "";
|
||||
format-connected = "";
|
||||
tooltip-format = "Devices connected: {num_connections}";
|
||||
on-click = "GTK_THEME=Adwaita-dark blueberry";
|
||||
};
|
||||
wireplumber = {
|
||||
# Changed from "pulseaudio"
|
||||
"format" = "";
|
||||
format-muted = "";
|
||||
scroll-step = 5;
|
||||
on-click = "GTK_THEME=Adwaita-dark pavucontrol";
|
||||
tooltip-format = "Playing at {volume}%";
|
||||
on-click-right = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"; # Updated command
|
||||
max-volume = 150; # Optional: allow volume over 100%
|
||||
};
|
||||
power-profiles-daemon = {
|
||||
format = "{icon}";
|
||||
tooltip-format = "Power profile: {profile}";
|
||||
tooltip = true;
|
||||
format-icons = {
|
||||
power-saver = "";
|
||||
balanced = "";
|
||||
performance = "";
|
||||
};
|
||||
};
|
||||
# "custom/dropbox" = {
|
||||
# format = "";
|
||||
# on-click = "nautilus ~/Dropbox";
|
||||
# exec = "dropbox-cli status";
|
||||
# return-type = "text";
|
||||
# interval = 5;
|
||||
# tooltip = true;
|
||||
# tooltip-format = "{}";
|
||||
# };
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user