summaryrefslogtreecommitdiff
path: root/modules/apps/waybar/style.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
commit68d03fe362b7e0df11662d8d6a1e01eac0bfae77 (patch)
treea76abd05f662f73b4083ddb0d8bf0d72c29e5a74 /modules/apps/waybar/style.nix
parentupdate commits (diff)
downloaddotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.gz
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.bz2
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.zip
refactor: remove modules folder, fully split home and system modules
Diffstat (limited to 'modules/apps/waybar/style.nix')
-rw-r--r--modules/apps/waybar/style.nix107
1 files changed, 0 insertions, 107 deletions
diff --git a/modules/apps/waybar/style.nix b/modules/apps/waybar/style.nix
deleted file mode 100644
index 21a8de5..0000000
--- a/modules/apps/waybar/style.nix
+++ /dev/null
@@ -1,107 +0,0 @@
-{theme}: let
- text = "#${theme.colors.text}";
- base = "#${theme.colors.base}";
- surface = "#${theme.colors.surface}";
- primary = "#${theme.colors.primary}";
- success = "#${theme.colors.success}";
- warning = "#${theme.colors.warning}";
- error = "#${theme.colors.error}";
- fontSize = "${toString theme.font.size}px";
- outerGap = "${toString theme.outerGap}px";
- innerGap = "${toString theme.innerGap}px";
- outerRadius = "${toString theme.outerRadius}px";
- innerRadius = "${toString theme.innerRadius}px";
- borderWidth = "${toString theme.borderWidth}px";
-in ''
- /** Base */
-
- * {
- all: unset;
- }
-
- window#waybar {
- font-family: "${theme.font.regular}", "${theme.font.icon}", "${theme.font.monospace}";
- font-size: ${fontSize};
- color: ${text};
- background-color: ${base};
- }
-
- /** Workspaces */
-
- #workspaces {
- margin-left: ${outerGap};
- }
-
- #workspaces button {
- border-radius: ${innerRadius};
- margin: 4px 2px;
- padding: 0px 7px;
- background: ${surface};
- color: ${text};
- }
-
- #workspaces button.focused,
- #workspaces button.active {
- background: ${primary};
- color: ${base};
- }
-
- #workspaces button.urgent {
- background: ${error};
- }
-
- /** Tray */
-
- #tray {
- border: none;
- margin-right: ${outerGap};
- }
-
- #tray > .passive {
- -gtk-icon-effect: dim;
- }
-
- #tray > .needs-attention {
- -gtk-icon-effect: highlight;
- }
-
- /** Right modules */
-
- #battery,
- #wireplumber,
- #network {
- padding: 0 ${outerGap};
- }
-
- /** Battery */
-
- #battery.charging {
- color: ${success};
- }
-
- #battery.warning:not(.charging) {
- color: ${warning};
- }
-
- #battery.critical:not(.charging) {
- color: ${error};
- }
-
- /** Wireplumber */
-
- #wireplumber.muted {
- color: ${error};
- }
-
- /** Network */
-
- #network.wifi,
- #network.ethernet {
- color: ${success};
- }
-
- #network.disconnected {
- color: ${error};
- }
-
-''