summaryrefslogtreecommitdiff
path: root/dot_config/waybar/style.css
diff options
context:
space:
mode:
authorSakamoto <me@sakamoto.network>2026-05-12 18:31:15 -0500
committerSakamoto <me@sakamoto.network>2026-05-12 18:31:15 -0500
commita623fed63460d6d810605ce1ce858a58a5b222f7 (patch)
tree2129e72acc82deaf624630ec271942000eae0aeb /dot_config/waybar/style.css
downloaddotfiles-a623fed63460d6d810605ce1ce858a58a5b222f7.tar.xz
dotfiles-a623fed63460d6d810605ce1ce858a58a5b222f7.zip
init
Diffstat (limited to 'dot_config/waybar/style.css')
-rw-r--r--dot_config/waybar/style.css308
1 files changed, 308 insertions, 0 deletions
diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css
new file mode 100644
index 0000000..98a6aec
--- /dev/null
+++ b/dot_config/waybar/style.css
@@ -0,0 +1,308 @@
+
+@keyframes blink-warning {
+ 70% {
+ color: @light;
+ }
+
+ to {
+ color: @light;
+ background-color: @warning;
+ }
+}
+
+@keyframes blink-critical {
+ 70% {
+ color: @light;
+ }
+
+ to {
+ color: @light;
+ background-color: @critical;
+ }
+}
+
+
+/* -----------------------------------------------------------------------------
+ * Styles
+ * -------------------------------------------------------------------------- */
+
+/* COLORS */
+
+/* Nord */
+@define-color bg #2E3440;
+/*@define-color bg #353C4A;*/
+@define-color light #D8DEE9;
+/*@define-color dark @nord_dark_font;*/
+@define-color warning #ebcb8b;
+@define-color critical #BF616A;
+@define-color mode #434C5E;
+/*@define-color workspaces @bg;*/
+/*@define-color workspaces @nord_dark_font;*/
+/*@define-color workspacesfocused #434C5E;*/
+@define-color workspacesfocused #4C566A;
+@define-color tray @workspacesfocused;
+@define-color sound #EBCB8B;
+@define-color network #5D7096;
+@define-color memory #546484;
+@define-color cpu #596A8D;
+@define-color temp #4D5C78;
+@define-color layout #5e81ac;
+@define-color battery #88c0d0;
+@define-color date #434C5E;
+@define-color time #434C5E;
+@define-color backlight #434C5E;
+@define-color nord_bg #434C5E;
+@define-color nord_bg_blue #546484;
+@define-color nord_light #D8DEE9;
+@define-color nord_light_font #D8DEE9;
+@define-color nord_dark_font #434C5E;
+
+/* Reset all styles */
+* {
+ border: none;
+ border-radius: 3px;
+ min-height: 0;
+ margin: 0.2em 0.3em 0.2em 0.3em;
+}
+
+/* The whole bar */
+#waybar {
+ background: @bg;
+ color: @light;
+ font-family: "Commit Mono", "Symbols Nerd Font";
+ font-size: 13px;
+ font-weight: bold;
+}
+
+/* Each module */
+#battery,
+#clock,
+#cpu,
+#custom-layout,
+#memory,
+#mode,
+#network,
+#custom-vpn,
+#pulseaudio,
+#temperature,
+#custom-alsa,
+#custom-pacman,
+#custom-weather,
+#custom-gpu,
+#tray,
+#backlight,
+#language,
+#custom-crypto,
+#custom-cpugovernor {
+ padding-left: 0.6em;
+ padding-right: 0.6em;
+}
+
+/* Each module that should blink */
+#mode,
+#memory,
+#temperature,
+#battery {
+ animation-timing-function: linear;
+ animation-iteration-count: infinite;
+ animation-direction: alternate;
+}
+
+/* Each critical module */
+#memory.critical,
+#cpu.critical,
+#temperature.critical,
+#battery.critical {
+ color: @critical;
+}
+
+/* Each critical that should blink */
+#mode,
+#memory.critical,
+#temperature.critical,
+#battery.critical.discharging {
+ animation-name: blink-critical;
+ animation-duration: 2s;
+}
+
+/* Each warning */
+#network.disconnected,
+#memory.warning,
+#cpu.warning,
+#temperature.warning,
+#battery.warning {
+ background: @warning;
+ color: @nord_dark_font;
+}
+
+/* Each warning that should blink */
+#battery.warning.discharging {
+ animation-name: blink-warning;
+ animation-duration: 3s;
+}
+
+/* And now modules themselves in their respective order */
+
+#mode { /* Shown current Sway mode (resize etc.) */
+ color: @light;
+ background: @mode;
+}
+
+/* Workspaces stuff */
+
+#workspaces {
+ color: #D8DEE9;
+ margin-right: 10px;
+}
+
+#workspaces button {
+ font-weight: bold; /* Somewhy the bar-wide setting is ignored*/
+ padding: 0;
+ /*color: #999;*/
+ opacity: 0.3;
+ background: none;
+ font-size: 1em;
+}
+
+#workspaces button.focused {
+ background: @workspacesfocused;
+ color: #D8DEE9;
+ opacity: 1;
+ padding: 0 0.4em;
+}
+
+#workspaces button.urgent {
+ border-color: #c9545d;
+ color: #c9545d;
+ opacity: 1;
+}
+
+#window {
+ margin-right: 40px;
+ margin-left: 40px;
+ font-weight: normal;
+}
+#bluetooth {
+ background: @nord_bg_blue;
+ font-size: 1.2em;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-gpu, #custom-vpn {
+ background: @nord_bg;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-weather {
+ background: @mode;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-pomodoro {
+ background: @mode;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-pacman {
+ background: @nord_light;
+ color: @nord_dark_font;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-scratchpad-indicator {
+ background: @nord_light;
+ color: @nord_dark_font;
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#idle_inhibitor {
+ background: @mode;
+ /*font-size: 1.6em;*/
+ font-weight: bold;
+ padding: 0 0.6em;
+}
+#custom-alsa {
+ background: @sound;
+}
+
+#network {
+ background: @nord_bg_blue;
+}
+
+#memory {
+ background: @memory;
+}
+
+#cpu {
+ background: @nord_bg;
+ color: #D8DEE9;
+}
+#cpu.critical {
+ color: @nord_dark_font;
+}
+#language {
+ background: @nord_bg_blue;
+ color: #D8DEE9;
+ padding: 0 0.4em;
+}
+#custom-cpugovernor {
+ background-color: @nord_light;
+ color: @nord_dark_font;
+}
+#custom-cpugovernor.perf {
+
+}
+#temperature {
+ background-color: @nord_bg;
+ color: #D8DEE9;
+}
+#temperature.critical {
+ background: @critical;
+}
+#custom-layout {
+ background: @layout;
+}
+
+#battery {
+ background: @battery;
+}
+
+#backlight {
+ background: @backlight;
+}
+
+#clock {
+ background: @nord_bg_blue;
+ color: #D8DEE9;
+}
+#clock.date {
+ background: @date;
+}
+
+#clock.time {
+ background: @mode;
+}
+
+#pulseaudio { /* Unsused but kept for those who needs it */
+ background: @nord_bg_blue;
+ color: #D8DEE9;
+}
+
+#pulseaudio.muted {
+ background: #BF616A;
+ color: #BF616A;
+ /* No styles */
+}
+#pulseaudio.source-muted {
+ background: #D08770;
+ color: #D8DEE9;
+ /* No styles */
+}
+#tray {
+ background: #434C5E;
+}
+
+#custom-crypto {
+ background: @mode;
+ font-weight: bold;
+}