ErikReider / SwayOSD

A GTK based on screen display for keyboard shortcuts like caps-lock and volume
GNU General Public License v3.0
560 stars 35 forks source link

SwayOSD not working on SwayWM in NixOS. #100

Open rachitve6h2g opened 3 weeks ago

rachitve6h2g commented 3 weeks ago

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.

ch4og commented 1 week ago

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

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