bluetooth overhaul

This commit is contained in:
Simon Gardling 2024-10-25 11:37:13 -04:00
parent b25b92296e
commit bfa8fb6184
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 32 additions and 4 deletions

View File

@ -18,6 +18,7 @@
"cpu"
"memory"
"tray"
"bluetooth"
"pulseaudio"
"network"
"battery"
@ -63,8 +64,10 @@
on-scroll-down = "shift_down";
};
};
network = {
format-wifi = " {icon}";
tooltip-format-wifi = "{essid} ({signalStrength}%)";
format-ethernet = " ";
format-disconnected = "󰌙 ";
format-icons = [
@ -74,7 +77,9 @@
"󰤢 "
"󰤨 "
];
# tooltip = false;
};
battery = {
states = {
good = 95;
@ -99,12 +104,13 @@
"󰁹"
];
};
# not actually pulseaudio-specific
# not actually pulseaudio-specific (I use pipewire!)
pulseaudio = {
max-volume = 100;
scroll-step = 10;
format = "{icon}";
tooltip-format = "{volume}%";
tooltip-format = "{desc} ({volume}%)";
format-muted = "🔇";
format-icons = {
default = [
@ -115,6 +121,17 @@
};
on-click = "${pkgs.pwvucontrol}/bin/pwvucontrol";
};
bluetooth = {
format = " ({status}) ";
format-connected = " {device_alias}";
format-connected-battery = " {device_alias} {device_battery_percentage}%";
tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
on-click = "${pkgs.blueman}/bin/blueman-manager";
};
};
style = ''

View File

@ -23,8 +23,19 @@
config.programs.niri.package
];
# bluetooth manager
services.blueman-applet.enable = true;
# # bluetooth manager
# services.blueman-applet.enable = true;
# bluetooth media controls
systemd.user.services.mpris-proxy = {
Unit.Description = "Mpris proxy";
Install.After = [
"network.target"
"sound.target"
];
Install.WantedBy = [ "default.target" ];
Service.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
# notification daemon
services.dunst = {