SwayOSD icon indicating copy to clipboard operation
SwayOSD copied to clipboard

SwayOSD not working on SwayWM in NixOS.

Open rachitve6h2g opened this issue 1 year ago • 1 comments

XF86AudioMute is not working with swayosd-client --output-volume mute-toggle does not work. To test it, I bound the sane key using wpctl, and it worked. However the mute button (the only button) does not work with swayosd. Here is my configuration with home.nix

{
 wayland.windowManager.sway = {
  enable = true;
  .....
  config.keybindings = {
    .....
    "--locked XF86AudioRaiseVolume"  =  "exec swayosd-client --output-volume mute-toggle";
   };
 };
};

The translation done by Nix is perfectly fine and as mentioned on the main page.

rachitve6h2g avatar Sep 10 '24 18:09 rachitve6h2g

https://github.com/nix-community/home-manager/blob/master/modules/services/swayosd.nix

home-manager.users.myuser = {
  services.swayosd.enable = true;
}

ch4og avatar Sep 24 '24 16:09 ch4og