Add ~/.config/waybar

This commit is contained in:
2025-09-05 20:21:50 +03:00
parent d795a807ea
commit 652f8e8a34
2 changed files with 197 additions and 0 deletions

70
dot_config/waybar/config Normal file
View File

@@ -0,0 +1,70 @@
{
"position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
"spacing": 2, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "wireplumber", "network", "sway/language", "battery", "clock", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"sway/window": {
"format": "{title}",
"max-length": 50,
},
"sway/language": {
"format": "{short} {variant}",
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"spacing": 10
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%Y-%m-%d %H:%M %p}"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"wireplumber": {
"format": "{volume}% {icon}",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""]
},
}

127
dot_config/waybar/style.css Normal file
View File

@@ -0,0 +1,127 @@
/* List of selenized-dark colors vs solarized-dark */
/* {
--base03: #103c48 (002b36);
--base02: #184956 (073642);
--base01: #84c747 (586e75);
--base00: #ebc13d (657b83);
--base0: #adbcbc (839496);
--base1: #53d6c7 (93a1a1);
--base2: #72898f (eee8d5);
--base3: #cad8d9 (fdf6e3);
--yellow: #dbb32d (b58900);
--orange: #ff665c (cb4b16);
--red: #fa5750 (dc322f);
--magenta: #f275be (d33682);
--violet: #ff84cd (6c71c4);
--blue: #4695f7 (268bd2);
--cyan: #41c7b9 (2aa198);
--green: #75b938 (859900);
} */
* {
border: none;
border-radius: 0;
font-family: Source Sans Pro Semibold, "Font Awesome 6 Free", sans-serif;
font-size: 13px;
min-height: 0;
}
window#waybar {
background-color: #103c48;
color: #f275be;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
#workspaces button {
padding: 0 3px;
background-color: transparent;
color: #adbcbc;
border-bottom: 2px solid transparent;
}
#workspaces button.focused {
background-color: #184956;
border-bottom: 2px solid #fa5750;
}
#workspaces button.urgent {
background-color: #f275be;
}
#clock, #battery, #network, #wireplumber, #tray, #mode, #language, #idle_inhibitor, #window {
padding: 0 10px;
margin: 0 2px;
color: #adbcbc;
}
#clock {
background-color: #184956;
}
#battery {
background-color: #184956;
}
#battery.charging {
color: #103c48;
background-color: #75b938;
}
#language {
background-color: #184956;
}
@keyframes blink {
to {
background-color: #f275be;
color: #53d6c7;
}
}
#battery.critical:not(.charging) {
background-color: #fa5750;
color: #53d6c7;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #184956;
}
#network {
background-color: #184956;
}
#network.disconnected {
background-color: #103c48;
}
#wireplumber {
background-color: #184956;
}
#wireplumber.muted {
background-color: #103c48;
}
#tray {
background-color: #103c48;
}
#idle_inhibitor {
background-color: #103c48;
}
#idle_inhibitor.activated {
background-color: #184956;
}