From 848d08b9bcac416d5384a6e94915d18bedb9f6e9 Mon Sep 17 00:00:00 2001 From: Tobi Date: Mon, 15 Nov 2021 21:21:28 +0100 Subject: [PATCH] updated config files --- waybar/style.css | 214 ++++++++++++++++++++++++++ waybar.config => waybar/waybar.config | 0 2 files changed, 214 insertions(+) create mode 100644 waybar/style.css rename waybar.config => waybar/waybar.config (100%) diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 0000000..ccaa5d4 --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,214 @@ +@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 #353C4A; +@define-color light #eceff4; +@define-color dark #2e3440; +@define-color warning #ebcb8b; +@define-color critical #d08770; +@define-color mode #4c566a; +@define-color workspaces @bg; +@define-color workspacesfocused #434C5E; +@define-color tray @workspacesfocused; +@define-color sound #46536A; +@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 #2e3440; +@define-color time #3A4253; +@define-color backlight #3F495D; + +/* Reset all styles */ +* { + border: none; + border-radius: 0; + min-height: 0; + margin: 0; + padding: 0; +} + +/* The whole bar */ +#waybar { + background: @bg; + color: @light; + font-family: Noto Sans; + font-size: 11px; + font-weight: bold; +} + +/* Each module */ +#battery, +#clock, +#cpu, +#custom-layout, +#memory, +#mode, +#network, +#pulseaudio, +#temperature, +#custom-alsa, +#tray, +#backlight { + padding-left: 10px; + padding-right: 10px; +} + +/* 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 { + color: @warning; +} + +/* 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 { + margin-right: 10px; +} + + +#workspaces button { + font-weight: bold; /* Somewhy the bar-wide setting is ignored*/ + padding-left: 5px; + padding-right: 5px; + color: @light; + background: @workspaces; +} + +#workspaces button.focused { + background: @workspacesfocused; +} + +#workspaces button.urgent { + border-color: #c9545d; + color: #c9545d; +} + +#window { + margin-right: 40px; + margin-left: 40px; +} + +#custom-alsa { + background: @sound; +} + +#network { + background: @network; +} + +#memory { + background: @memory; +} + +#cpu { + background: @cpu; +} + +#temperature { + background: @temp; +} + +#custom-layout { + background: @layout; +} + +#battery { + background: @battery; +} + +#backlight { + background: @backlight; +} + +#clock.date { + background: @date; +} + +#clock.time { + background: @time; +} + +#pulseaudio { /* Unsused but kept for those who needs it */ + background: @sound; +} + +#pulseaudio.muted { + /* No styles */ +} + +#tray { + background: @tray; +} diff --git a/waybar.config b/waybar/waybar.config similarity index 100% rename from waybar.config rename to waybar/waybar.config