further configure hyprland
This commit is contained in:
@ -1,91 +1,134 @@
|
||||
/* --- GENERAL BAR STYLE (unchanged) --- */
|
||||
/* ==== Waybar GTK CSS: Cosmic glass (v2 lighter) ================= */
|
||||
|
||||
/* Palette */
|
||||
@define-color glass rgba(12, 14, 20, 0.34); /* was 0.62 → much more transparent */
|
||||
@define-color glass_strong rgba(12, 14, 20, 0.46); /* chips / active */
|
||||
@define-color fg #DDE1EA;
|
||||
@define-color fg_dim #B8BECC;
|
||||
@define-color accent1 #7F5AF0;
|
||||
@define-color accent2 #00D1FF;
|
||||
|
||||
/* Whole bar: more vertical padding, no border, stronger shadow */
|
||||
window#waybar {
|
||||
background: @glass;
|
||||
color: @fg;
|
||||
border-radius: 12px;
|
||||
margin: 6px 8px;
|
||||
border: none; /* ← removed border */
|
||||
box-shadow: 0 10px 34px rgba(0,0,0,0.34);
|
||||
-gtk-outline-radius: 12px;
|
||||
}
|
||||
|
||||
/* Global typography: Roboto Mono Nerd Font */
|
||||
* {
|
||||
border: none;
|
||||
/* padding: 0 6px; */
|
||||
padding: 0 6px;
|
||||
margin-top: 2px;
|
||||
font-family: "JetBrains Mono", monospace;
|
||||
padding: 2px 6px;
|
||||
margin-top: 0;
|
||||
font-family: "RobotoMono Nerd Font", "Roboto Mono Nerd Font", "RobotoMono NF", monospace;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
window#waybar { background: transparent; color: #ffffff; }
|
||||
|
||||
/* --- PAGE BUTTONS --- */
|
||||
/* IDs are #custom-page1, #custom-page2, #custom-page3 */
|
||||
#custom-page1, #custom-page2, #custom-page3, #custom-page4, #custom-page5, #custom-page6, #custom-page7, #custom-page8, #custom-page9, #custom-page10 {
|
||||
/* Keep groups transparent */
|
||||
#modules-left, #modules-center, #modules-right { background: transparent; }
|
||||
|
||||
/* Common modules stay transparent; compact rounded hit area */
|
||||
#tray, #window, #clock, #cpu, #memory, #disk, #network, #bluetooth, #pulseaudio {
|
||||
background: transparent;
|
||||
min-width: 18px; /* keeps them evenly spaced */
|
||||
padding-left: 2px;
|
||||
color: #fff;
|
||||
/* text-align: center; */
|
||||
}
|
||||
#custom-page1.active,
|
||||
#custom-page2.active,
|
||||
#custom-page3.active,
|
||||
#custom-page4.active,
|
||||
#custom-page5.active,
|
||||
#custom-page6.active,
|
||||
#custom-page7.active,
|
||||
#custom-page8.active,
|
||||
#custom-page9.active,
|
||||
#custom-page10.active
|
||||
{
|
||||
background: rgba(255,255,255,0.15);
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
color: @fg;
|
||||
}
|
||||
|
||||
#custom-page1.occupied:not(.active),
|
||||
#custom-page2.occupied:not(.active),
|
||||
#custom-page3.occupied:not(.active),
|
||||
#custom-page4.occupied:not(.active),
|
||||
#custom-page5.occupied:not(.active),
|
||||
#custom-page6.occupied:not(.active),
|
||||
#custom-page7.occupied:not(.active),
|
||||
#custom-page8.occupied:not(.active),
|
||||
#custom-page9.occupied:not(.active),
|
||||
#custom-page10.occupied:not(.active) {
|
||||
color: #42A5F5; /* blue – pick any shade you like */
|
||||
/* Subtle separators */
|
||||
#custom-separator {
|
||||
color: rgba(200,200,200,0.20);
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
#custom-page1.active.occupied,
|
||||
#custom-page2.active.occupied,
|
||||
#custom-page3.active.occupied,
|
||||
#custom-page4.active.occupied,
|
||||
#custom-page5.active.occupied,
|
||||
#custom-page6.active.occupied,
|
||||
#custom-page7.active.occupied,
|
||||
#custom-page8.active.occupied,
|
||||
#custom-page9.active.occupied,
|
||||
#custom-page10.active.occupied {
|
||||
background: rgba(255,255,255,0.15); /* same as .active */
|
||||
/* optional: keep the icon white, or turn it blue: */
|
||||
/* color: #42A5F5; */
|
||||
/* --- PAGE BUTTONS --------------------------------------------------------- */
|
||||
#custom-page1, #custom-page2, #custom-page3, #custom-page4, #custom-page5,
|
||||
#custom-page6, #custom-page7, #custom-page8, #custom-page9, #custom-page10 {
|
||||
background: transparent;
|
||||
min-width: 18px;
|
||||
padding-left: 2px;
|
||||
color: @fg_dim;
|
||||
}
|
||||
|
||||
/* --- OTHER MODULES (carry-over from your previous setup) --- */
|
||||
#window, #tray, #clock { background: transparent;}
|
||||
|
||||
#tray {
|
||||
margin-right: -5;
|
||||
/* Active page: glass chip, no border */
|
||||
#custom-page1.active, #custom-page2.active, #custom-page3.active, #custom-page4.active,
|
||||
#custom-page5.active, #custom-page6.active, #custom-page7.active, #custom-page8.active,
|
||||
#custom-page9.active, #custom-page10.active {
|
||||
background: @glass_strong;
|
||||
border-radius: 8px;
|
||||
color: @fg;
|
||||
box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.015);
|
||||
}
|
||||
|
||||
#tray * {
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
/* Occupied (not active): cyan glyph */
|
||||
#custom-page1.occupied:not(.active), #custom-page2.occupied:not(.active),
|
||||
#custom-page3.occupied:not(.active), #custom-page4.occupied:not(.active),
|
||||
#custom-page5.occupied:not(.active), #custom-page6.occupied:not(.active),
|
||||
#custom-page7.occupied:not(.active), #custom-page8.occupied:not(.active),
|
||||
#custom-page9.occupied:not(.active), #custom-page10.occupied:not(.active) {
|
||||
color: @accent2;
|
||||
}
|
||||
|
||||
/* ─── kill the gap your * rule adds ─────────────────────────────── */
|
||||
#tray menu { /* the whole right-click window */
|
||||
padding: 5px 0; /* 0 instead of the 6 px from * */
|
||||
margin: 0; /* 0 instead of the 2 px top margin */
|
||||
border: 1px solid #555;
|
||||
/* Hover feedback (very light) */
|
||||
#custom-page1:hover, #custom-page2:hover, #custom-page3:hover, #custom-page4:hover,
|
||||
#custom-page5:hover, #custom-page6:hover, #custom-page7:hover, #custom-page8:hover,
|
||||
#custom-page9:hover, #custom-page10:hover {
|
||||
background: rgba(255,255,255,0.03);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ─── (optional) give the rows some room & hover style ─────────── */
|
||||
#tray menu menuitem {
|
||||
padding: 4px 12px; /* tweak to taste */
|
||||
/* Tray tweaks */
|
||||
#tray { margin-right: 0px; }
|
||||
#tray * { padding-left: 0px; padding-right: 0px; }
|
||||
|
||||
/* Tray menu glass look (also lighter, no border) */
|
||||
#tray menu {
|
||||
padding: 6px 0;
|
||||
margin: 0;
|
||||
background: @glass_strong;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
box-shadow: 0 10px 34px rgba(0,0,0,0.38);
|
||||
}
|
||||
#tray menu menuitem { padding: 6px 12px; }
|
||||
#tray menu menuitem:hover { background: alpha(@accent1, 0.16); }
|
||||
|
||||
|
||||
|
||||
#custom-hyprland-workspaces {
|
||||
padding: 0;
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
#tray menu menuitem:hover {
|
||||
background: rgba(66,165,245,.25);
|
||||
.workspace {
|
||||
/* display: inline-block; */
|
||||
padding: 4px 8px;
|
||||
margin: 0 2px;
|
||||
border-radius: 4px;
|
||||
color: #e6e6e6; /* off-white for empty workspaces */
|
||||
background-color: transparent;
|
||||
border: 1px solid #444;
|
||||
/* cursor: pointer; */
|
||||
transition: all 0.2s ease;
|
||||
min-width: 20px;
|
||||
/* text-align: center; */
|
||||
}
|
||||
|
||||
.workspace.occupied {
|
||||
color: #a855f7; /* purple for occupied workspaces */
|
||||
border-color: #a855f7;
|
||||
}
|
||||
|
||||
.workspace.focused {
|
||||
background-color: rgba(168, 85, 247, 0.2); /* light purple background for focused */
|
||||
color: #a855f7;
|
||||
border-color: #a855f7;
|
||||
}
|
||||
|
||||
.workspace:hover {
|
||||
background-color: rgba(168, 85, 247, 0.1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user