aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-02 01:57:58 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-08-02 01:57:58 +0530
commit09ade49600f31c6b854410d2c55b043d6efa3275 (patch)
tree3de6cfedb03c2c0de3b388bb0ddfb08a79275c77 /modules/desktop/waybar
parente2272d6299e5c08e4b2cadc42eba673354e4e814 (diff)
downloadhome-manager-config-09ade49600f31c6b854410d2c55b043d6efa3275.tar.gz
home-manager-config-09ade49600f31c6b854410d2c55b043d6efa3275.zip
feat: fixed chromium extension ids, duplicate sent emails, etc
- Every home-manager switch had a change to change the ids of the extensions, now we get the same extension id for any build of the given extension - Sending emails from neomutt send duplicate emails, it is now fixed - Auto re-registering in usque-warp connect, as it gets deactivated in about 24 hours - Using a style.mustache.css for the waybar css configs for syntax highlighting
Diffstat (limited to 'modules/desktop/waybar')
-rw-r--r--modules/desktop/waybar/default.nix7
-rw-r--r--modules/desktop/waybar/style.mustache.css85
-rw-r--r--modules/desktop/waybar/style.nix66
3 files changed, 91 insertions, 67 deletions
diff --git a/modules/desktop/waybar/default.nix b/modules/desktop/waybar/default.nix
index 67d0f63..9872086 100644
--- a/modules/desktop/waybar/default.nix
+++ b/modules/desktop/waybar/default.nix
@@ -15,7 +15,12 @@
(import ./module { inherit config lib pkgs; })
];
- style = import ./style.nix { inherit config; };
+ style = builtins.readFile (
+ config.scheme {
+ template = builtins.readFile ./style.mustache.css;
+ extension = ".css";
+ }
+ );
};
};
}
diff --git a/modules/desktop/waybar/style.mustache.css b/modules/desktop/waybar/style.mustache.css
new file mode 100644
index 0000000..ddeaa88
--- /dev/null
+++ b/modules/desktop/waybar/style.mustache.css
@@ -0,0 +1,85 @@
+/*
+ * Waybar Style — Base16 "OneDark Dark" (olimorris)
+ * Mustache template: render with a base16 color map to produce a .css file
+ *
+ * base00 - default background
+ * base01 - lighter background (status bar, line numbers)
+ * base02 - selection background
+ * base03 - comments, invisibles
+ * base04 - dark foreground (status bar)
+ * base05 - default foreground
+ * base06 - light foreground
+ * base07 - lightest foreground
+ * base08 - red (errors, urgent)
+ * base09 - orange (numbers)
+ * base0A - yellow (search matches)
+ * base0B - green (strings)
+ * base0C - cyan (support, regex)
+ * base0D - blue (functions, active/selected)
+ * base0E - purple/magenta (keywords)
+ * base0F - brown (deprecated)
+ */
+
+* {
+ border: none;
+ border-radius: 0;
+ font-family: "Fira Code Nerd Font";
+ font-size: 18px;
+ min-height: 0;
+ margin: 0;
+ padding: 0;
+}
+
+window#waybar {
+ background: transparent;
+}
+
+#workspaces, #window, #pulseaudio, #battery, #network,
+#clock.time, #custom-usque, #memory, #cpu, #clock.date {
+ background: #{{base00}};
+ margin: 0 5px;
+}
+
+#workspaces {
+ border: none;
+ margin-right: 0;
+}
+
+#window, #pulseaudio, #battery, #network,
+#clock.time, #custom-usque, #memory, #cpu, #clock.date {
+ border: 1px solid #{{base07}};
+ color: #{{base07}};
+ padding: 0 10px;
+}
+
+#clock.date {
+ margin-right: 10px;
+}
+
+#workspaces button {
+ padding: 0px 5px;
+ color: #{{base07}};
+ border: 1px solid #{{base03}};
+ border-radius: 0;
+ min-width: 0px;
+ min-height: 0px;
+ margin: 0 5px;
+ font-size: 24px;
+}
+
+#workspaces button:hover {
+ background: #{{base00}};
+ border-color: #{{base05}};
+}
+
+#workspaces button.active {
+ border-color: #{{base07}};
+}
+
+#workspaces button.empty {
+ color: #{{base03}};
+}
+
+#workspaces button.urgent {
+ color: #{{base08}};
+}
diff --git a/modules/desktop/waybar/style.nix b/modules/desktop/waybar/style.nix
deleted file mode 100644
index 4ca496f..0000000
--- a/modules/desktop/waybar/style.nix
+++ /dev/null
@@ -1,66 +0,0 @@
-{ config }:
-with config.scheme.withHashtag;
-''
- * {
- border: none;
- border-radius: 0;
- font-family: "${config.fonts.normal}";
- font-size: ${toString config.fonts.size}px;
- min-height: 0;
- margin: 0;
- padding: 0;
- }
-
- window#waybar {
- background: transparent;
- }
-
- #workspaces, #window, #pulseaudio, #battery, #network,
- #clock.time, #custom-usque, #memory, #cpu, #clock.date {
- background: ${base00};
- margin: 0 5px;
- }
-
- #workspaces {
- border: none;
- margin-right: 0;
- }
-
- #window, #pulseaudio, #battery, #network,
- #clock.time, #custom-usque, #memory, #cpu, #clock.date {
- border: 1px solid ${base07};
- color: ${base07};
- padding: 0 10px;
- }
-
- #clock.date {
- margin-right: 10px;
- }
-
- #workspaces button {
- padding: 0px 5px;
- color: ${base07};
- border: 1px solid ${base03};
- border-radius: 0;
- min-width: 0px;
- min-height: 0px;
- margin: 0 5px;
- font-size: 24px;
- }
-
- #workspaces button:hover {
- background: ${base01};
- }
-
- #workspaces button.active {
- border-color: ${base07};
- }
-
- #workspaces button.empty {
- color: ${base03};
- }
-
- #workspaces button.urgent {
- color: ${base08};
- }
-''