feat: new waybar
This commit is contained in:
267
waybar/style/style_top.css
Normal file
267
waybar/style/style_top.css
Normal file
@@ -0,0 +1,267 @@
|
||||
/* --------------------------------------------------------------------------
|
||||
IMPORTS & GLOBAL STYLES
|
||||
-------------------------------------------------------------------------- */
|
||||
@import "colors.css";
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
BASE CONTAINER
|
||||
-------------------------------------------------------------------------- */
|
||||
window#waybar {
|
||||
/* Layout & Box Model */
|
||||
/* border: 1px solid @border-color; */
|
||||
/* border-bottom: none; */
|
||||
/* border-radius: 10px 10px 0 0; */
|
||||
|
||||
/* Typography */
|
||||
font-family: "Iosevka Nerd Font Propo";
|
||||
font-size: 15px;
|
||||
|
||||
/* Colors */
|
||||
background-color: transparent;
|
||||
/* color: @text-primary; */
|
||||
|
||||
/* Effects & Transitions */
|
||||
/* transition-property: background-color; */
|
||||
/* transition-duration: 0.5s; */
|
||||
}
|
||||
|
||||
/* Window States */
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
MODULE COMMON STYLES
|
||||
-------------------------------------------------------------------------- */
|
||||
/* Common styling applied to all modules */
|
||||
#mpd,
|
||||
#custom-pomodoro,
|
||||
#clock,
|
||||
#battery,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#pulseaudio-slider,
|
||||
#custom-separator,
|
||||
#scratchpad,
|
||||
#tray {
|
||||
padding: 0 10px;
|
||||
color: @text-primary;
|
||||
transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
WORKSPACES
|
||||
-------------------------------------------------------------------------- */
|
||||
#workspaces {
|
||||
font-size: 18px;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 6px;
|
||||
min-width: 20px;
|
||||
background-color: transparent;
|
||||
color: alpha(@accent, 0.5);
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Workspace States */
|
||||
#workspaces button.empty {
|
||||
color: @text-secondary;
|
||||
}
|
||||
|
||||
#workspaces button.active.hosting-monitor {
|
||||
color: @accent;
|
||||
text-shadow: 0px 0px 8px @accent;
|
||||
animation: hover 0.8s 1;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: @attention;
|
||||
font-weight: 700;
|
||||
text-shadow: 0px 0px 8px @attention;
|
||||
transition: color 0.5s, box-shadow 0.5s, background 0.5s;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
color: @foreground;
|
||||
background-color: transparent;
|
||||
text-shadow: 0px 0px 2px rgba(233, 99, 117, 1);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
SIDE PANEL GROUPS
|
||||
-------------------------------------------------------------------------- */
|
||||
.modules-left, .modules-center, .modules-right {
|
||||
/* Layout & Box Model */
|
||||
border: 1px solid @border-color;
|
||||
border-radius: 12px;
|
||||
|
||||
/* Colors */
|
||||
background-color: @bg-panel;
|
||||
/* color: @text-primary; */
|
||||
|
||||
/* Effects & Transitions */
|
||||
/* transition-property: background-color; */
|
||||
/* transition-duration: 0.5s; */
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
}
|
||||
|
||||
.modules-right {
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
AUDIO CONTROL MODULES
|
||||
-------------------------------------------------------------------------- */
|
||||
#pulseaudio {
|
||||
padding-right: 0;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
#pulseaudio-slider slider {
|
||||
min-height: 0px;
|
||||
min-width: 0px;
|
||||
opacity: 0;
|
||||
background-image: none;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#pulseaudio-slider trough {
|
||||
min-height: 10px;
|
||||
min-width: 25px;
|
||||
border-radius: 5px;
|
||||
background: alpha(@text-primary, 0.2);
|
||||
}
|
||||
|
||||
#pulseaudio-slider highlight {
|
||||
min-width: 10px;
|
||||
border-radius: 5px;
|
||||
background: @text-primary;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
CUSTOM MODULES
|
||||
-------------------------------------------------------------------------- */
|
||||
#custom-pomodoro {
|
||||
color: @text-secondary;
|
||||
border-radius: 0 0 10px 10px;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
STATE-BASED STYLES
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
/* POMODORO STATES */
|
||||
#custom-pomodoro.work {
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
#custom-pomodoro.break {
|
||||
color: @success;
|
||||
text-shadow: 0px 0px 4px rgba(0, 255, 0, 1);
|
||||
}
|
||||
|
||||
#custom-pomodoro.pause {
|
||||
color: @attention;
|
||||
text-shadow: 0px 0px 4px @attention;
|
||||
}
|
||||
|
||||
/* MPD STATES */
|
||||
#mpd {
|
||||
font-weight: 700;
|
||||
transition: color 2s, background 2s;
|
||||
}
|
||||
|
||||
#mpd.playing {
|
||||
color: @accent;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
color: transparent;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
font-weight: normal;
|
||||
color: @text-secondary;
|
||||
}
|
||||
|
||||
/* BATTERY STATES */
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
color: @success;
|
||||
text-shadow: 0px 0px 8px @success;
|
||||
transition: color 0.3s, box-shadow 0.3s, background 0.3s;
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
color: @warning;
|
||||
text-shadow: 0px 0px 8px @warning;
|
||||
transition: color 0.3s, box-shadow 0.3s, background 0.3s;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
color: @danger;
|
||||
text-shadow: 0px 0px 8px @danger;
|
||||
transition: color 0.3s, box-shadow 0.3s, background 0.3s;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
HOVER EFFECTS
|
||||
-------------------------------------------------------------------------- */
|
||||
#mpd.playing:hover,
|
||||
#mpd.paused:hover,
|
||||
#clock:hover,
|
||||
#battery:hover,
|
||||
#network:hover,
|
||||
#pulseaudio:hover,
|
||||
#custom-pomodoro:hover,
|
||||
#scratchpad:hover,
|
||||
#tray:hover {
|
||||
color: @accent;
|
||||
text-shadow: 0px 0px 8px @accent;
|
||||
transition: color 0.3s, box-shadow 0.3s, background 0.3s;
|
||||
}
|
||||
|
||||
#pulseaudio-slider:hover highlight {
|
||||
background: @accent;
|
||||
box-shadow: 0px 0px 8px @accent;
|
||||
transition: color 0.3s, box-shadow 0.3s, background 0.3s;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
LAYOUT UTILITIES
|
||||
-------------------------------------------------------------------------- */
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 0px;
|
||||
}
|
||||
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
ANIMATIONS
|
||||
-------------------------------------------------------------------------- */
|
||||
@keyframes hover {
|
||||
0% { color: @text-primary; }
|
||||
100% { color: @accent; }
|
||||
}
|
||||
Reference in New Issue
Block a user