added waybar pulseaudio/slider

This commit is contained in:
wt committed 2024-05-13 10:16:16 +07:00
1 parent d214cfa301
commit bff3d3aff7
2 files changed
+30 -3

No files matched your search

+7 -2
View File
@@ -4,7 +4,7 @@
"spacing": 4, "spacing": 4,
"modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "custom/weather", "custom/updates", "hyprland/window"], "modules-left": ["custom/launcher", "cpu", "memory", "temperature", "disk", "custom/weather", "custom/updates", "hyprland/window"],
"modules-center": ["hyprland/workspaces"], "modules-center": ["hyprland/workspaces"],
"modules-right": ["custom/spotify", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"], "modules-right": ["pulseaudio/slider", "pulseaudio", "network", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray", "custom/power"],
"hyprland/workspaces": { "hyprland/workspaces": {
"format": "{icon}", "format": "{icon}",
"all-outputs": true, "all-outputs": true,
@@ -66,6 +66,11 @@
"format-disconnected": "Disconnected ⚠", "format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}" "format-alt": "{ifname}: {ipaddr}/{cidr}"
}, },
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal"
},
"pulseaudio": { "pulseaudio": {
"format": "{volume}% {icon} {format_source}", "format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}",
@@ -80,7 +85,7 @@
"phone": "", "phone": "",
"portable": "", "portable": "",
"car": "", "car": "",
"default": ["", "", ""] "default": [" ", " ", " "]
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
+23 -1
View File
@@ -339,6 +339,28 @@ label:focus {
} }
#custom-updates { #custom-updates {
padding: 2px 12px; padding: 10px 12px;
}
#pulseaudio-slider slider {
min-height: 2px;
min-width: 2px;
background-color: gray;
border-radius: 100%
/*opacity: 1;*/
/*background-image: none;
border: none;
box-shadow: none;*/
}
#pulseaudio-slider trough {
min-height: 2px;
min-width: 60px;
border-radius: 5px;
background-color: gray;
}
#pulseaudio-slider highlight {
min-width: 10px;
border-radius: 5px;
background-color: gray;
} }