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; "Mod+Q".action = close-window;
"XF86AudioPrev".action = sh "supersonic -previous"; "XF86AudioPrev".action = sh "playerctl previous";
"XF86AudioNext".action = sh "supersonic -next"; "XF86AudioNext".action = sh "playerctl next";
"XF86AudioPlay".action = sh "supersonic -play-pause"; "XF86AudioPlay".action = sh "playerctl play-pause";
"XF86Launch5".action = sh "supersonic -play-pause"; "XF86Launch5".action = sh "playerctl play-pause";
} }
(binds { (binds {

View file

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

View file

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

View file

@ -386,6 +386,25 @@ in
swapDevices = [ ]; 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 # 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 # (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 # still possible to use this option, but it's recommended to use it in conjunction

View file

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

View file

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