From 6a6b151967251b9737c8762e2e6df6d4693da2a9 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sat, 22 Jun 2024 11:44:18 -0500 Subject: [PATCH] waybar: init/track --- outerheaven.init3.home/.config/waybar/config | 40 +++++ .../.config/waybar/style.css | 1 + .../.config/waybar/styles/mine-older.css | 102 +++++++++++ .../.config/waybar/styles/mine.css | 159 ++++++++++++++++++ update.sh | 4 + 5 files changed, 306 insertions(+) create mode 100644 outerheaven.init3.home/.config/waybar/config create mode 120000 outerheaven.init3.home/.config/waybar/style.css create mode 100644 outerheaven.init3.home/.config/waybar/styles/mine-older.css create mode 100644 outerheaven.init3.home/.config/waybar/styles/mine.css diff --git a/outerheaven.init3.home/.config/waybar/config b/outerheaven.init3.home/.config/waybar/config new file mode 100644 index 0000000..062632a --- /dev/null +++ b/outerheaven.init3.home/.config/waybar/config @@ -0,0 +1,40 @@ +// unused modules of note: +// custom/arrayhealth +// custom/advancedcpu +// custom/gpustats +// custom/weather +// memory +// cpu +// cava + +[{ + "position": "bottom", + "layer": "top", + "height": 36, + "output": ["DP-1"], + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["tray", "idle_inhibitor", "clock"], + "include": ["~/.config/waybar/modules/settings.json"] +}, +{ + "position": "bottom", + "layer": "top", + "height": 34, + "output": ["DP-2"], + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["tray", "idle_inhibitor", "clock"], + "include": ["~/.config/waybar/modules/settings.json"] +}, +{ + "position": "bottom", + "layer": "top", + "height": 36, + "output": ["DP-3"], + "modules-left": ["sway/workspaces", "sway/mode"], + "modules-center": ["sway/window"], + "modules-right": ["tray", "idle_inhibitor", "clock"], + "include": ["~/.config/waybar/modules/settings.json"] +} +] diff --git a/outerheaven.init3.home/.config/waybar/style.css b/outerheaven.init3.home/.config/waybar/style.css new file mode 120000 index 0000000..29e4165 --- /dev/null +++ b/outerheaven.init3.home/.config/waybar/style.css @@ -0,0 +1 @@ +styles/mine.css \ No newline at end of file diff --git a/outerheaven.init3.home/.config/waybar/styles/mine-older.css b/outerheaven.init3.home/.config/waybar/styles/mine-older.css new file mode 100644 index 0000000..34c7420 --- /dev/null +++ b/outerheaven.init3.home/.config/waybar/styles/mine-older.css @@ -0,0 +1,102 @@ +* { + font-size: 16px; + font-family: "SourceSans3"; + font-weight: 600; /* semibold */ +/* font-family: "Hack";*/ +/* font-weight: bold;*/ +/* font-family: "DejaVu Sans Mono";*/ +/* font-family: "JetBrains Mono";*/ +/* font-weight: 500;*/ +/* font-family: "Source Code Pro";*/ +/* font-family: monospace;*/ +} + +window#waybar { + background: @theme_bg_color; + color: @theme_text_color; +/* opacity: 0.8;*/ +} + +#clock, #pulseaudio, #backlight, #memory, #cpu, #battery, #tray, #mpd, #mail, #custom-weather, #custom-gpustats, #pulseaudio, #network, #custom-media { + background: @theme_bg_color; + color: @theme_text_color; + opacity: 0.8; +} + +/* pad a lot of stuff minus the workspaces button */ +#clock, #pulseaudio, #backlight, #memory, #cpu, #battery, #tray, #mpd, #mail, #custom-weather, #custom-gpustats, #pulseaudio, #network, #custom-media { + padding: 0 5px; +} + +/*#custom-gpu { + color: #839496; +}*/ + +#mode { + background: @theme_base_color; + color: @theme_text_color; + border-left: 4px solid @borders; + border-right: 4px solid @borders; +/* border-radius: 5px;*/ + border-radius: 0px; + border-color: #4ee176; + padding: 0 2px; +} + +#workspaces button { +/* color: #fdf6e3;*/ +/* comment padding out to made the workspace button in the bottom left wide */ + padding: 0 2px; + color: @insensitive_fg_color; + opacity: 1; + border: 1px solid @unfocused_borders; + background: @insensitive_bg_color; + /* border: 1px solid @focused_borders; */ +} + +#workspaces button.urgent { + background-color: #eb4d4b; +} + +#workspaces button.focused { + background: @selected_bg_color; + color: @selected_fg_color; + background: @theme_bg_color; + opacity: 1; + border: 1px solid @borders; +} + +#workspaces button:hover { + box-shadow: inherit; + text-shadow: inherit; + opacity: 1; +} + +#workspaces button:hover { + background: @theme_bg_color; + border: #4ee176; + color: @theme_text_color; +} + +#backlight { + color: #b58900; + opacity: 1; +} + +#cpu.warning { +/* color: rgba(255, 210, 4, 1);*/ + color: @warning_color; +} + +#cpu.critical { +/* color: rgba(238, 46, 36, 1);*/ + color: @error_color; +} + +#network.disconnected { + color: @warning_color; +} + +#network.disabled { + color: @error_color; +} diff --git a/outerheaven.init3.home/.config/waybar/styles/mine.css b/outerheaven.init3.home/.config/waybar/styles/mine.css new file mode 100644 index 0000000..d7891dc --- /dev/null +++ b/outerheaven.init3.home/.config/waybar/styles/mine.css @@ -0,0 +1,159 @@ +/* ============================================================================= + * + * Waybar configuration + * + * Configuration reference: https://github.com/Alexays/Waybar/wiki/Configuration + * + * =========================================================================== */ + +/* Reset all styles */ +* { +/* color: #eceff4;*/ + border: 0; + border-radius: 0; + font-family: "SF Pro Text", "Font Awesome 5 Free Solid"; + /*font-family: "Source Sans 3 Semibold", "Font Awesome 5 Free Solid";*/ + font-size: 16px; + margin: 1px; + padding: 0 2px; +} + +/* the @ references will follow the GTK them + * more info: + * waybar: https://github.com/Alexays/Waybar/wiki/Styling#making-waybar-follow-the-gtk-theme + * misc. GTK: https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss + * */ +window#waybar { + background: alpha(@theme_base_color, 0.92); + border-top: 1px solid @unfocused_borders; + color: @theme_text_color; +} + +/* ----------------------------------------------------------------------------- + * Module styles + * -------------------------------------------------------------------------- */ + +/*#clock, #battery, #cpu, #memory, #idle_inhibitor, #temperature, #custom-keyboard-layout, #backlight, #network, #pulseaudio, #mode, #tray, #window, #custom-launcher, #custom-power, #custom-pacman, #custom-network_traffic, #custom-weather, #custom-gpustats, #custom-media, #custom-arrayhealth, #custom-advancedcpu { + border-bottom: 2px; + border-style: solid; +}*/ + +#mode { + color: @warning_color; +} + +#workspaces button { + color: #5e81ac; +/* color: @unfocused_borders;*/ + padding: 0px; + border-bottom: 2px; + border-style: solid; +} + +#workspaces button.focused { + color: #d8dee9; +} + +#workspaces button.urgent { + color: @warning_color; +} + +#clock { +/*color: #a3be8c;*/ +/* color: #8fbcbb;*/ + color: #81a1c1; +} + +#tray { + color: #88c0d0; +} + +#backlight { + color: #ebcb8b; +} +#battery { + color: #d8dee9; +} + +#battery.charging { + color: #81a1c1; +} + +@keyframes blink { + to { + color: #4c566a; + background-color: #eceff4; + } +} + +#battery.critical:not(.charging) { + background: #bf616a; + color: #eceff4; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} + +#cpu, #custom-advancedcpu { + color: #a3be8c ; +} + +#memory { + color: #d3869b; +} + +#custom-gpustats { + color: #58a6ff; +} + +#network.disabled { + color: #bf616a; +} + +#network{ + color: #a3be8c; +} + +#network.disconnected { + color: #bf616a; +} + +#pulseaudio { + color: #b48ead; +} + +#pulseaudio.muted { + color: #3b4252; +} + +#temperature { + color: #8fbcbb; +} + +#temperature.critical { + color: #bf616a; +} + +#idle_inhibitor.deactivated { +/* color: #88c0d0;*/ + color: #81a1c1; +} + +#idle_inhibitor.activated { +/* color: #ebcb8b;*/ + color: #88c0d0; +} + +#custom-launcher, #custom-power { + border-style: hidden; +} + +#window { + border-style: hidden; +} + +#custom-keyboard-layout{ + color: #d08770; +} diff --git a/update.sh b/update.sh index 7c49995..3f7380e 100755 --- a/update.sh +++ b/update.sh @@ -25,6 +25,10 @@ DOTS=( '.local/bin/backup_home' '.local/bin/note-taker.sh' # run by Kitty in a 'triplesplit' session, one of many of autostart 'wants' in '...-i3ipc.yml' above '.vim/autoload/' # vim-plug, mainly + # Until I find/make custom modules worthwhile, including *only* the config/styling + '.config/waybar/config' + '.config/waybar/styles/' + '.config/waybar/style.css' # symlink to the wanted stylesheet (in the 'styles' dir') ) # to avoid hacky pwd/dirname stuff w/ $0 [for now?], inline the path to the repo where copies are held