add:wip mango

This commit is contained in:
2025-12-03 23:58:24 +09:00
parent 875e15c221
commit 07b20af203
9 changed files with 343 additions and 25 deletions

71
mango/waybar/config.jsonc Normal file
View File

@@ -0,0 +1,71 @@
{
"layer": "top",
"position": "top",
"width": "auto",
"height": 36,
"modules-left": ["ext/workspaces"],
"modules-center": ["clock"],
"modules-right": ["bluetooth", "wireplumber", "network", "cpu", "memory", "battery", "custom/power"],
"custom/power": {
"format-icons": ["<span color='#e2d0a3'></span>"],
"format": "{icon}",
"tooltip": false,
"on-click": "~/.local/bin/rofi-power-manager.sh"
},
"ext/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"on-click": "activate",
"format": "{name}"
},
"cpu": {
"format-icons": ["<span color='#8aade0'></span>"],
"format": "{usage}% {icon}",
"tooltip": false
},
"memory": {
"format-icons": ["<span color='#8aade0'></span>"],
"format": "{}% {icon}"
},
"network": {
"max-length": 10,
"format-wifi": "{essid} <span color='#8aade0'></span>",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"on-click": "ghostty -e nmtui & disown"
// "format-alt": "{ifname}: {ipaddr}/{cidr}",
},
"clock": {
"format": "{:%b %d - %H:%M}",
"tooltip": false
},
"bluetooth": {
"format": "",
"format-disabled": "<span color='#db9a9a'>󰂲</span>",
"tooltip": false,
"on-click": "blueman-manager"
},
"wireplumber": {
"format": "{volume}% <span color='#8aade0'>{icon}</span>",
"format-icons": {
"default": ["", "", ""]
},
"format-muted": "<span color='#8aade0'></span>",
"on-click": "pavucontrol"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-full": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["<span color='#8aade0'></span>", "<span color='#8aade0'></span>", "<span color='#8aade0'></span>", "<span color='#8aade0'></span>", "<span color='#8aade0'></span>"]
}
}

72
mango/waybar/style.css Normal file
View File

@@ -0,0 +1,72 @@
* {
font-family: "Geist", sans-serif;
min-height: 0;
}
window#waybar {
background: rgba(33, 28, 46, 0.7);
color: rgb(205, 214, 244);
}
window#waybar > box.horizontal:dir(ltr) {
margin-top: 6px;
margin-bottom: 6px;
margin-left: 12px;
margin-right: 16px;
}
#workspaces button {
font-family: "Octal", monospace;
font-weight: bold;
font-size: 12px;
padding: 0 6px;
margin: 0 3px;
background:rgba(137, 180, 250, 0.15);
color: rgba(208, 181, 210, 0.65);
border: none;
}
#workspaces button.focused,
#workspaces button.active {
color: rgb(30, 30, 46);
background:rgb(180, 190, 254);
padding: 0 12px;
}
#workspaces button:hover {
background: rgba(255, 255, 255, 0.1);
}
#clock {
padding: 0 15px;
background: rgba(137, 180, 250, 0.15);
border-radius: 10px;
}
label#wireplumber,
label#bluetooth,
label#network,
label#battery,
label#cpu,
label#custom-power,
label#memory {
padding: 0 9px;
border-radius: 10px;
margin: 0 3px;
}
label#custom-power {
margin-right: 0;
padding-right: 0;
}
label#wireplumber,
label#bluetooth,
label#network {
background:rgba(137, 180, 250, 0.15);
}
label#battery,
label#cpu,
label#memory {
background: rgba(208, 181, 210, 0.15);
}