bluetooth overhaul
This commit is contained in:
parent
b25b92296e
commit
bfa8fb6184
@ -18,6 +18,7 @@
|
|||||||
"cpu"
|
"cpu"
|
||||||
"memory"
|
"memory"
|
||||||
"tray"
|
"tray"
|
||||||
|
"bluetooth"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
"network"
|
"network"
|
||||||
"battery"
|
"battery"
|
||||||
@ -63,8 +64,10 @@
|
|||||||
on-scroll-down = "shift_down";
|
on-scroll-down = "shift_down";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
format-wifi = " {icon}";
|
format-wifi = " {icon}";
|
||||||
|
tooltip-format-wifi = "{essid} ({signalStrength}%)";
|
||||||
format-ethernet = " ";
|
format-ethernet = " ";
|
||||||
format-disconnected = " ";
|
format-disconnected = " ";
|
||||||
format-icons = [
|
format-icons = [
|
||||||
@ -74,7 +77,9 @@
|
|||||||
" "
|
" "
|
||||||
" "
|
" "
|
||||||
];
|
];
|
||||||
|
# tooltip = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
battery = {
|
battery = {
|
||||||
states = {
|
states = {
|
||||||
good = 95;
|
good = 95;
|
||||||
@ -99,12 +104,13 @@
|
|||||||
""
|
""
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# not actually pulseaudio-specific
|
|
||||||
|
# not actually pulseaudio-specific (I use pipewire!)
|
||||||
pulseaudio = {
|
pulseaudio = {
|
||||||
max-volume = 100;
|
max-volume = 100;
|
||||||
scroll-step = 10;
|
scroll-step = 10;
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
tooltip-format = "{volume}%";
|
tooltip-format = "{desc} ({volume}%)";
|
||||||
format-muted = "🔇";
|
format-muted = "🔇";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
default = [
|
default = [
|
||||||
@ -115,6 +121,17 @@
|
|||||||
};
|
};
|
||||||
on-click = "${pkgs.pwvucontrol}/bin/pwvucontrol";
|
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 = ''
|
style = ''
|
||||||
|
|||||||
@ -23,8 +23,19 @@
|
|||||||
config.programs.niri.package
|
config.programs.niri.package
|
||||||
];
|
];
|
||||||
|
|
||||||
# bluetooth manager
|
# # bluetooth manager
|
||||||
services.blueman-applet.enable = true;
|
# 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
|
# notification daemon
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user