guiL prefer mpris, hacks: more bt tools

This commit is contained in:
Kate 2025-07-02 15:46:07 +02:00
parent 7711077791
commit 0b7e888f77
6 changed files with 32 additions and 7 deletions

View file

@ -284,11 +284,11 @@ in
"Mod+Q".action = close-window;
"XF86AudioPrev".action = sh "supersonic -previous";
"XF86AudioNext".action = sh "supersonic -next";
"XF86AudioPlay".action = sh "supersonic -play-pause";
"XF86AudioPrev".action = sh "playerctl previous";
"XF86AudioNext".action = sh "playerctl next";
"XF86AudioPlay".action = sh "playerctl play-pause";
"XF86Launch5".action = sh "supersonic -play-pause";
"XF86Launch5".action = sh "playerctl play-pause";
}
(binds {

View file

@ -203,7 +203,7 @@ in
modules-left = [
"clock"
"clock#otherzone"
"mpd"
"mpris"
];
modules-center = [
"custom/title"
@ -364,8 +364,7 @@ in
];
};
mpd = {
on-click = "mpc toggle";
mpris = {
format = "${icons.music.playing} {artist} - {title}";
format-paused = "${icons.music.paused} {artist} - {title}";
format-stopped = "";

View file

@ -30,4 +30,9 @@
'';
};
hardware.ubertooth = {
enable = true;
group = "plugdev";
};
}

View file

@ -386,6 +386,25 @@ in
swapDevices = [ ];
# Support bluetooth.
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
# Support A2DP.
Enable = "Source,Sink,Media,Socket";
# Enable experimental featurees, like reading device battery levels.
Experimental = true;
};
};
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction

View file

@ -83,6 +83,7 @@ with pkgs;
# Media
blender
pavucontrol
playerctl
vlc
# Learning

View file

@ -44,6 +44,7 @@ with pkgs;
# hax
btlejack
ubertooth
# Build systems.
cmake