aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/components/waybar/default.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-03-17 16:21:33 -0400
committerRosa <rosaontheweb@proton.me>2026-03-17 16:21:33 -0400
commitce19b701046c064a1eb39098d8537b2c4964a86e (patch)
tree8c42a1392d36132803a2ee4ecb4d2c9150f72296 /modules/user/desktop/components/waybar/default.nix
parent8848e53815fe12ffa3998c0a4bbcf2178d6b00e8 (diff)
start rewrite
Diffstat (limited to 'modules/user/desktop/components/waybar/default.nix')
-rw-r--r--modules/user/desktop/components/waybar/default.nix141
1 files changed, 0 insertions, 141 deletions
diff --git a/modules/user/desktop/components/waybar/default.nix b/modules/user/desktop/components/waybar/default.nix
deleted file mode 100644
index 0fa0f16..0000000
--- a/modules/user/desktop/components/waybar/default.nix
+++ /dev/null
@@ -1,141 +0,0 @@
-{
- config,
- lib,
- options,
- ...
-}:
-{
- options.desktop.components.waybar.enable = lib.mkEnableOption "waybar";
- config.programs.waybar = {
- enable = config.desktop.components.waybar.enable;
- settings = {
- main = {
- modules-left = [
- "sway/workspaces"
- "tray"
- ];
-
- modules-center = [ "clock" ];
- modules-right = [
- "backlight"
- "battery"
- "network"
- "wireplumber"
- ];
-
- backlight = {
- format = "{icon}";
- format-icons = [
- ""
- "󰖨"
- ];
-
- tooltip-format = "{percent}%";
- };
-
- battery = {
- format = "{icon}";
- format-critical = "{icon} ({capacity}%)";
- format-icons = [
- ""
- ""
- ""
- ""
- ];
-
- format-time = "{H}h{m}m";
- format-warning = "{icon} ({capacity}%)";
- states = {
- critical = 15;
- warning = 25;
- };
-
- tooltip-format = "{time} remaining, {health}% battery health";
- tooltip-format-critical = "plug yo shit in NOW!!";
- };
-
- clock = {
- format = "{:%A, %b %d %Y - %H:%M %Z}";
- # i am the time god. fear me.
- timezones = [
- "America/Toronto"
- "America/Vancouver"
- "America/Edmonton"
- "America/Regina"
- "America/Toronto" # duplicated so it appears in the list too
- "America/Halifax"
- "America/St_Johns"
- "America/Sao_Paulo"
- "Etc/UTC"
- "Australia/Perth"
- ];
-
- tooltip-format = "{tz_list}";
- };
-
- network = {
- format-disabled = "󰀝";
- format-disconnected = "󰌙";
- format-ethernet = "󰌗 {ipaddr}/{cidr}";
- format-icons = [
- "󰤟"
- "󰤢"
- "󰤥"
- "󰤨"
- ];
-
- format-wifi = "{icon}";
- interval = 1;
- tooltip-format = "{ifname} tx: {bandwidthUpBytes} rx: {bandwidthDownBytes}";
- tooltip-format-wifi = ''
- <b>Network:</b> {essid}
- <b>{ifname}:</b> {ipaddr}/{cidr}
- <b>tx:</b> {bandwidthUpBytes}
- <b>rx:</b> {bandwidthDownBytes}
- '';
- };
-
- position = "bottom";
- "sway/workspaces" = {
- all-outputs = true;
- disable-scroll = true;
- format = "";
- persistent-workspaces = {
- "1" = [
- "DP-1"
- "eDP-1"
- ];
-
- "2" = [
- "DP-2"
- "eDP-1"
- ];
-
- "3" = [ ];
- "4" = [ ];
- "5" = [ ];
- "6" = [ ];
- "7" = [ ];
- "8" = [ ];
- "9" = [ ];
- };
- };
-
- wireplumber = {
- format = "{icon}";
- format-icons = [
- "󰕿"
- "󰖀"
- "󰕾"
- ];
-
- format-muted = "󰸈";
- on-click = "wpctl set-mute @DEFAULT_SINK@ toggle";
- tooltip-format = "{node_name} - {volume}%";
- };
- };
- };
-
- style = builtins.readFile ./style-${config.desktop.accent}.css;
- };
-}