diff --git a/nixos/configs/gui/niri.nix b/nixos/configs/gui/niri.nix index 82e63b3..285cd67 100644 --- a/nixos/configs/gui/niri.nix +++ b/nixos/configs/gui/niri.nix @@ -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 { diff --git a/nixos/configs/gui/waybar/default.nix b/nixos/configs/gui/waybar/default.nix index 17ff00f..13fa11f 100644 --- a/nixos/configs/gui/waybar/default.nix +++ b/nixos/configs/gui/waybar/default.nix @@ -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 = ""; diff --git a/nixos/configs/udev.nix b/nixos/configs/udev.nix index 13fafc1..b843f77 100644 --- a/nixos/configs/udev.nix +++ b/nixos/configs/udev.nix @@ -30,4 +30,9 @@ ''; }; + + hardware.ubertooth = { + enable = true; + group = "plugdev"; + }; } diff --git a/nixos/hosts/trailblazer/default.nix b/nixos/hosts/trailblazer/default.nix index d33412a..88095b1 100644 --- a/nixos/hosts/trailblazer/default.nix +++ b/nixos/hosts/trailblazer/default.nix @@ -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 diff --git a/nixos/packages/gui.pkgs.nix b/nixos/packages/gui.pkgs.nix index 8d9ba80..70066f3 100644 --- a/nixos/packages/gui.pkgs.nix +++ b/nixos/packages/gui.pkgs.nix @@ -83,6 +83,7 @@ with pkgs; # Media blender pavucontrol + playerctl vlc # Learning diff --git a/nixos/packages/offline.pkgs.nix b/nixos/packages/offline.pkgs.nix index 08f3ea8..a4d9ab6 100644 --- a/nixos/packages/offline.pkgs.nix +++ b/nixos/packages/offline.pkgs.nix @@ -44,6 +44,7 @@ with pkgs; # hax btlejack + ubertooth # Build systems. cmake