swap mako with swaync
This commit is contained in:
parent
e8f183276d
commit
71e616f64d
4 changed files with 45 additions and 15 deletions
|
|
@ -7,11 +7,11 @@
|
|||
./fuzzel.nix
|
||||
./git.nix
|
||||
./gnome.nix
|
||||
./mako.nix
|
||||
./niri.nix
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./swaylock.nix
|
||||
./swaync.nix
|
||||
./vscode.nix
|
||||
./waybar.nix
|
||||
./zsh.nix
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
services.mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
border-radius = 15;
|
||||
default-timeout = 30 * 1000;
|
||||
};
|
||||
};
|
||||
}
|
||||
6
homeConfigurations/vinzenz/swaync.nix
Normal file
6
homeConfigurations/vinzenz/swaync.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
settings = { };
|
||||
};
|
||||
}
|
||||
|
|
@ -38,19 +38,29 @@
|
|||
#"image"
|
||||
"gamemode"
|
||||
|
||||
"temperature"
|
||||
"cpu"
|
||||
"memory"
|
||||
"disk"
|
||||
"group/status-infos"
|
||||
|
||||
"wireplumber"
|
||||
"bluetooth"
|
||||
"backlight"
|
||||
"network"
|
||||
"power-profiles-daemon"
|
||||
"battery"
|
||||
"custom/swaync"
|
||||
"idle_inhibitor"
|
||||
"group/group-power"
|
||||
|
||||
];
|
||||
|
||||
"group/status-infos" = {
|
||||
orientation = "inherit";
|
||||
modules = [
|
||||
"battery"
|
||||
"temperature"
|
||||
"cpu"
|
||||
"memory"
|
||||
"disk"
|
||||
];
|
||||
};
|
||||
"niri/workspaces" = {
|
||||
format = "{icon}";
|
||||
};
|
||||
|
|
@ -225,6 +235,29 @@
|
|||
tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
|
||||
tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
|
||||
};
|
||||
"custom/swaync" =
|
||||
let
|
||||
swaync-client = "${lib.getBin config.services.swaync.package}/bin/swaync-client";
|
||||
in
|
||||
{
|
||||
tooltip = true;
|
||||
format = "{0}{icon} ";
|
||||
format-icons = {
|
||||
notification = "";
|
||||
none = "";
|
||||
dnd-notification = "";
|
||||
dnd-none = "";
|
||||
inhibited-notification = "";
|
||||
inhibited-none = "";
|
||||
dnd-inhibited-notification = "";
|
||||
dnd-inhibited-none = "";
|
||||
};
|
||||
return-type = "json";
|
||||
exec = "${swaync-client} --subscribe-waybar";
|
||||
on-click = "${swaync-client} --toggle-panel --skip-wait";
|
||||
on-click-right = "${swaync-client} --toggle-dnd --skip-wait";
|
||||
escape = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue