Initial commit

This commit is contained in:
Alex D. 2024-12-04 15:30:18 +00:00
commit 9faf3e1741
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
2 changed files with 121 additions and 0 deletions

59
config.jsonc Normal file
View File

@ -0,0 +1,59 @@
{
"layer": "top",
"position": "top",
"spacing": 0,
"height": 16,
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"pulseaudio",
"load",
"memory",
"temperature",
"sway/language",
"clock"
],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"active-only": true,
"warp-on-scroll": false,
"format": "{name}"
},
"clock": {
"interval": 1,
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%H:%M:%S}",
"format-alt": "{:%a %d %b}",
"locale": "C"
},
"load": {
"format": "{load1} {load5} {load15}"
},
"memory": {
"format": "{used}/{total} GiB",
"interval": 1
},
"temperature": {
"critical-threshold": 80,
"format": "{temperatureC}°C"
},
"backlight": {
"format": "{percent}%"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}%",
"format-alt": "{time}"
}
}

62
style.css Normal file
View File

@ -0,0 +1,62 @@
* {
font-family: monospace;
border: none;
border-radius: 0;
padding: 0;
margin: 0;
border: none;
min-height: 0;
color: #ffffff;
}
button:hover {
box-shadow: none; /* Remove predefined box-shadow */
text-shadow: none; /* Remove predefined text-shadow */
background: none; /* Remove predefined background color (white) */
transition: none; /* Disable predefined animations */
}
window#waybar {
background-color: rgba(0, 0, 0, 0.5);
}
.module {
padding: 0.2em 1em;
}
.module#workspaces {
padding: 0;
}
#workspaces {
margin: 0 0;
}
#workspaces button {
background-color: transparent;
padding: 0 1em;
}
#workspaces button.visible {
background-color: rgba(255, 255, 255, 0.2);
box-shadow: inset 0 -1px #ffffff;
}
#workspaces button:hover {
box-shadow: inset 0 -2px #ffffff;
}
#workspaces button.urgent {
background-color: rgba(128, 0, 0, 0.5);
}
#mode {
background-color: rgba(255, 0, 0, 0.5);
box-shadow: inset 0 -2px #ffffff;
}
#load {
background-color: rgba(16, 128, 16, 0.5);
}
#memory {
background-color: rgba(255, 128, 32, 0.5);
}
#wireplumber {
background-color: rgba(255, 255, 255, 0.25);
}