mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat: swaync...
This commit is contained in:
parent
d6d4d38dcc
commit
15cdf716d9
2 changed files with 27 additions and 3 deletions
|
|
@ -45,7 +45,7 @@ in {
|
|||
"${systemctl}"
|
||||
"--user"
|
||||
"start"
|
||||
"mako.service"
|
||||
"swaync.service"
|
||||
];
|
||||
}
|
||||
#{
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ _: {
|
|||
margin: 0px;
|
||||
}
|
||||
|
||||
#mode, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris {
|
||||
#mode, #custom-notification, #clock, #battery, #idle_inhibitor, #tray, #wireplumber, #bluetooth, #backlight, #mpris {
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
|
@ -89,6 +89,10 @@ _: {
|
|||
color: @mantle;
|
||||
}
|
||||
|
||||
#custom-notification {
|
||||
font-size: 200%;
|
||||
}
|
||||
|
||||
#mpris.playing {
|
||||
background-color: @base0E;
|
||||
}
|
||||
|
|
@ -159,6 +163,7 @@ _: {
|
|||
"backlight"
|
||||
"battery"
|
||||
"tray"
|
||||
"custom/notification"
|
||||
];
|
||||
|
||||
idle_inhibitor = {
|
||||
|
|
@ -203,7 +208,26 @@ _: {
|
|||
tray = {
|
||||
spacing = 4;
|
||||
};
|
||||
|
||||
"custom/notification" = {
|
||||
tooltip = false;
|
||||
format = "{} {icon}";
|
||||
"format-icons" = {
|
||||
notification = "";
|
||||
none = "";
|
||||
"dnd-notification" = " ";
|
||||
"dnd-none" = "";
|
||||
"inhibited-notification" = " ";
|
||||
"inhibited-none" = "";
|
||||
"dnd-inhibited-notification" = " ";
|
||||
"dnd-inhibited-none" = " ";
|
||||
};
|
||||
"return-type" = "json";
|
||||
"exec-if" = "which swaync-client";
|
||||
exec = "swaync-client -swb";
|
||||
"on-click" = "sleep 0.1 && swaync-client -t -sw";
|
||||
"on-click-right" = "sleep 0.1 && swaync-client -d -sw";
|
||||
escape = true;
|
||||
};
|
||||
clock = {
|
||||
format = "{:%F %H:%M %Z}";
|
||||
interval = 60;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue