version 1.0

This commit is contained in:
2026-08-11 23:42:24 +06:00
parent 0130928993
commit 71a0161ff7
50 changed files with 2257 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
{
"layer": "top",
"position": "top",
"height": 25,
"spacing": 0,
"modules-left": ["wlr/taskbar"],
"modules-center": ["clock"],
"modules-right": ["custom/v2raya", "custom/language", "pulseaudio", "network", "cpu", "memory", "tray"],
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 15,
"tooltip-format": "{title}",
"on-click": "activate"
},
"custom/language": {
"exec": "xkblayout-state print %s | tr 'a-z' 'A-Z'",
"interval": 1,
"format": " {} "
},
"custom/v2raya": {
"format": "PROXY{}",
"return-type": "json",
"interval": 2,
"exec": "$HOME/.config/waybar/v2raya-toggle.sh",
"on-click": "$HOME/.config/waybar/v2raya-toggle.sh toggle",
"signal": 10
},
"clock": {
"format": "{:%H:%M}",
"format-alt": "{:%d-%m-%Y}"
},
"cpu": {
"format": " {usage}%",
"tooltip": false,
"on-click": "alacritty -e htop"
},
"memory": {
"format": " {}%"
},
"network": {
"min-length": 10,
"format-wifi": " {essid}",
"format-ethernet": " {bandwidthDownBytes}",
"format-disconnected": "⚠ DONT",
"interval": 1
},
"pulseaudio": {
"format": " {volume}%",
"format-muted": " Muted",
"on-click": "pavucontrol"
},
"tray": {
"icon-size": 10,
"spacing": 15
}
}
+43
View File
@@ -0,0 +1,43 @@
* {
font-family: "JetBrainsMono Nerd Font", "Font Awesome 7 Free", "Font Awesome 7 Free Solid", "Font Awesome 7 Brands", sans-serif;
font-size: 12px;
border: none;
border-radius: 0;
}
@import "$HOME/.config/aether/theme/waybar.css";
window#waybar {
background: alpha(@background, 0.75);
color: @foreground;
min-height: 28px;
}
#clock,
#cpu,
#memory,
#network,
#pulseaudio,
#taskbar,
#tray {
padding: 0 10px;
color: @foreground;
}
#taskbar button {
color: alpha(@foreground, 0.6);
padding: 0 8px;
}
#taskbar button.active {
background-color: alpha(@foreground, 0.2);
box-shadow: inset 0 -2px 0 0 @foreground;
color: @foreground;
}
#custom-v2raya.enabled {
color: @foreground;
}
#custom-v2raya.disabled {
color: @background;
}
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# Проверяем, запущен ли процесс v2rayA
if pgrep -x "v2raya" > /dev/null; then
if [ "$1" = "toggle" ]; then
sudo systemctl stop v2raya.service 2>/dev/null || sudo killall v2raya
echo "{\"text\": \" \", \"class\": \"disabled\", \"tooltip\": \"v2rayA выключен\"}"
else
echo "{\"text\": \" \", \"class\": \"enabled\", \"tooltip\": \"v2rayA включен\"}"
fi
else
if [ "$1" = "toggle" ]; then
sudo systemctl start v2raya.service 2>/dev/null || sudo v2raya --daemon &
echo "{\"text\": \" \", \"class\": \"enabled\", \"tooltip\": \"v2rayA включен\"}"
else
echo "{\"text\": \" \", \"class\": \"disabled\", \"tooltip\": \"v2rayA выключен\"}"
fi
fi