feat: enable realtime-stt-server and whisper-overlay

This commit is contained in:
oddlama 2024-06-23 20:58:30 +02:00
parent 51acddd147
commit 3c3429e2cb
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 29 additions and 17 deletions

View file

@ -99,19 +99,21 @@
connected-active = "<span foreground='red'></span>";
};
return-type = "json";
#exec = "${lib.getExe pkgs.whisper-overlay} waybar-status";
on-click-middle = lib.getExe (pkgs.writeShellApplication {
name = "restart-whisper-overlay";
runtimeInputs = [];
# FIXME: TODO and use libnotify
text = ''
'';
});
exec = "${lib.getExe pkgs.whisper-overlay} waybar-status";
on-click-right = lib.getExe (pkgs.writeShellApplication {
name = "toggle-realtime-stt-server";
runtimeInputs = [];
# FIXME: TODO and use libnotify
runtimeInputs = [
pkgs.systemd
pkgs.libnotify
];
text = ''
if systemctl --user is-active --quiet realtime-stt-server; then
systemctl --user stop realtime-stt-server.service
notify-send "Stopped realtime-stt-server" " Stopped" --transient || true
else
systemctl --user start realtime-stt-server.service
notify-send "Started realtime-stt-server" " Started" --transient || true
fi
'';
});
escape = true;
@ -196,9 +198,9 @@
network = {
interval = 5;
format-ethernet = "󰈀 {ipaddr}/{cidr}";
format-ethernet = "󰈀 {ipaddr}/{cidr} <span color='#ffead3'> {bandwidthDownBytes}</span> <span color='#ecc6d9'> {bandwidthUpBytes}</span>";
format-disconnected = " Disconnected";
tooltip-format = " {bandwidthUpBytes}\n {bandwidthDownBytes}";
tooltip-format = " {bandwidthUpBytes}\n {bandwidthDownBytes}";
};
bluetooth = {