mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12: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;
|
||||
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";
|
||||
|
||||
@@ -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 = {
|
||||
@@ -32,31 +32,83 @@
|
||||
clear-all-button = true;
|
||||
button-text = "Clear All";
|
||||
};
|
||||
dnd = { text = "Do Not Disturb"; };
|
||||
dnd = {text = "Do Not Disturb";};
|
||||
mpris = {
|
||||
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 = ''
|
||||
.notification,
|
||||
.notification.low,
|
||||
.notification.normal,
|
||||
.notification.critical,
|
||||
.notification.critical,
|
||||
.notification-default-action,
|
||||
.notification-default-action:hover,
|
||||
.notification-default-action:active,
|
||||
.notification-row: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:hover,
|
||||
.control-center .notification-row .notification-background:active {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
box-shadow: none;
|
||||
box-shadow: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -70,7 +122,7 @@
|
||||
}
|
||||
|
||||
.widget-body, .widget-mpris, .widget-dnd, .widget-inhibitors {
|
||||
margin: 4px 5px;
|
||||
margin: 4px 5px;
|
||||
}
|
||||
|
||||
.notification-content {
|
||||
@@ -93,7 +145,7 @@
|
||||
}
|
||||
|
||||
.close-button:hover {
|
||||
background-color: @base0C;
|
||||
background-color: @base0C;
|
||||
}
|
||||
|
||||
.close-button:active {
|
||||
|
||||
Reference in New Issue
Block a user