mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 12:02:09 +02:00
edit waybar & swaync config
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -94,14 +94,14 @@
|
|||||||
tooltip = false;
|
tooltip = false;
|
||||||
format = "{icon} {}";
|
format = "{icon} {}";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
notification = "";
|
notification = "<span foreground='red'><sup></sup></span>";
|
||||||
none = "";
|
none = "";
|
||||||
dnd-notification = "";
|
dnd-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
dnd-none = "";
|
dnd-none = "";
|
||||||
inhibited-notification = "";
|
inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
inhibited-none = "";
|
inhibited-none = "";
|
||||||
dnd-inhibited-notification = "";
|
dnd-inhibited-notification = "<span foreground='red'><sup></sup></span>";
|
||||||
dnd-inhibited-none = "";
|
dnd-inhibited-none = "";
|
||||||
};
|
};
|
||||||
return-type = "json";
|
return-type = "json";
|
||||||
exec-if = "which swaync-client";
|
exec-if = "which swaync-client";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{pkgs, ...}: {
|
||||||
services.swaync = {
|
services.swaync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
image-visibility = "when-available";
|
image-visibility = "when-available";
|
||||||
transition-time = 100;
|
transition-time = 100;
|
||||||
|
|
||||||
widgets = [ "dnd" "mpris" "notifications" ];
|
widgets = ["title" "buttons-grid" "dnd" "inhibitors" "mpris" "notifications"];
|
||||||
|
|
||||||
widget-config = {
|
widget-config = {
|
||||||
inhibitors = {
|
inhibitors = {
|
||||||
@@ -32,31 +32,83 @@
|
|||||||
clear-all-button = true;
|
clear-all-button = true;
|
||||||
button-text = "Clear All";
|
button-text = "Clear All";
|
||||||
};
|
};
|
||||||
dnd = { text = "Do Not Disturb"; };
|
dnd = {text = "Do Not Disturb";};
|
||||||
mpris = {
|
mpris = {
|
||||||
image-size = 64;
|
image-size = 64;
|
||||||
blur = true;
|
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 = ''
|
style = ''
|
||||||
.notification,
|
.notification,
|
||||||
.notification.low,
|
.notification.low,
|
||||||
.notification.normal,
|
.notification.normal,
|
||||||
.notification.critical,
|
.notification.critical,
|
||||||
.notification-default-action,
|
.notification-default-action,
|
||||||
.notification-default-action:hover,
|
.notification-default-action:hover,
|
||||||
.notification-default-action:active,
|
.notification-default-action:active,
|
||||||
.notification-row:focus,
|
.notification-row:focus,
|
||||||
.notification-group:focus,
|
.notification-group:focus,
|
||||||
.notification-group.collapsed .notification-row .notification,
|
.notification-group.collapsed .notification-row .notification,
|
||||||
.control-center .notification-row .notification-background,
|
.control-center .notification-row .notification-background,
|
||||||
.control-center .notification-row .notification-background:hover,
|
.control-center .notification-row .notification-background:hover,
|
||||||
.control-center .notification-row .notification-background:active {
|
.control-center .notification-row .notification-background:active {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
@@ -70,7 +122,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.widget-body, .widget-mpris, .widget-dnd, .widget-inhibitors {
|
.widget-body, .widget-mpris, .widget-dnd, .widget-inhibitors {
|
||||||
margin: 4px 5px;
|
margin: 4px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-content {
|
.notification-content {
|
||||||
@@ -93,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.close-button:hover {
|
.close-button:hover {
|
||||||
background-color: @base0C;
|
background-color: @base0C;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close-button:active {
|
.close-button:active {
|
||||||
|
|||||||
Reference in New Issue
Block a user