nix-files/hosts/common/programs/swaynotificationcenter/buttons.nix

24 lines
1.1 KiB
Nix
Raw Normal View History

{ pkgs }:
let
serviceButton = svcType: name: label: {
2024-03-24 08:42:30 +00:00
inherit label;
type = "toggle";
command = "swaync-service-dispatcher toggle ${svcType} ${name}";
update-command = "swaync-service-dispatcher print ${svcType} ${name}";
active = true;
};
2024-03-24 08:42:30 +00:00
in
{
2024-04-26 21:43:51 +00:00
gps = serviceButton "s6" "eg25-control-gps" ""; # GPS services; other icons: gps, ⌖, 🛰, 🌎, 
cell-modem = serviceButton "s6" "eg25-control-powered" "󰺐"; # icons: 5g, 📡, 📱, ᯤ, ⚡, , 🌐, 📶, 🗼, 󰀂, , 󰺐, 󰩯
vpn = serviceButton "systemd" "wg-quick-vpn-servo" "vpn::hn";
2024-03-24 08:42:30 +00:00
gnome-calls = serviceButton "s6" "gnome-calls" "SIP";
geary = serviceButton "s6" "geary" "󰇮"; # email (Geary); other icons: ✉, [E], 📧, 󰇮
abaddon = serviceButton "s6" "abaddon" "󰊴"; # Discord chat client; icons: 󰊴, 🎮
dissent = serviceButton "s6" "dissent" "󰊴"; # Discord chat client; icons: 󰊴, 🎮
signal-desktop = serviceButton "s6" "signal-desktop" "💬"; # Signal messenger; other icons: 󰍦
dino = serviceButton "s6" "dino" "XMPP"; # XMPP calls (jingle)
fractal = serviceButton "s6" "fractal" "[m]"; # Matrix messages
}