waybar: init/track

This commit is contained in:
Josh Lay 2024-06-22 11:44:18 -05:00
parent f017d4afcf
commit 6a6b151967
No known key found for this signature in database
GPG key ID: 47AA304B2243B579
5 changed files with 306 additions and 0 deletions

View file

@ -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"]
}
]

View file

@ -0,0 +1 @@
styles/mine.css

View file

@ -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;
}

View file

@ -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 @<something> 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;
}

View file

@ -25,6 +25,10 @@ DOTS=(
'.local/bin/backup_home' '.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 '.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 '.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 # to avoid hacky pwd/dirname stuff w/ $0 [for now?], inline the path to the repo where copies are held