This commit is contained in:
nnwhen 2025-06-16 02:04:11 +02:00
commit 367711b7a1
6 changed files with 664 additions and 0 deletions

104
waybar/config Executable file
View file

@ -0,0 +1,104 @@
{
"ipc": true,
"id": "0",
"spacing": 5,
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"modules-center": [
"clock"
],
"modules-right": [
"group/battery-group",
"wireplumber",
"backlight",
"tray",
"group/net"
],
"group/net": {
"orientation": "horizontal",
"modules": [
"network",
"bluetooth"
]
},
"group/battery-group": {
"orientation": "horizontal",
"modules": [
"battery"
]
},
"sway/workspaces": {
"format": "{icon}",
"on-click": "activate",
"icon-size": 50,
"sort-by-number": true
},
"sway/mode": {
"format": "+{}"
},
"clock": {
"interval": 1,
"format": "{:%Y-%m-%d / %a / %H:%M:%S}",
"tooltip": false
},
"wireplumber": {
"max-volume": 100,
"format": "({volume}{icon}",
"format-muted": "x{icon}",
"format-icons": [
"}"
],
"tooltip-format": "vol: {volume}%"
},
"battery": {
"states": {
"full": 100,
"high": 95,
"mid": 60,
"warning": 37.5,
"critical": 23
},
"format": "-[{capacity}]-",
"format-charging": "+[{capacity}]+"
},
"backlight": {
"format": "{icon}",
"format-icons": [
"◎",
"◔",
"◑",
"◕",
"◉"
],
"tooltip-format": "bkl: {percent}%"
},
"network": {
"format": "{icon}",
"format-ethernet": "⯳",
"format-wifi": "{icon}",
"format-disconnected": "❖",
"format-icons": [
"🞚",
"🞜",
"🞛",
"⯁"
],
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}",
"tooltip-format-disconnected": "Disconnected"
},
"bluetooth": {
"format": "-",
"format-disabled": "x",
"format-connected": "+",
"tooltip-format": "{controller_alias}\t{controller_address}",
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
},
"tray": {
"icon-size": 12,
"spacing": 8
}
}

119
waybar/style.css Executable file
View file

@ -0,0 +1,119 @@
@define-color foreground #f1d4cf;
@define-color background #181a1b;
@define-color active #e3beb3;
@define-color urgent #ce7961;
* {
font-family: "Syne Mono";
font-size: 15px;
border: none;
min-height: 0;
margin: 0;
padding: 0;
}
#waybar {
color: @foreground;
background-color: alpha(@background, 0);
}
#workspaces {
border-radius: 100px;
margin: 8px;
background-color: alpha(@background, 0.5);
}
#workspaces button {
border-radius: 100px;
padding: 0 3px;
min-width: 15px;
margin: 2px;
color: @foreground;
background-color: alpha(@background, 0.99);
}
#workspaces button.visible {
background-color: @active;
color: @background;
}
#workspaces button.urgent,
#tray>.needs-attention {
background-color: @urgent;
}
#mode {
padding: 0 10px;
margin: 8px 0;
color: @background;
background-color: @active;
}
#clock {
border-radius: 10px;
padding: 2px 12px 0 12px;
margin: 8px;
background-color: alpha(@background, 0.99);
}
/* Individual Modules */
#wireplumber,
#network,
#bluetooth {
padding: 0 6px 2px 4px;
}
#battery {
border-radius: 10px;
padding: 2px 4px 0 4px;
border: solid @background 2px;
color: @background;
background-image: linear-gradient(240deg, alpha(red, 0.4), transparent);
}
#battery.full {
background-color: lime;
}
#battery.high {
background-color: #f1d4cf;
}
#battery.mid {
background-color: #dda877;
}
#battery.warning {
background-color: orange;
}
#battery.critical {
background-color: red;
}
#battery.charging {
background-image: linear-gradient(30deg, alpha(lime, 0.4), transparent);
}
#battery-group {
margin: 8px 0;
}
/* Module Groups */
#info-group,
#wireplumber,
#net,
#tray {
border-radius: 100px;
padding: 1px 10px;
margin: 8px 0;
background-color: alpha(@background, 0.99);
}
#backlight {
border-radius: 100px;
padding: 0 10px 1px 10px;
margin: 8px 0;
background-color: alpha(@background, 0.99);
}
#net {
margin-right: 8px;
}