$NetBSD: patch-config.def.h,v 1.1 2020/04/12 17:32:45 pin Exp $ Use mixerctl instead of amixer on NetBSD Use scrot instead of scr as no scr is provided by pkg scrot --- config.def.h.orig 2020-02-21 16:08:47.000000000 +0000 +++ config.def.h @@ -5,12 +5,18 @@ const char* menu[] = {"dmenu_run", 0}; const char* term[] = {"st", 0}; -const char* scrot[] = {"scr", 0}; +const char* scrot[] = {"scrot", 0}; const char* briup[] = {"bri", "10", "+", 0}; const char* bridown[] = {"bri", "10", "-", 0}; +#if defined (__NetBSD__) +const char* volup[] = {"mixerctl", "-w", "outputs.master+=5", 0}; +const char* voldown[] = {"mixerctl", "-w", "outputs.master-=5", 0}; +const char* volmute[] = {"mixerctl", "-w", "outputs.master=0", 0}; +#elif const char* voldown[] = {"amixer", "sset", "Master", "5%-", 0}; const char* volup[] = {"amixer", "sset", "Master", "5%+", 0}; const char* volmute[] = {"amixer", "sset", "Master", "toggle", 0}; +#endif const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", 0}; static struct key keys[] = {