fixed style css and updated config
This commit is contained in:
+2
-1
@@ -185,7 +185,8 @@
|
|||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"exec": "fluxo-rs bt",
|
"exec": "fluxo-rs bt",
|
||||||
"on-click": "fluxo-rs bt menu",
|
"on-click": "fluxo-rs bt menu",
|
||||||
"on-click-right": "fluxo-rs bt cycle_mode",
|
"on-click-right": "fluxo-rs bt cycle",
|
||||||
|
"on-click-middle": "fluxo-rs bt cycle_mode",
|
||||||
"signal": 9,
|
"signal": 9,
|
||||||
"tooltip": true
|
"tooltip": true
|
||||||
},
|
},
|
||||||
|
|||||||
+103
-120
@@ -1,117 +1,74 @@
|
|||||||
/* ~/.config/waybar/style.css */
|
/* ~/.config/waybar/style.css */
|
||||||
@import "./catppuccin-waybar/themes/mocha.css";
|
@import "./catppuccin-waybar/themes/mocha.css";
|
||||||
|
|
||||||
/* --- Global Reset --- */
|
/* ==========================================================================
|
||||||
|
Global Reset & Bar
|
||||||
|
========================================================================== */
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
font-family: JetBrainsMono Nerd Font, sans-serif;
|
font-family: "JetBrainsMono Nerd Font", sans-serif;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Bar Background (Floating Island Style) --- */
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Top Bar Special Handling --- */
|
/* ==========================================================================
|
||||||
window#waybar.top {
|
Base Islands (Containers)
|
||||||
margin-top: 6px;
|
========================================================================== */
|
||||||
}
|
/* Groups and standalone modules receive the floating island styling */
|
||||||
|
|
||||||
/* --- Bottom Bar Special Handling --- */
|
|
||||||
window#waybar.bottom {
|
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- Shared Island Styling --- */
|
|
||||||
#workspaces,
|
|
||||||
#window,
|
|
||||||
#tray,
|
|
||||||
#hardware,
|
|
||||||
#powertray,
|
|
||||||
#spaces,
|
#spaces,
|
||||||
|
#powertray,
|
||||||
|
#hardware,
|
||||||
|
#center,
|
||||||
#custom-bluetooth-audio,
|
#custom-bluetooth-audio,
|
||||||
#custom-volume,
|
#custom-volume,
|
||||||
#custom-buds,
|
#custom-buds,
|
||||||
#custom-mic,
|
#custom-mic {
|
||||||
#custom-dnd,
|
|
||||||
#custom-gamemode,
|
|
||||||
#custom-power_status {
|
|
||||||
background-color: alpha(@surface0, 0.8);
|
background-color: alpha(@surface0, 0.8);
|
||||||
margin: 4px 6px;
|
margin: 4px 6px;
|
||||||
padding: 4px 16px;
|
padding: 4px 16px;
|
||||||
border: 1px solid alpha(@surface1, 0.5);
|
border: 1px solid alpha(@surface1, 0.5);
|
||||||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
|
||||||
color: @text; /* Unifies all standard text to the soft Catppuccin white */
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Workspaces --- */
|
/* Group-specific sizing overrides */
|
||||||
#workspaces {
|
#hardware,
|
||||||
padding: 2px 8px;
|
#powertray,
|
||||||
}
|
#spaces {
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
padding: 0;
|
|
||||||
margin: 4px;
|
|
||||||
min-width: 12px;
|
|
||||||
min-height: 12px;
|
|
||||||
background-color: @subtext0; /* Subtle dark gray for inactive */
|
|
||||||
color: transparent;
|
|
||||||
border-radius: 12px;
|
|
||||||
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
min-width: 30px;
|
|
||||||
background-color: @mauve; /* Signature Catppuccin accent */
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active:hover { min-width: 30px; background-color: @mauve; }
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
background-color: @lavender;
|
|
||||||
min-width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
background-color: @red;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- Clock (Centered Pill) --- */
|
|
||||||
#center {
|
|
||||||
background: linear-gradient(45deg, @mauve, @lavender); /* Cohesive pastel gradient */
|
|
||||||
color: @surface0;
|
|
||||||
font-weight: 900;
|
|
||||||
margin: 4px 6px;
|
|
||||||
padding: 4px 20px;
|
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --- Hardware Group (Left Bottom) --- */
|
|
||||||
#hardware, #powertray, #spaces {
|
|
||||||
border-radius: 24px;
|
border-radius: 24px;
|
||||||
padding: 4px 10px;
|
padding: 4px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Strip backgrounds and borders from the items inside the group */
|
/* Center Pill (Clock + MPRIS) Override */
|
||||||
#custom-cpu,
|
#center {
|
||||||
|
background: linear-gradient(45deg, @mauve, @lavender);
|
||||||
|
color: @surface0;
|
||||||
|
font-weight: 900;
|
||||||
|
padding: 4px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
Grouped Modules (Inner Items)
|
||||||
|
========================================================================== */
|
||||||
|
/* Strip backgrounds and borders from items that live inside groups */
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#window,
|
#window,
|
||||||
|
#custom-cpu,
|
||||||
#custom-mem,
|
#custom-mem,
|
||||||
#custom-network
|
|
||||||
#custom-sys,
|
#custom-sys,
|
||||||
#custom-gpu,
|
#custom-gpu,
|
||||||
#custom-disk-root,
|
#custom-disk-root,
|
||||||
#custom-mpris,
|
#custom-mpris,
|
||||||
#clock,
|
#custom-network,
|
||||||
#custom-dnd,
|
|
||||||
#custom-backlight,
|
#custom-backlight,
|
||||||
|
#clock,
|
||||||
#tray,
|
#tray,
|
||||||
#custom-gamemode,
|
#custom-gamemode,
|
||||||
#custom-dnd,
|
#custom-dnd,
|
||||||
@@ -123,7 +80,7 @@ window#waybar.bottom {
|
|||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Subtle vertical separator line between them */
|
/* Subtle vertical separator line between inner items */
|
||||||
#custom-cpu,
|
#custom-cpu,
|
||||||
#custom-mem,
|
#custom-mem,
|
||||||
#custom-sys,
|
#custom-sys,
|
||||||
@@ -138,72 +95,110 @@ window#waybar.bottom {
|
|||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-network {
|
/* ==========================================================================
|
||||||
padding-left: 8px;
|
Specific Module Overrides & Alerts
|
||||||
padding-right: 8px;
|
========================================================================== */
|
||||||
color: @mauve;
|
|
||||||
|
/* --- Workspaces --- */
|
||||||
|
#workspaces {
|
||||||
|
padding: 0px 8px; /* Override the inner item padding */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hardware Semantic Alerts */
|
#workspaces button {
|
||||||
|
padding: 0;
|
||||||
|
margin: 4px;
|
||||||
|
min-width: 12px;
|
||||||
|
min-height: 12px;
|
||||||
|
background-color: @subtext0;
|
||||||
|
color: transparent;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active,
|
||||||
|
#workspaces button.active:hover {
|
||||||
|
min-width: 30px;
|
||||||
|
background-color: @mauve;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background-color: @lavender;
|
||||||
|
min-width: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Hardware Semantic Alerts --- */
|
||||||
.normal { color: @mauve; }
|
.normal { color: @mauve; }
|
||||||
.high { color: @peach; }
|
.high { color: @peach; }
|
||||||
.max { color: @red; }
|
.max { color: @red; }
|
||||||
|
|
||||||
/* Stale Data Warning (Module in backoff/failure state) */
|
#custom-network { color: @mauve; }
|
||||||
/* .warning {
|
#custom-gamemode.active { color: @mauve; }
|
||||||
color: @peach;
|
|
||||||
opacity: 0.6;
|
|
||||||
} */
|
|
||||||
|
|
||||||
/* --- Center Bottom Utilities --- */
|
/* --- Media / Controls --- */
|
||||||
#custom-gamemode.active {
|
#custom-volume.unmuted,
|
||||||
color: @mauve; /* Matches the workspace accent */
|
#custom-mic.unmuted {
|
||||||
/* padding-left: 9px; */
|
color: @mauve;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Right Bottom Controls Semantic Alerts --- */
|
|
||||||
#custom-volume.muted,
|
#custom-volume.muted,
|
||||||
#custom-mic.muted {
|
#custom-mic.muted {
|
||||||
color: @overlay1; /* Dims when muted */
|
color: @overlay1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* --- Bluetooth Audio --- */
|
||||||
#custom-bluetooth-audio.disabled {
|
#custom-bluetooth-audio.disabled,
|
||||||
color: @overlay1; /* Green for active ANC */
|
#custom-bluetooth-audio.disconnected {
|
||||||
|
color: @overlay1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-bluetooth-audio.connected {
|
#custom-bluetooth-audio.connected {
|
||||||
color: @blue; /* Green for active ANC */
|
color: @blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-bluetooth-audio.anc-off {
|
/* ANC States */
|
||||||
color: @blue; /* Green for active ANC */
|
#custom-bluetooth-audio.anc-active,
|
||||||
|
#custom-bluetooth-audio.connected.anc-active,
|
||||||
|
#custom-bluetooth-audio.connected\ anc-active {
|
||||||
|
color: @mauve;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-bluetooth-audio.anc-active {
|
#custom-bluetooth-audio.anc-aware,
|
||||||
color: @blue; /* Green for active ANC */
|
#custom-bluetooth-audio.connected.anc-aware,
|
||||||
|
#custom-bluetooth-audio.connected\ anc-aware {
|
||||||
|
color: @green;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-bluetooth-audio.anc-aware {
|
#custom-bluetooth-audio.anc-off,
|
||||||
color: @blue; /* Yellow for transparency mode */
|
#custom-bluetooth-audio.connected.anc-off,
|
||||||
|
#custom-bluetooth-audio.connected\ anc-off {
|
||||||
|
color: @blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-bluetooth-audio.disconnected {
|
/* --- Power Status --- */
|
||||||
color: @text; /* Gray when off */
|
#custom-power_status.charging { color: @green; }
|
||||||
|
#custom-power_status.warning { color: @peach; }
|
||||||
|
#custom-power_status.critical {
|
||||||
|
color: @red;
|
||||||
|
animation: blink 1s infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Hover States --- */
|
|
||||||
|
/* Interactive Hover States for Standalone Modules */
|
||||||
#custom-volume:hover,
|
#custom-volume:hover,
|
||||||
#custom-buds:hover,
|
#custom-buds:hover,
|
||||||
#custom-mic:hover,
|
#custom-mic:hover,
|
||||||
#custom-bluetooth-audio:hover,
|
#custom-bluetooth-audio:hover,
|
||||||
#custom-power_status:hover {
|
#custom-power_status:hover {
|
||||||
background-color: @surface1;
|
background-color: @surface1;
|
||||||
color: @mauve; /* Subtle accent color on hover instead of jarring borders */
|
color: @mauve;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* --- Tooltip --- */
|
/* ==========================================================================
|
||||||
|
Tooltips & Animations
|
||||||
|
========================================================================== */
|
||||||
tooltip {
|
tooltip {
|
||||||
background-color: alpha(@base, 0.9);
|
background-color: alpha(@base, 0.9);
|
||||||
border: 1px solid @surface1;
|
border: 1px solid @surface1;
|
||||||
@@ -215,18 +210,6 @@ tooltip label {
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- Power Status --- */
|
|
||||||
#custom-power_status.charging {
|
|
||||||
color: @green;
|
|
||||||
}
|
|
||||||
#custom-power_status.warning {
|
|
||||||
color: @peach;
|
|
||||||
}
|
|
||||||
#custom-power_status.critical {
|
|
||||||
color: @red;
|
|
||||||
animation: blink 1s infinite alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
to {
|
to {
|
||||||
color: @base;
|
color: @base;
|
||||||
|
|||||||
Reference in New Issue
Block a user