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

60 lines
1.9 KiB
Nix
Raw Normal View History

2024-05-17 05:45:15 +00:00
# icon sources:
# - <https://www.vertex42.com/ExcelTips/unicode-symbols.html>
# - <https://onlinetools.com/unicode/add-combining-characters>
# - `font-manager`
# - this one shows all the "private use" emoji, for e.g. font Noto
# - nerd-fonts: <https://github.com/ryanoasis/nerd-fonts>
# - grep `glyphnames.json` for the icon you want. about half of them are labeled usefully?
{ pkgs }:
let
serviceButton = name: label: {
2024-03-24 08:42:30 +00:00
inherit label;
type = "toggle";
command = "swaync-service-dispatcher toggle ${name}";
update-command = "swaync-service-dispatcher print ${name}";
active = true;
};
2024-03-24 08:42:30 +00:00
in
{
2024-05-17 08:42:35 +00:00
# icon sets:
# - GPS
# ⌖ 🛰 🌎      󰇧 󰍒 󱋼 󰍎 󰍐 󰓾 󱘇
# - modem
# 📡 📱 ᯤ ⚡  🌐 📶 🗼 󰀂  󰺐 󰩯
# - calls
#  󰏲   󰏾   󱆗 󱆖 󰏸
# SIP ☏ ✆ ℡ 📞📱
# - email
# ✉ [E] E⃞  󰇰  󰻨 󰻪 󰇮  󰾱 󰶍
# 󱡰 󱡯
# 📧 📨 📩 📬 📫
# - messaging
#    󱥂  󰆁  󰆉 󰍪 󰡡 󱀢 󱗠 󱜾 󱜽 󱥁 󱗟 󰍦 󰍦 󰊌 󰿌 󰿍 󰚢 
#   󰭻   󰋉   
#   
#   
# …⃝ Θ
# 󰌌 ⌨   ✍
# 💬🗨️ 📟📤 📱📲
# ⏏️ ⇪ ⇫ ⮸ ⭿ ⍐ ⎘
# - XMPP
# 󰟿 🦕 🦖
# - Signal
# 🔵 🗣  󰈎 󰒯 󰒰 
# - Matrix
# 🇲 𝐌 ₘ m̄ m⃞ m̋⃞ M⃞ 󰫺 󰬔
# - discord
#  󰙯 󰊴 󰺷 🎮
gps = serviceButton "eg25-control-gps" "";
cell-modem = serviceButton "eg25-control-powered" "󰺐";
2024-03-24 08:42:30 +00:00
gnome-calls = serviceButton "gnome-calls" "";
geary = serviceButton "geary" "";
abaddon = serviceButton "abaddon" " ";
dissent = serviceButton "dissent" " ";
signal-desktop = serviceButton "signal-desktop" "󰭻";
dino = serviceButton "dino" "󰟿";
fractal = serviceButton "fractal" "[m]";
}