edit waybar & swaync config

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2025-08-28 23:50:40 +02:00
parent 29dbc0af97
commit 49f4828046
2 changed files with 68 additions and 16 deletions

View File

@@ -94,14 +94,14 @@
tooltip = false;
format = "{icon} {}";
format-icons = {
notification = "󰂚";
none = "󰂜";
dnd-notification = "󰂚";
dnd-none = "󰂜";
inhibited-notification = "󰂚";
inhibited-none = "󰂜";
dnd-inhibited-notification = "󰂚";
dnd-inhibited-none = "󰂜";
notification = "<span foreground='red'><sup></sup></span>";
none = "";
dnd-notification = "<span foreground='red'><sup></sup></span>";
dnd-none = "";
inhibited-notification = "<span foreground='red'><sup></sup></span>";
inhibited-none = "";
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
dnd-inhibited-none = "";
};
return-type = "json";
exec-if = "which swaync-client";

View File

@@ -1,4 +1,4 @@
{
{pkgs, ...}: {
services.swaync = {
enable = true;
settings = {
@@ -19,7 +19,7 @@
image-visibility = "when-available";
transition-time = 100;
widgets = [ "dnd" "mpris" "notifications" ];
widgets = ["title" "buttons-grid" "dnd" "inhibitors" "mpris" "notifications"];
widget-config = {
inhibitors = {
@@ -37,6 +37,58 @@
image-size = 64;
blur = true;
};
buttons-grid = {
actions = [
{
label = "󰐥";
command = "systemctl poweroff";
}
{
label = "󰜉";
command = "systemctl reboot";
}
{
label = "󰒲";
command = "systemctl suspend";
}
{
label = "󰌾";
command = "lock";
}
{
label = "󰍃";
command = "${pkgs.hyprland}/bin/hyprctl dispatch exit";
}
{
label = "󰕾";
command = "${pkgs.swayosd}/bin/swayosd-client --output-volume mute-toggle";
}
{
label = "󰍬";
command = "${pkgs.swayosd}/bin/swayosd-client --input-volume mute-toggle";
}
{
label = "󰂯";
command = "${pkgs.blueman}/bin/blueman-manager";
}
{
label = "󰹑";
command = "screenshot region";
}
{
label = "";
command = "${pkgs.kooha}/bin/kooha";
}
{
label = "";
command = "caffeine";
}
{
label = "󰋱";
command = "hyprfocus-toggle";
}
];
};
};
};
style = ''